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: src/R2DH.jl
+1-15Lines changed: 1 addition & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -134,21 +134,7 @@ The algorithm stops either when `√(ξₖ/νₖ) < atol + rtol*√(ξ₀/ν₀)
134
134
The value returned is a `GenericExecutionStats`, see `SolverCore.jl`.
135
135
136
136
# Callback
137
-
The callback is called at each iteration.
138
-
The expected signature of the callback is `callback(nlp, solver, stats)`, and its output is ignored.
139
-
Changing any of the input arguments will affect the subsequent iterations.
140
-
In particular, setting `stats.status = :user` will stop the algorithm.
141
-
All relevant information should be available in `nlp` and `solver`.
142
-
Notably, you can access, and modify, the following:
143
-
- `solver.xk`: current iterate;
144
-
- `solver.∇fk`: current gradient;
145
-
- `stats`: structure holding the output of the algorithm (`GenericExecutionStats`), which contains, among other things:
146
-
- `stats.iter`: current iteration counter;
147
-
- `stats.objective`: current objective function value;
148
-
- `stats.solver_specific[:smooth_obj]`: current value of the smooth part of the objective function;
149
-
- `stats.solver_specific[:nonsmooth_obj]`: current value of the nonsmooth part of the objective function;
150
-
- `stats.status`: current status of the algorithm. Should be `:unknown` unless the algorithm has attained a stopping criterion. Changing this to anything will stop the algorithm, but you should use `:user` to properly indicate the intention;
Copy file name to clipboardExpand all lines: src/R2N.jl
+1-15Lines changed: 1 addition & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -142,21 +142,7 @@ The algorithm stops either when `√(ξₖ/νₖ) < atol + rtol*√(ξ₀/ν₀)
142
142
The value returned is a `GenericExecutionStats`, see `SolverCore.jl`.
143
143
144
144
# Callback
145
-
The callback is called at each iteration.
146
-
The expected signature of the callback is `callback(nlp, solver, stats)`, and its output is ignored.
147
-
Changing any of the input arguments will affect the subsequent iterations.
148
-
In particular, setting `stats.status = :user` will stop the algorithm.
149
-
All relevant information should be available in `nlp` and `solver`.
150
-
Notably, you can access, and modify, the following:
151
-
- `solver.xk`: current iterate;
152
-
- `solver.∇fk`: current gradient;
153
-
- `stats`: structure holding the output of the algorithm (`GenericExecutionStats`), which contains, among other things:
154
-
- `stats.iter`: current iteration counter;
155
-
- `stats.objective`: current objective function value;
156
-
- `stats.solver_specific[:smooth_obj]`: current value of the smooth part of the objective function;
157
-
- `stats.solver_specific[:nonsmooth_obj]`: current value of the nonsmooth part of the objective function;
158
-
- `stats.status`: current status of the algorithm. Should be `:unknown` unless the algorithm has attained a stopping criterion. Changing this to anything other than `:unknown` will stop the algorithm, but you should use `:user` to properly indicate the intention;
159
-
- `stats.elapsed_time`: elapsed time in seconds.
145
+
$(callback_docstring)
160
146
Similarly to the callback, when using a quasi-Newton approximation, two functions, `qn_update_y!(nlp, solver, stats)` and `qn_copy!(nlp, solver, stats)` are called at each update of the approximation.
161
147
Namely, the former computes the `y` vector for which the pair `(s, y)` is pushed into the approximation.
Copy file name to clipboardExpand all lines: src/R2_alg.jl
+1-15Lines changed: 1 addition & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -160,21 +160,7 @@ The algorithm stops either when `√(ξₖ/νₖ) < atol + rtol*√(ξ₀/ν₀)
160
160
The value returned is a `GenericExecutionStats`, see `SolverCore.jl`.
161
161
162
162
# Callback
163
-
The callback is called at each iteration.
164
-
The expected signature of the callback is `callback(nlp, solver, stats)`, and its output is ignored.
165
-
Changing any of the input arguments will affect the subsequent iterations.
166
-
In particular, setting `stats.status = :user` will stop the algorithm.
167
-
All relevant information should be available in `nlp` and `solver`.
168
-
Notably, you can access, and modify, the following:
169
-
- `solver.xk`: current iterate;
170
-
- `solver.∇fk`: current gradient;
171
-
- `stats`: structure holding the output of the algorithm (`GenericExecutionStats`), which contains, among other things:
172
-
- `stats.iter`: current iteration counter;
173
-
- `stats.objective`: current objective function value;
174
-
- `stats.solver_specific[:smooth_obj]`: current value of the smooth part of the objective function
175
-
- `stats.solver_specific[:nonsmooth_obj]`: current value of the nonsmooth part of the objective function
176
-
- `stats.status`: current status of the algorithm. Should be `:unknown` unless the algorithm has attained a stopping criterion. Changing this to anything will stop the algorithm, but you should use `:user` to properly indicate the intention.
0 commit comments