Skip to content

Commit

Permalink
obj
Browse files Browse the repository at this point in the history
  • Loading branch information
ocots committed Aug 27, 2024
1 parent b9cf431 commit 7d65575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_goddard_direct.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
function test_goddard_direct()

# goddard with state constraint - maximize altitude
ocp, objective = Goddard()
ocp, obj = Goddard()

# initial guess (constant state and control functions)
init = (state = [1.01, 0.05, 0.8], control = 0.1, variable = 0.2)
sol = solve(ocp; grid_size = 10, display = false, init = init)
@test objective(sol) objective atol = 5e-3
@test objective(sol) obj atol = 5e-3
end

0 comments on commit 7d65575

Please sign in to comment.