Documentation Center

  • Trial Software
  • Product Updates

Contents

Linearize at Trimmed Operating Point

This example shows how to use the Linear Analysis Tool to linearize a model at a trimmed steady-state operating point (equilibrium operating point).

The operating point is trimmed by specifying constraints on the operating point values, and performing an optimization search that meets these state and input value specifications.

 Code Alternative

  1. Open the Simulink® model.

    sys = 'magball';
    open_system(sys)

  2. Open the Linear Analysis Tool for the model.

    In the Simulink model window, select Analysis > Control Design > Linear Analysis.

  3. In the Simulink model window, define the portion of the model to linearize for this linearization task:

    1. Right-click the Controller block output signal (input signal to the plant). Select Linear Analysis Points > Input Perturbation.

    2. Right-click the Magnetic Ball Plant output signal, and select Linear Analysis Points > Open-loop Output.

    Annotations appear in the model indicating which signals are designated as linearization I/O points.

  4. In the Linear Analysis Tool, select Trim model, in the Operating Point list.

    Click Specifications.

    By default, all model states are specified to be at equilibrium (as shown in the Steady State column).

  5. In the States tab, select Known for the height state.

    The height of the ball should match the reference signal height. This height value should remain fixed during the optimization.

  6. Enter 0 for the minimum bound of the Current block state.

  7. Compute the operating point.

    Click .

    A new variable, op_trim1, appears in the Linear Analysis Workspace.

  8. Select the operating point to be used for linearization.

    In the Exact Linearization tab, select op_trim1 from the Operating Point list.

  9. Linearize the model at the specified operating point.

    Click .

Was this topic helpful?