OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
212 stars 67 forks source link

Including control rate outputs in the timeseries results in the simulation not being displayed in the timeseries report. #1132

Closed robfalck closed 4 days ago

robfalck commented 1 week ago

Description

When phase.timeseries_options['include_control_rates'] = True, and run_problem is executed with both simulate=True and make_plots=True, the timeseries report disables plotting of the simulation results because they are not a subset of the solution results.

Specifically, it appears that using this option with a control rate target (for the first time derivative) will result in "rate2" derivative being present in the simulation results but not in the solution results. Since the simulation timeseries outputs are not a subset of the solution outputs, dymos refuses to plot them.

Example

As with the other control issue, this problem can be revealed by adding phase.timeseries_options['include_control_rates'] = True before problem.setup for the example code in #1131.

The resulting error will be noted during the creation of the bokeh timeseries report.

/Users/rfalck/Projects/dymos.git/dymos/visualization/timeseries/bokeh_timeseries_report.py:288: OpenMDAOWarning:Simulation file does not contain the same outputs as the solution file. Skipping plotting of simulation timeseries data.

This results because the simulation results contain the output 'traj0.phases.phase0.timeseries.timeseries_comp.int_theta_rate2' while the solution results do not.

Dymos Version

1.12.1-dev

Relevant environment information

No response