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 72df611 commit d7bdd4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opty/tests/test_direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_pendulum():
# Symbolic equations of motion
# NOTE : h, real=True is used as a regression test for
# https://github.com/csu-hmc/opty/issues/162
# NOTE : Ix is used because NumPy 2.0 uses I in the C API.
I, m, g, h, t = sym.symbols('Ix, m, g, h, t', real=True)
theta, omega, T = sym.symbols('theta, omega, T', cls=sym.Function)

Expand Down Expand Up @@ -56,6 +57,7 @@ def test_pendulum():
Problem(obj, obj_grad, eom, state_symbols, num_nodes, interval_value,
known_parameter_map=par_map,
instance_constraints=instance_constraints,
time_symbol=t,
bounds={T(t): (-2.0, 2.0)},
show_compile_output=True)

Expand Down

0 comments on commit d7bdd4e

Please sign in to comment.