File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ install optimagic.
8686 f in the stopping criterion.
8787 - **stopping.maxiter** (int): If the maximum number of iterations is reached,
8888 the optimization stops, but we do not count this as convergence.
89+ - **display** (bool):
90+ Set to True to print convergence messages. Default is False.
91+ - scipy name: **disp**
8992
9093```
9194
Original file line number Diff line number Diff line change @@ -145,13 +145,15 @@ def _solve_internal_problem(
145145class ScipySLSQP (Algorithm ):
146146 convergence_ftol_abs : NonNegativeFloat = CONVERGENCE_SECOND_BEST_FTOL_ABS
147147 stopping_maxiter : PositiveInt = STOPPING_MAXITER
148+ display : bool = False
148149
149150 def _solve_internal_problem (
150151 self , problem : InternalOptimizationProblem , x0 : NDArray [np .float64 ]
151152 ) -> InternalOptimizeResult :
152153 options = {
153154 "maxiter" : self .stopping_maxiter ,
154155 "ftol" : self .convergence_ftol_abs ,
156+ "disp" : self .display ,
155157 }
156158 raw_res = scipy .optimize .minimize (
157159 fun = problem .fun_and_jac ,
You can’t perform that action at this time.
0 commit comments