pole-zero simplification
pole-zero simplification reduces the order of your model exactly by canceling pole-zero pairs or eliminating states that have no effect on the overall model response. pole-zero pairs can be introduced, for example, when you construct closed-loop architectures. normal small errors associated with numerical computation can convert such canceling pairs to near-canceling pairs. removing these states preserves the model response characteristics while simplifying analysis and control design. types of pole-zero simplification include:
structural elimination — eliminate states that are structurally disconnected from the inputs or outputs. eliminating structurally disconnected states is a good first step in model reduction because the process does not involve any numerical computation. it also preserves the state structure of the remaining states. such structurally nonminimal states can arise, for example, when you linearize a simulink® model that includes some unconnected state-space or transfer function blocks. at the command line, perform structural elimination with .
pole-zero cancellation or minimal realization — eliminate canceling or near-canceling pole-zero pairs from transfer functions. eliminate unobservable or uncontrollable states from state-space models. at the command line, perform this kind of simplification with .
in the model reducer app and the reduce model order live editor task, the pole-zero simplification method automatically eliminates structurally disconnected states and also performs pole-zero cancellation or minimal realization.
pole-zero simplification in the model reducer app
model reducer provides an interactive tool for performing model reduction and examining and comparing the responses of the original and reduced-order models. to reduce a model by pole-zero simplification in model reducer:
open the app and import a model to reduce. for instance, suppose that there is a model named
build
in the matlab® workspace. the following command opens model reducer and imports the lti modelbuild
.modelreducer(build)
in the data browser, select the model to reduce. click pole-zero simplification.
in the pole-zero simplification tab, model reducer displays a plot of the frequency response of the original model and a reduced version of the model. the app also displays a pole-zero map of both models.
the pole-zero map marks pole locations with
x
and zero locations witho
.note
the frequency response is a bode plot for siso models, and a singular-value plot for mimo models.
optionally, change the tolerance with which model reducer identifies canceling pole-zero pairs. model reducer cancels pole-zero pairs that fall within the tolerance specified by the simplification of pole-zero pairs value. in this case, no pole-zero pairs are close enough together for model reducer to cancel them at the default tolerance of
1e-05
. to cancel pairs that are a little further apart, move the slider to the right or enter a larger value in the text box.the blue
x
ando
marks on the pole-zero map show the near-canceling pole-zero pairs in the original model that are eliminated from the simplified model. poles and zeros remaining in the simplified model are marked with redx
ando
.try different simplification tolerances while observing the frequency response of the original and simplified model. remove as many poles and zeros as you can while preserving the system behavior in the frequency region that is important for your application. optionally, examine absolute or relative error between the original and simplified model. select the error-plot type using the buttons on the pole-zero simplification tab.
for more information about using the analysis plots, see .
when you have a simplified model that you want to store and analyze further, click . the new model appears in the data browser with a name that reflects the reduced model order.
after creating a reduced model in the data browser, you can continue changing the simplification parameters and create reduced models with different orders for analysis and comparison.
you can now perform further analysis with the reduced model. for example:
examine other responses of the reduced system, such as the step response or nichols plot. to do so, use the tools on the plots tab. see for more information.
export reduced models to the matlab workspace for further analysis or control design. on the model reducer tab, click export.
generate matlab code for pole-zero simplification
to create a matlab script you can use for further model-reduction tasks at the command line, click create reduced model, and select generate matlab script.
model reducer creates a script that uses the command to perform model reduction with the parameters you have set on the pole-zero simplification tab. the script opens in the matlab editor.
pole-zero cancellation at the command line
to reduce the order of a model by pole-zero cancellation at the command line, use minreal
.
create a model of the following system, where c
is a pi controller, and g
has a zero at rad/s. such a low-frequency zero can arise from derivative action somewhere in the plant dynamics. for example, the plant may include a component that computes speed from position measurements.
g = zpk(3e-8,[-1,-3],1); c = pid(1,0.3); t = feedback(g*c,1)
t = (s 0.3) (s-3e-08) ---------------------- s (s 4.218) (s 0.7824) continuous-time zero/pole/gain model.
in the closed-loop model t
, the integrator from c
very nearly cancels the low-frequency zero of g
.
force a cancellation of the integrator with the zero near the origin.
tred = minreal(t,1e-7)
tred = (s 0.3) (s-3e-08) ---------------------- s (s 4.218) (s 0.7824) continuous-time zero/pole/gain model.
by default, minreal
reduces transfer function order by canceling exact pole-zero pairs or near pole-zero pairs within sqrt(eps)
. specifying 1e-7
as the second input causes minreal
to eliminate pole-zero pairs within rad/s of each other.
the reduced model tred
includes all the dynamics of the original closed-loop model t
, except for the near-canceling zero-pole pair.
compare the frequency responses of the original and reduced systems.
bode(t,tred,'r--') legend('t','tred')
because the canceled pole and zero do not match exactly, some extreme low-frequency dynamics evident in the original model are missing from tred
. in many applications, you can neglect such extreme low-frequency dynamics. when you increase the matching tolerance of minreal
, make sure that you do not eliminate dynamic features that are relevant to your application.
see also
apps
functions
- |