Closed ilaudo closed 1 month ago
This is an issue in our docs showing the latest development version, which has this set_time_val
feature.
In the meantime, you can either
python -m pip install --upgrade git+https://github.com/openmdao/dymos.git
We'll be creating a new release here in the next week or two and the latest docs will be sync'ed up with the latest release.
Description
Whenever I attempt to run the example code provided on the GitHub Notebook for the supersonic MTTC problem, I encounter the following error: AttributeError: 'Phase' object has no attribute 'set_time_val' This occurs at the line
phase.set_time_val(initial=0.0, duration=350)
, though it extends below to the other "phase.set_state_val()" and "phase.set_control_val()" commands. I checked the documentation and did find that these commands do exist as methods for the phase object. I am wondering if these methods were just removed in a more recent version of Dymos and the example on the Notebook is in need of updating. I have checked my environment as well, and I am running the most up-to-date versions of Dymos, OpenMDAO, and pyOptSparse. Thanks!Example
These lines trigger the issue:
phase.set_time_val(initial=0.0, duration=350)
phase.set_state_val('r', [0.0, 50000.0])
phase.set_state_val('h', [100.0, 20000.0])
phase.set_state_val('v', [135.964, 283.159])
phase.set_state_val('gam', [0.0, 0.0])
phase.set_state_val('m', [19030.468, 10000.])
phase.set_control_val('alpha', [0.0, 0.0])
The full code can be found here.
Dymos Version
1.10.0
Relevant environment information
No response