Skip to content

[Dev] Dual variables #105

@ocots

Description

@ocots

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?

Metadata

Metadata

Assignees

Labels

internal devModification to the code is requested and should not affect user experiment

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions