Skip to content

Commit

Permalink
Use node_time_interval as an arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Aug 4, 2024
1 parent f17b1c5 commit c741175
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples-gallery/plot_drone.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
specified_symbols,
tuple(),
num_nodes,
node_time_interval=interval_value)
interval_value)

# %%
# Specify the symbolic instance constraints.
Expand Down
2 changes: 1 addition & 1 deletion examples-gallery/plot_parallel_park.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
specified_symbols,
tuple(),
num_nodes,
node_time_interval=interval_value)
interval_value)

# %%
# Specify the symbolic instance constraints, i.e. initial and end conditions.
Expand Down
2 changes: 1 addition & 1 deletion examples-gallery/plot_pendulum_swing_up_fixed_duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
obj, obj_grad = create_objective_function(obj_func, state_symbols,
specified_symbols, tuple(),
num_nodes,
node_time_interval=interval_value,
interval_value,
time_symbol=t)

# %%
Expand Down
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, time_symbol=t)
interval_value, time_symbol=t)

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

0 comments on commit c741175

Please sign in to comment.