solveOCP
Solves an instance of the optimal control problem.
Contents
Syntax
Description
This function solves the optimal control problem given the initial state x0 of the dynamical system and an initial guess y0 (all optimization variables including the states, control inputs, and slack variables).
Input Arguments
|
obj |
instance of class optimalControl |
|
y0 |
initial guess (double array of dimension [obj.idxVars.nVars, 1]) |
|
x0 |
initial state of the dynamical system (double array of dimension [obj.nx, 1]) |
Output Arguments
|
sol |
solution to the optimal control problem - structure with the following fields
|
See Also
© 2018-2026 I6 Technische Universität München Website License
|
![]() |
![]() |
![]() |


