Skip to content

Commit

Permalink
Declare time symbol explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed May 11, 2024
1 parent 3564758 commit 8bb61e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples-gallery/plot_betts2003.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def obj_grad(free):
known_parameter_map=par_map,
known_trajectory_map={T(t): time},
instance_constraints=instance_constraints,
time_symbol=t,
integration_method='midpoint')

# %%
Expand Down
1 change: 1 addition & 0 deletions examples/vyasarayani2011.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def obj_grad(free):
# The midpoint integration method is preferable to the backward Euler
# method because no artificial damping is introduced.
prob = Problem(obj, obj_grad, eom, (y1, y2), num_nodes, interval,
time_symbol=t,
integration_method='midpoint')

num_states = len(y)
Expand Down

0 comments on commit 8bb61e0

Please sign in to comment.