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
@@ -307,16 +307,16 @@ function add_jump_solve_constraints!(prob, tableau; is_free_t = false)
307
307
end
308
308
309
309
"""
310
-
Solve JuMPControlProblem. Arguments:
311
-
- prob: a JumpControlProblem
310
+
Solve JuMPDynamicOptProblem. Arguments:
311
+
- prob: a JumpDynamicOptProblem
312
312
- jump_solver: a LP solver such as HiGHS
313
313
- 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.
314
314
- silent: set the model silent (suppress model output)
315
315
316
-
Returns a JuMPControlSolution, which contains both the model and the ODE solution.
316
+
Returns a DynamicOptSolution, which contains both the model and the ODE solution.
`derivative_method` kwarg refers to the method used by InfiniteOpt to compute derivatives. The list of possible options can be found at https://infiniteopt.github.io/InfiniteOpt.jl/stable/guide/derivative/. Defaults to FiniteDifference(Backward()).
345
345
"""
346
-
function DiffEqBase.solve(prob::InfiniteOptControlProblem, jump_solver;
346
+
function DiffEqBase.solve(prob::InfiniteOptDynamicOptProblem, jump_solver;
SciMLBase.AbstractODEProblem{uType, tType, isinplace} end
3
3
4
-
structOptimalControlSolution
4
+
structDynamicOptSolution
5
5
model::Any
6
6
sol::ODESolution
7
7
input_sol::Union{Nothing, ODESolution}
8
8
end
9
9
10
-
function Base.show(io::IO, sol::OptimalControlSolution)
10
+
function Base.show(io::IO, sol::DynamicOptSolution)
11
11
println("retcode: ", sol.sol.retcode, "\n")
12
12
13
13
println("Optimal control solution for following model:\n")
@@ -16,10 +16,10 @@ function Base.show(io::IO, sol::OptimalControlSolution)
16
16
print("\n\nPlease query the model using sol.model, the solution trajectory for the system using sol.sol, or the solution trajectory for the controllers using sol.input_sol.")
0 commit comments