OpenMDAO / RevHack2020

OpenMDAO 2020 Reverse Hackathon
14 stars 18 forks source link

EVTOL dymos-collocation vectorized method wrong results #70

Open ShuanTai418 opened 1 year ago

ShuanTai418 commented 1 year ago

To whom it may concern,

I ran the code evtol_dymos_vectorized.py in RevHack2020/problems/evtol_trajectory/evtol_dymos, then plot the results. I download the code directly from github, and did not modify it. However, the plots (below) I got did not seem to be matched with the plots showing in README.md

results

When I ran evtol_dymos.py, the plot (below) is similar to the plot showing in README.md

results

I also ran evtol_dymos_vectorized_shooting.py & evtol_dymos_shooting.py, but there was a error showing "ValueError: Value (True) of option 'solve_segments' is not one of (False, 'forward', 'backward')." (line 59)

I used IPOPT for my optimizer. I am wondering if there was something wrong with my environment or the code itself?

Thank you for your time and assistance.

Here is the environment I used python 3.9.13 openmdao 3.18.0 dymos 1.5.1.dev0 IPOPT 3.14.8 numpy 1.22.4 matplotlib 3.5.2

robfalck commented 1 year ago

Will take a look, thanks for bringing this to our attention