balanced truncation model reduction -凯发k8网页登录

main content

balanced truncation model reduction

balanced truncation computes a lower-order approximation of your model by neglecting states that have relatively low effect on the overall model response. using a lower-order approximation that preserves the dynamics of interest can simplify analysis and control design. in the balanced truncation method of model reduction, the software measures state contributions by hankel singular values (see ) and discards states with smaller values. you can compute a reduced-order model by balanced truncation:

  • at the command line, using the command.

  • in the app, using the balanced truncation method.

  • in the task in the live editor, using the balanced truncation method.

for more general information about model reduction, see .

balanced truncation 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 approximate a model by balanced truncation in model reducer:

  1. open the app, and import an lti 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 model.

    modelreducer(build)
  2. in the data browser, select the model to reduce. click balanced truncation.

    in the balanced truncation tab, model reducer displays a plot of the frequency response of the original model and a reduced version of the model. the frequency response is a bode plot for siso models, and a singular-value plot for mimo models. the app also displays a hankel singular-value and approximation error plot of the original model.

    the hankel singular-value plot shows the relative energy contributions of each state in the system. model reducer computes an initial reduced-order model based on these values. the highlighted bar is the lowest-energy state in the initial reduced-order model. model reducer discards states that have lower hankel singular values than the highlighted bar.

  3. try different reduced-model orders to find the lowest-order model that preserves the dynamics that are important for your application. to specify different orders, either:

    • enter model orders in the reduced orders field. you can enter a single integer or an array of integers, such as 10:14 or [8,11,12].

    • click a bar on the hankel singular-value plot to specify the lowest-energy state of the reduced-order model. ctrl-click to specify multiple values.

    when you change the specified reduced model order, model reducer automatically computes a new reduced-order model. if you specify multiple model orders, model reducer computes multiple reduced-order models and displays their responses on the plot.

  4. optionally, examine the absolute or relative error between the original and reduced-order model, in addition to the frequency response. select the error-plot type using the buttons on the balanced truncation tab.

    for more information about using the analysis plots, see .

  5. if low-frequency dynamics are not important to your application, you can clear the preserve dc gain checkbox. doing so sometimes yields a better match at higher frequencies between the original and reduced-order models.

    when you check or clear the preserve dc gain checkbox, model reducer automatically computes new reduced-order models. for more information about this option, see .

  6. optionally, limit the hankel singular-value computation to a specific frequency range. such a limit is useful when the model has modes outside the region of interest to your particular application. when you apply a frequency limit, model reducer determines which states to truncate based on their energy contribution within the specified frequency range only. neglecting energy contributions outside that range can yield an even lower-order approximation that is still adequate for your application.

    to limit the singular-value computation, check focus on range. then, specify the frequency range by:

    • in the text box, entering a vector of the form [fmin,fmax]. units are rad/timeunit, where timeunit is the timeunit property of the model you are reducing.

    • on the response plot or error plot, dragging the boundaries of the shaded region or the shaded region itself. model reducer analyzes the state contributions within the shaded region only.

    when you check or clear the focus on range checkbox or change the selected range, model reducer automatically computes new reduced-order models.

    note

    checking focus on range automatically clears preserve dc gain. to enforce a dc match even when using frequency limits, recheck preserve dc gain. note that restricting the frequency range is not supported with relative error control.

  7. you can choose between absolute and relative errors by selecting the appropriate option in error bound. setting it to absolute controls the absolute error ggr while setting it to relative controls the relative error g1(ggr). relative error gives a better match across frequency while absolute error emphasizes areas with most gain.

    note

    switching between error bound options automatically clears preserve dc gain and focus on range. to enforce a dc match, recheck preserve dc gain. note that restricting the frequency range is not supported with relative error control.

  8. when you have one or more reduced models that you want to store and analyze further, click . the new models appear in the data browser. if you have specified multiple orders, each reduced model appears separately. model names reflect the reduced model order.

    after creating reduced models in the data browser, you can continue changing the reduction 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 balanced truncation

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 and options you have set on the balanced truncation tab. the script opens in the matlab editor.

balanced truncation in other environments

instead of working in the model reducer app, you can perform balanced truncation in other environments.

  • in the live editor, use the task to interactively perform balanced-truncation model reduction and generate code in your live script. for an example, see .

  • at the matlab command prompt or in scripts and functions, use the command. for examples, see:

see also

apps

live editor tasks

functions

  • |

related topics

网站地图