Skip to content

Commit

Permalink
add t0<tf constraint in test case with both free times
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMartinon committed Jun 13, 2024
1 parent a3fa3cf commit a45066e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_objective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ constraint!(ocp4, :initial, [0,0], :initial_constraint)
constraint!(ocp4, :final, [1,0], :final_constraint)
constraint!(ocp4, :control, -1, 1, :control_constraint)
constraint!(ocp4, :variable, [0.1, 0.1], [10, 10], :variable_constraint)
constraint!(ocp4, :variable, v -> v[2]-v[1], 0, Inf )
constraint!(ocp4, :variable, v -> v[2]-v[1], 1.0, Inf )
dynamics!(ocp4, (x, u, v) -> [x[2], u])
objective!(ocp4, :mayer, (x0, xf, v) -> v[1], :max)
sol4 = solve(ocp4, grid_size=100, print_level=0, tol=1e-12)
Expand Down

0 comments on commit a45066e

Please sign in to comment.