Rapid-Design-of-Systems-Laboratory / beluga

General purpose indirect trajectory optimization
Other
25 stars 6 forks source link

States (y) and costates (dual) are stored in different order #205

Closed SeanMatthewNolan closed 5 years ago

SeanMatthewNolan commented 5 years ago

This is a minor problem, but the indexing for the returned solution for the states is different than for the costates. They should be the same for consistency. The states are stored such that the time step index is second. The costates (dual) has the time step index first.

msparapa commented 5 years ago

Are you positive? For all the examples, time index is first on the states and costates.

SeanMatthewNolan commented 5 years ago

Sorry, I'm not. I meant to delete this soon after I posted it. I thought I encountered it when pulling values using the terminal. I even thought I checked it before posting, but after I posted, I saw I was wrong. I still don't know how I got so confused. I intended to delete this issue, but got distracted or something.