Simulink Control Design™ - MathWorks

(Tuis.) #1
Parameters : []
OperatingPoints : [] (model initial condition will be used.)
BlockSubstitutions : []
Options : [1x1 linearize.LinearizeOptions]

The command-window display shows information about the slLinearizer interface. In
this interface, the OperatingPoints property display shows that no operating point is
specified.

Specify Multiple Operating Points for Linearization

You can linearize the model using trimmed operating points, the model initial condition,
or simulation snapshot times. For this example, use trim points that you obtain for varying
water-level reference heights.

opspec = operspec(mdl);
opspec.States(2).Known = 1;
opts = findopOptions('DisplayReport','off');

h = [10 15 20];

for ct = 1:numel(h)
opspec.States(2).x = h(ct);
Href = h(ct);
ops(ct) = findop(mdl,opspec,opts);
end

sllin.OperatingPoints = ops;

Here, h specifies the different water-levels. ops is a 1 x 3 array of operating point objects.
Each entry of ops is the model operating point at the corresponding water level.
Configure the OperatingPoints property of sllin with ops. Now, when you obtain
transfer functions from sllin using the getIOTransfer, getLoopTransfer,
getSensitivity, and getCompSensitivity functions, the software returns a
linearization for each specified operating point.

Each trim point is only valid for the corresponding reference height, represented by the
Href parameter of the Desired Water Level block. So, configure sllin to vary this
parameter accordingly.

param.Name = 'Href';
param.Value = h;

sllin.Parameters = param;

3 Batch Linearization

Free download pdf