Integration with python-control #195
Replies: 2 comments 1 reply
|
Hi @milanofthe (and @murrayrm if still following this thread), I'd like to pick up the "end-to-end linearization of whole systems" gap mentioned above. Looking at the current code, the building blocks are already there but not connected:
I'd like to propose closing that gap with:
I see this as the foundation the other two ideas in this thread depend on: once there's a reliable global Happy to scope this as a PR against pathsim. Let me know what do you think before I start. |
|
Picking this thread back up, because @miguelpi314's PR #237 made me work out what Short version: linearization in PathSim is becoming a query that returns Why the current design doesn't extendToday That works fine for what it was built for — flip the system to linear, simulate, Where fastsim already landedfastsim hit the same question earlier and answered it the
The Jacobian there is I want the two projects to agree here, so PathSim moves to the same shape. The designThree levels, 1. Operator — already done. 2. Block — the actual gap. Blocks that carry signal but have no valid linear model — Note what that implies:
3. Simulation / Subsystem. rather than by substituting along a topological order. Two reasons: it handles Since every level returns a What this gives the python-control side@murrayrm — mapping this back to your three ideas:
TrimThe other half of #237 is a That also answers the question of whether trim is provisional: it stays PathSim's StatusLevel 1 exists. Levels 2 and 3 are open — level 2 is self-contained and a good |
Uh oh!
There was an error while loading. Please reload this page.
@murrayrm, @RemDelaporteMathurin lets move the discussion about collaboration/integration here.
Richard and I had a bit of an email exchange (I was reaching out to the python-control team), I will paste the core here so we can continue the discussion in the open.
His ideas were:
My response to them was:
ctrlmodule but having this done through python-control or as an addition probably has some value.And his gain:
Do you happen to know anyone who is contributing to pathsim that is familiar with python-control? If so, I think they would be in a good position to add a to_pathsim method to the various InputOutputSystem subclasses that would do the trick. We already have something like for generating Pandas dataframes when Pandas is present.
In terms of the linearization, you could possibly get away with a numerical solution, similar to what we do in the NonlinearIOSystem.linearize method. This would only work around an operating point and would have to have constant values for any discrete/switching variables, but could be useful.
All reactions