Simulink Control Design™ - MathWorks

(Tuis.) #1

Batch Compute Steady-State Operating Points for


Multiple Specifications


This example shows how to find operating points for multiple operating point
specifications using the findop command. You can batch linearize the model using the
operating points and study the change in model behavior.

Each time you call findop, the software compiles the Simulink model. To find operating
points for multiple specifications, you can give findop an array of operating point
specifications, instead of repeatedly calling findop within a for loop. The software uses a
single model compilation to compute the multiple operating points, which is efficient,
especially for models that are expensive to recompile repeatedly.

Open the Simulink model.

sys = 'scdspeed';
open_system(sys)

Create an array of default operating point specification objects.

opspec = operspec(sys,3);

To find steady-state operating points at which the output of the rad/s to rpm block is fixed,
add a known output specification to each operating point specification object.

opspec = addoutputspec(opspec,[sys '/rad//s to rpm'],1);
for i = 1:3

Batch Compute Steady-State Operating Points for Multiple Specifications
Free download pdf