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
- The solver constraints that encode the time-stepping used by the solver
50
50
"""
51
51
function MTK.JuMPControlProblem(sys::ODESystem, u0map, tspan, pmap; dt =error("dt must be provided for JuMPControlProblem."), guesses =Dict(), kwargs...)
@warn"The control problem is overdetermined. The total number of conditions (# constraints + # fixed initial values given by u0map) exceeds the total number of states. The solvers will default to doing a nonlinear least-squares optimization."
@@ -74,25 +68,24 @@ Related to `JuMPControlProblem`, but directly adds the differential equations
74
68
of the system as derivative constraints, rather than using a solver tableau.
75
69
"""
76
70
function MTK.InfiniteOptControlProblem(sys::ODESystem, u0map, tspan, pmap; dt =error("dt must be provided for InfiniteOptControlProblem."), guesses =Dict(), kwargs...)
@warn"The control problem is overdetermined. The total number of conditions (# constraints + # fixed initial values given by u0map) exceeds the total number of states. The solvers will default to doing a nonlinear least-squares optimization."
@warn"The control problem is overdetermined. The total number of conditions (# constraints + # fixed initial values given by u0map) exceeds the total number of states. The solvers will default to doing a nonlinear least-squares optimization."
85
+
end
86
+
93
87
ctrls =controls(sys)
94
88
states =unknowns(sys)
95
-
96
89
model =InfiniteModel()
97
90
@infinite_parameter(model, t in [tsteps[1], tsteps[end]], num_supports =length(tsteps))
0 commit comments