JuliaMPC / NLOptControl.jl

nonlinear control optimization tool
Other
109 stars 26 forks source link

Is it possible to specify boundary conditions for the control function? #27

Closed roiholtzman closed 4 years ago

roiholtzman commented 4 years ago

From what I saw here there is only a possibility to specify upper and lower limits for the control function u. Is there a way to to specify boundary conditions? i.e. something like U0=[...], UF=[...].

huckl3b3rry87 commented 4 years ago

No, you cannot do that using NLOptControl syntax, because it is not a standard constraint in an optimal control problem. But you can do it using JuMP's @constraint or @NLconstaint macros. Take a look at the API in NLOptControl for examples

On Sun, Apr 5, 2020 at 4:27 AM roiholtzman notifications@github.com wrote:

From what I saw here https://juliampc.github.io/NLOptControl.jl/stable/tutorials/Brachistochrone/main.html#Define-the-Problem-1 there is only a possibility to specify upper and lower limits for the control function u. Is there a way to to specify boundary conditions? i.e. something like U0=[...], UF=[...].

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JuliaMPC/NLOptControl.jl/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6TAWUGWYASR3BMFMCJKCTRLBTLBANCNFSM4MAVVIDA .

-- Sincerely,

Huckleberry Febbo