Skip to content

Commit 66245ce

Browse files
committed
update changelog and comments
1 parent 07d7c99 commit 66245ce

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ChangeLog.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ More detailed information about incremental changes can be found in the
77

88
## 3.14
99

10-
### 3.14.17 (2024-xx-yy)
10+
### 3.14.17 (2024-12-14)
1111

1212
- Added `Ipopt::RegisterInterruptHandler()` and `Ipopt::UnregisterInterruptHandler()`
1313
to `IpUtils.hpp` to wrap handling of interrupt signals.
1414
Added parameter `checkinterrupt` (default false) to `AmplTNLP` constructor
1515
to enable check for interrupt signal in `intermediate_callback`.
16-
- The `ipopt` and `ipopt_sens` executables can now be interrupted by SIGINT/SIGHUP
17-
(POSIX systems) or SIGINT/SIGTERM/SIGABRT (Windows systems).
16+
- The `ipopt` and `ipopt_sens` executables and scalable problems C++ examples can now be
17+
interrupted by SIGINT/SIGHUP (systems with sigaction()) or SIGINT/SIGTERM/SIGABRT (Windows systems).
1818
- New option `mumps_mpi_communicator` to specify the MPI communicator when using
1919
an MPI-enabled build of MUMPS [#790, by Alex Tyler Chapman].
2020
- Updated build system to current autotools versions; initial support for icx/ifx and flang
2121
- Removed use of `vsprintf` and `sprintf`. Added `IpoptData::Append_info_string(std::string,double)`.
2222
- Removed use of `strcpy`, `strncpy`, `strdup`, and `sscanf`.
23-
- Use `fopen_s` and `getenv_s` instead of `fopen` and `getenv`, respectively, if available.
23+
- Using `fopen_s` and `getenv_s` instead of `fopen` and `getenv`, respectively, if available.
2424
- Added workaround for using Pardiso from Intel MKL 2025.0.1 [#799].
2525
This requires checking the MKL version at runtime and can be disabled by defining `IPOPT_NO_MKLVERSIONCHECK`.
2626

examples/ScalableProblems/solve_problem.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ int main(
203203
app->Options()->SetNumericValue("max_wall_time", runtime);
204204
#endif
205205

206-
Ipopt::RegisterInterruptHandler(NULL, &tnlp->interrupted_);
206+
Ipopt::RegisterInterruptHandler(NULL, &tnlp->interrupted_, 5);
207207

208208
status = app->OptimizeTNLP(GetRawPtr(tnlp));
209209

src/Common/IpUtils.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ IPOPTLIB_EXPORT Number WallclockTime();
102102

103103
/** register handler for interrupt signals
104104
*
105-
* On POSIX systems, catches SIGHUP and SIGINT signals.
106-
* On Windows, catches SIGTERM, SIGABRT, SIGBREAK, and SIGINT signals.
105+
* On systems with sigaction(), catches SIGHUP and SIGINT signals.
106+
* Otherwise, catches SIGTERM, SIGABRT, SIGINT signals via signal().
107107
*
108108
* @return whether registering the handler was successful
109109
* @since 3.14.17
@@ -116,7 +116,7 @@ IPOPTLIB_EXPORT bool RegisterInterruptHandler(
116116

117117
/** unregister previously registered handler for interrupt signals
118118
*
119-
* @return whether registering the handler was successful
119+
* @return whether unregistering the handler was successful
120120
* @since 3.14.17
121121
*/
122122
IPOPTLIB_EXPORT bool UnregisterInterruptHandler(void);

0 commit comments

Comments
 (0)