Closed mcgarnett closed 2 weeks ago
Will delete the issue if it's already related to the following issue https://github.com/OpenMDAO/dymos/issues/1076
@mcgarnett The recently merged PR #1127 should resolve your issue. Included in it is a simple example showing matrix parameters. The example you provided is somewhat more complicated from a sizing/connections perspective but it should work if you make the two following changes
Set vectorize_A=False
when declaring the linear system comp
Set static_target=True
when adding A
as a parameter
Description
Sometimes a parameter input to a Dymos ODE needs to be something other than a scalar or 1-D array. One such situation might be when the ODE describes 6 degree of freedom motion, where the Moment of Inertia matrix of the body whose motion you want to simulate is a parameter for the phase and trajectory.
It turns out that the parameters with shapes greater than 1-D work when finding the solution -- that is calling dymos.run_problem(p, run_driver=True, simulate=False)
However, when setting the "simulate" flag to True, the simulation fails with this error
A minimal example is provided that reproduces the behavior
Example
Dymos Version
1.10.0
Relevant environment information
OpenMDAO version 3.32.0 Dymos version 1.10.0