numagic / lumos

scalable accelerated optimal control
MIT License
16 stars 0 forks source link

automatic collection of residuals #68

Closed yunlongxu-numagic closed 1 year ago

yunlongxu-numagic commented 2 years ago

like outputs, making the residual collection automatic is also quite helpful.

There are a few possibilities on how we can do it: 1) do it just like the outputs 2) make residuals work like con_outputs, that they are just collected from model outputs (so the model outputs must include the residuals as well)

yunlongxu-numagic commented 2 years ago

It probably makes sense that residuals are a property of models, rather than configs.

Imagine a vehicle with 2 variants of differential models, one is a DAE with 1 residual, the other is ODE without residuals.