Support automatic conversion of InstationaryDiscretization to LTISystem#497
Support automatic conversion of InstationaryDiscretization to LTISystem#497
Conversation
…space ids Otherwise we possibly run into problems when red space dimension agrees with number of inputs or outputs.
|
Fixes #454. |
pmli
left a comment
There was a problem hiding this comment.
It looks very nice. I like the use of more abstract input_space and output_space.
Only now I realized that 'STATE' and state_space are not used completely correctly. As far as I understand, the state is defined as the information necessary to simulate a system forward from some time instant (basically, the initial condition). So, for LTISystems, the vector x really is the state, but for SecondOrderSystem the state is x and its derivative. For delay systems, the state are all the values of x over some time interval.
But, I'm not sure if there is a unified terminology for x ("position" would make sense for second-order systems), so maybe also calling it "state" is ok for now...
Changing the heat demo example from 1D to 2D sound good to me.
Codecov Report
|
Codecov Report
|
|
I see. Probably, it doesn't really make sense to have a state_space for an arbitrary |
|
Maybe it makes sense to add an |
|
@sdrave Using |
|
Regarding |
|
I guess, either way, we need an |
|
I have just added a commit which introduces |
This add a
to_ltimethod toInstationaryDiscretization. Thed.rhsis chosen asBmatrix.Since
InstationaryDiscretizationhas no constraints regarding space ids I decided to lift the requirement that state/input/output spaces inLTISystemhave fixed space ids. Now, the only requirement is that the state space has a different id from both the input space and the output space. I expect the to be useful also in other situations where one considers multiple systems at the same time.The new
to_ltimethod is now used in theheat.pydemo. One could also decide to showcase a 2d problem.