You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/tutorial.md
+68Lines changed: 68 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,74 @@ Here is an example using the constrained problem solve:
62
62
stats.solver_specific[:internal_msg]
63
63
```
64
64
65
+
## Monitoring optimization with callbacks
66
+
67
+
You can monitor the optimization process using a callback function. The callback allows you to access the current iterate and constraint violations at each iteration, which is useful for custom stopping criteria, logging, or real-time analysis.
68
+
69
+
### Callback parameters
70
+
71
+
The callback function receives the following parameters from Ipopt:
In this section, we work through an example where we specify the problem and its derivatives manually. For this, we need to implement the following `NLPModel` API methods:
0 commit comments