You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requirement Text
I would like to include a model where the control vector has an influence on the measured outputs, but the interface to PrognosticsModel only includes the state as input.
Background Information
I'm implementing a single-resistor (R_int) equivalent circuit model.
Suggested Solution
Add u to the inputs of PrognosticModel.output, update the use of the model in the various StateEstimator classes.
DoD
edit this to be a list of tasks that need to be completed
Implement feature
Add to example
Add to tutorial
Add tests
update documentation
Add to change notes for next release
The text was updated successfully, but these errors were encountered:
Thanks for your suggestion. Sorry for the delay - I was on paternity leave until this week.
You're describing a pretty common case that we've run into with many of our models. The recommended solution for this is to include your control input in the state vector. This is referred internally as a "pass-through input".
There's a few reasons for this:
We made a design decision early on that the state of the system (used to derive outputs, event states, threshold met, etc.) be completely described by the state vector to simplify and clean model design
Many of the tools we've built rely on this assumption.
I've looked through our public models and cant find an example of passthrough inputs, but it's present in a few of the nasa-internal models.
It would look something like this:
classMyModel:
defnext_state(self, x, u, dt):
... # Logic of modelnext_x['some_input'] =u['some_input'] # passthrough inputdefoutput(self, x):
# use x['some_input']
Is this an adequate solution to your problem? Let me know if this doesn't solve it and we can talk more about your proposed solution.
Second, passthrough inputs makes sense and I don't forsee it becoming a problem. I'll go ahead and close my PR then find out if I can make this work with our models.
Requirement Text
I would like to include a model where the control vector has an influence on the measured outputs, but the interface to
PrognosticsModel
only includes the state as input.Background Information
I'm implementing a single-resistor (R_int) equivalent circuit model.
Suggested Solution
Add
u
to the inputs ofPrognosticModel.output
, update the use of the model in the various StateEstimator classes.DoD
edit this to be a list of tasks that need to be completed
The text was updated successfully, but these errors were encountered: