Clear Filters
Clear Filters

Linearize time varying model

2 views (last 30 days)
Daniel
Daniel on 29 Nov 2022
Answered: Vidip Jain on 20 Mar 2023
I want to linearize a Simulink model containing three enabled subsystems with one of them being active at a time. They describe the same two state variables of my model at three different configurations, that are all active troughout one period of execution.
Now I want to linearize my model, using the linearize command in Matlab at three snapshots found by the findop command.
However, when I check the operating points, the two state variables are present three times each, one time for every enabled subsystem. Also the linearize command won't work proberly, it does not throe an error, but only produces a state space model for the variables linearized before the ones in question.
So my question is, how can I tell Matlab that the 6 identified state variables in reality only represent 2? Or alternatively, how to let the findop command ommit the subsystems not active at the simulation time of the snapshot?

Accepted Answer

Vidip Jain
Vidip Jain on 20 Mar 2023
When using the “findop” command in Simulink, you can specify the active state configuration using the ActiveConfigSet” option. This allows you to find the operating point for a specific configuration and avoid having all state variables appear multiple times in the output.
This will find the operating point for the first configuration only, and the output should only contain the two state variables once. You can repeat this process for the other configurations to find the operating points for those as well.
When using the linearize command, you can pass in the operating point you found using findop for the desired configuration. This should give you a state-space model for that specific configuration.

More Answers (0)

Categories

Find more on Manual Performance Optimization in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!