If we have this:
ocp = @def begin
t ∈ [0, 1], time
x ∈ R², state
u ∈ R, control
x₂(t) ≤ 1.2
x₂(t) ≤ 2.0
x₂(t) ≤ 3.0
x(0) == [-1, 0]
x(1) == [0, 0]
ẋ(t) == [x₂(t), u(t)]
∫( 0.5u(t)^2 ) → min
end;
when we solve the problem and call build_solution, do we pass in state_constraints_ub_dual a function that returns a vector of dimension 3 because there are 3 constraints on x₂ or a vector of dimension 2 since x is of dimension 2.
@PierreMartinon?
If we have this:
when we solve the problem and call
build_solution, do we pass instate_constraints_ub_duala function that returns a vector of dimension 3 because there are 3 constraints onx₂or a vector of dimension 2 sincexis of dimension 2.@PierreMartinon?