From 657cdf2da35f499514a008d5bb1bdb35c2e9bad6 Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Sat, 6 Jul 2024 16:25:44 +0200 Subject: [PATCH] Minor adjustments. --- examples-gallery/plot_one_legged_time_trial.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples-gallery/plot_one_legged_time_trial.py b/examples-gallery/plot_one_legged_time_trial.py index 92fe246..d081ffb 100644 --- a/examples-gallery/plot_one_legged_time_trial.py +++ b/examples-gallery/plot_one_legged_time_trial.py @@ -698,7 +698,6 @@ def plot_configuration(q_vals, p_vals, ax=None): knee_top_mus.e: (0.0, 1.0), h: (0.0, 0.1), } -sm.pprint(bounds) # %% # Instantiate the Optimal Control Problem @@ -746,7 +745,7 @@ def plot_configuration(q_vals, p_vals, ax=None): xs, us, ps, h_val= parse_free(solution, len(state_vars), 4, num_nodes, variable_duration=True) -print('Optimal value h:', solution[-1]) +print('Optimal value h:', h_val) print(info['status_msg']) # %% @@ -829,7 +828,7 @@ def plot_sim_compact(): # Animation # --------- ax, fig, bike_lines, leg_lines, mus_lines, knee_circle, title_text = \ - plot_configuration(q_0, p_vals) + plot_configuration(xs[:4, 0], p_vals) def animate(i):