main content

compensator design for a set of plant models -凯发k8网页登录

this example shows how to design and analyze a controller for multiple plant models using control system designer.

acquire a set of plant models

for a typical feedback problem, the controller, c, is designed to satisfy some performance objective.

typically, the dynamics of the plant, g, are not known exactly and can vary based on operating conditions. for example, the system dynamics can vary:

  • due to manufacturing tolerances that are typically defined as a range about the nominal value. for example, resistors have a specified tolerance range, such as 5 ohms /- 1%.

  • operating conditions. for example, aircraft dynamics change based on altitude and speed.

when designing controllers for these types of systems, the performance objectives must be satisfied for all variations of the system.

you can model such systems as a set of lti models stored in an lti array. you can then use control system designer to design a controller for a nominal plant from the array and analyze the controller design for the entire set of plants.

the following list shows commands for creating an array of lti models:

control system toolbox™:

  • functions: , , , ,

simulink® control design™:

  • functions: (simulink control design), (simulink control design)

  • example: (simulink control design).

robust control toolbox™:

  • functions: (robust control toolbox), (robust control toolbox), (robust control toolbox).

system identification toolbox™:

  • functions: (system identification toolbox), (system identification toolbox), (system identification toolbox).

create lti array

in this example, the plant model is the second-order system:

$$ g(s) = \frac{\omega_n^2}{s^2  2\zeta\omega_n s \omega_n^2} $$

where

$$ \omega_n = (1,1.5,2) $$ and $$ \zeta = (.2,.5,.8) $$.

construct an lti array for the combinations of $\zeta$ and $\omega_n$.

wn = [1,1.5,2];
zeta = [.2,.5,.8];
ct = 1;
for ct1 = 1:length(wn)
    for ct2 = 1:length(zeta)
        zetai = zeta(ct2);
        wni = wn(ct1);
        g(1,1,ct) = tf(wni^2,[1,2*zetai*wni,wni^2]);
        ct = ct 1;
    end
end
size(g)
9x1 array of transfer functions.
each model has 1 outputs and 1 inputs.

open control system designer

start the control system designer.

controlsystemdesigner(g)

the app opens with bode and root locus open-loop editors open along with a step response plot.

by default, the nominal model used for design is the first element in the lti array.

  • the root locus editor displays the root locus for the nominal model and the closed-loop pole locations associated with the set of plants.

  • the bode editor displays both the nominal model response and responses of the set of plants.

using these editors, you can interactively tune the gain, poles, and zeros of the compensator, while simultaneously visualizing the effect on the set of plants.

change the nominal model

to change the nominal model, in the app, click multimodel configuration.

to select the fifth model in the array as the nominal model, in the multimodel configuration dialog box, set the nominal model index to 5. the app response plots update automatically.

options for plotting responses

the response plots always show the response of the nominal model. to view the other model responses, right-click the plot area and select:

  • multimodel display > individual responses to view the response for each model.

  • multimodel display > bounds to view an envelope that encapsulates all of the responses.

see also

related topics

网站地图