Skip to content

Commit

Permalink
Pass in the time symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Jul 15, 2024
1 parent ddfed26 commit 72df611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opty/tests/test_direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_pendulum():
obj_func = sym.Integral(T(t)**2, t)
obj, obj_grad = create_objective_function(
obj_func, state_symbols, specified_symbols, tuple(), num_nodes,
node_time_interval=interval_value)
node_time_interval=interval_value, time_symbol=t)

# Specify the symbolic instance constraints, i.e. initial and end
# conditions.
Expand Down

0 comments on commit 72df611

Please sign in to comment.