Closed yunlongxu-numagic closed 2 years ago
states
, inputs
-> states_dot
, outputs
states
, input
-> states_dot
, output
, outputs
might be just a subset, as it is much cheaper to collect the subset before the outputs array is formed than after
states
, inputs
, states_dot
, con_outputs
-> residuals
as implicit
, but with a flat array as inputs
should we get rid of
con_outputs
from model IO? it is only used for OCP, and really defined by the OCP, and selected from the existing model outputs. So a model developer really isn't aware of this!What makes things a bit more complicated is that for efficiency, the compiled model will only have this 'con_outputs' as outputs, and with derivatives taken on it. So for the compiled model, it does need to be aware of con_outputs!
Some guiding principles:
Some challenges:
Some questions:
con_outputs
somewhere, or just make it a variant instance ofoutputs
?implicit
method and its associated derivatives? The model owns it now, but would require inputs from OCP to determine what outputs to use as constraint outputs. The OCP could also own it, but in that case, how do we bring in external model?