Rapid-Design-of-Systems-Laboratory / beluga

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

Constants are output scaled #192

Closed SeanMatthewNolan closed 5 years ago

SeanMatthewNolan commented 5 years ago

Values of constants need to be unscaled before output

msparapa commented 5 years ago

Are you sure this is the case? I've tried several examples and it seems like the values of the constants are fine on output. I'm checking the sol.aux['const'] values.

msparapa commented 5 years ago

This one got me after I tried to reuse the compute_control function outside of beluga. I got rid of most, if not all the uses of .aux['const'] and replaced them with just .const. I had to send in the raw bvp data to continuation because each trajectory no longer tracks what the names of the constants are, just the values.

Scaling was fixed in the process.