checkConstraint
check if the solution to the optimal control problems satisfies all constraints
Contents
Syntax
Description
This function checks if the solution that was determined with the optimal control problems satisfies all constraints. This is necessary because due to the limited computation time the optimal control problems might be terminated before totoal convergence is achieved. Further, the function checks if the cost for the new solution is lower than the cost for the previous solution
Input Arguments
x |
Center trajectory determined by the optimal control problem (dimension: [nx,N]) |
||||||||||
u |
Control inputs determined by the optimal control problem (dimension: [nu,N]) |
||||||||||
L |
Value of the objective function (=cost) of the previous solution |
||||||||||
J |
Summed distance of the points from the previous solution to the terminal region |
||||||||||
Opts |
a structure containing following options
|
Output Arguments
res |
Flag that specifies if all constraints are satisfied and the cost of the new solution is lower than the one for the previous solution (0 or 1) |
L_ |
Value of the objective function (=cost) of the new solution |
J_ |
Summed distances of the points from the new solution to the terminal region |
See Also
© 2018-2020 I6 Technische Universität München Website License
![]() |
![]() |
![]() |
![]() |