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
- ode_solver: Takes in a symbol representing the solver. Acceptable solvers may be found at https://docs.sciml.ai/DiffEqDevDocs/stable/internals/tableaus/. Note that the symbol may be different than the typical name of the solver, e.g. :Tsitouras5 rather than Tsit5.
258
+
- silent: set the model silent (suppress model output)
258
259
259
260
Returns a JuMPControlSolution, which contains both the model and the ODE solution.
260
261
"""
261
-
function DiffEqBase.solve(prob::JuMPControlProblem, jump_solver, ode_solver::Symbol)
262
+
function DiffEqBase.solve(prob::JuMPControlProblem, jump_solver, ode_solver::Symbol; silent =false)
262
263
model = prob.model
263
264
tableau_getter =Symbol(:construct, ode_solver)
264
265
@eval tableau =$tableau_getter()
266
+
silent &&set_silent(model)
265
267
266
268
# Unregister current solver constraints
267
269
for con inall_constraints(model)
@@ -285,6 +287,7 @@ end
285
287
"""
286
288
function DiffEqBase.solve(prob::InfiniteOptControlProblem, jump_solver;
0 commit comments