Ensure the names of the components are different from the name of the variable.
|
@ensure !__is_state_set(ocp) CTBase.UnauthorizedCall("the state has already been set.") |
|
@ensure n > 0 CTBase.IncorrectArgument("the state dimension must be greater than 0") |
|
@ensure size(components_names, 1) == n CTBase.IncorrectArgument( |
Ensure the names of the components are different from the name of the variable.
CTModels.jl/src/ocp/state.jl
Lines 64 to 66 in 9a7438d