Main Content

Specify Portion of Model to Linearize in金宝appModel

To specify the portion of the model to linearize, you can define and save linear analysis points directly in your Simulink®model. Analysis points represent linearization inputs, outputs, and loop openings for your model.

Alternatively, to specify analysis points without changing your model, you can define analysis points:

Specify Analysis Points

直接在你的Simuli指定分析点nk model, first open theLinearizationtab. To do so, in theAppsgallery, click线性化管理.

To specify an analysis point:

  1. In the model, click the signal you want to define as an analysis point.

  2. On theLinearizationtab, in theInsert Analysis Pointsgallery, select the type of analysis point you want to define.

    • Input Perturbation— Specifies an additive input to a signal.

    • Output Measurement— Takes a measurement at a signal.

    • Loop Break— Specifies a loop opening.

    • Open-Loop Input— Specifies a loop break followed by an input perturbation.

    • Open-Loop Output— Specifies an output measurement followed by a loop break.

    • Loop Transfer— Specifies an output measurement before a loop break followed by an input perturbation.

    • Sensitivity— Specifies an input perturbation followed by an output measurement.

    • Complementary Sensitivity— Specifies an output measurement followed by an input perturbation.

    For more information on the different types of analysis points, seeSpecify Portion of Model to Linearize.

    When you specify analysis points, the software adds annotations to your model indicating the linear analysis point type.

  3. Repeat steps 1 and 2 for all signals you want to define as analysis points.

For each linear analysis point that you specify, the software adds an annotation to your model indicating the analysis point type.

Select Bus Elements as Analysis Points

This example shows how to select individual elements in a bus signal as analysis points.

  1. Open Simulink model.

    sys ='scdbusselection'; open_system(sys)

  2. Specify a bus signal as a linear analysis point.

    First, open theLinearizationtab. In the Simulink model window, in theAppsgallery, click线性化管理.

    In the model, click a bus signal, such as theOUTPUTBUSsignal. On theLinearizationtab, clickSelect Bus Element.

    In the Select Linearization Points in the Bus dialog box, in theBus Hierarchysection, expand thelimitsbus, and selectupper_saturation_limit.limitsis a nested bus within theOUTPUTBUSsignal.

    Tip

    To filter bus elements by name within a large bus, you can enter search text in theFilter by namebox. The name match is case-sensitive. Also, you can enter a MATLAB®regular expression.

    To modify the filtering options, clicknext to theFilter by namebox.

    Filtering Options

    To add the selected signal to theLinearization Inputs/Outputs部分中,点击Add. By default, the signal is configured as anInput Perturbationanalysis point.

    You can change the analysis point type using the配置drop-down list. For example, to specify a linearization output point, selectOutput Measurement.

  3. To add additional analysis points from within the same bus signal, repeat step 2.

    To remove an analysis point, select the signal in theLinearization Inputs/Outputssection, and clickRemove.

    Once you have defined all of the required analysis points for that bus, clickOK.

  4. To specify analysis points for another bus signal, repeat steps 2 and 3.

  5. To view linear analysis point indicators in the Simulink model, on theLinearizationtab, in theInsert Analysis Pointsgallery, selectLinearization Indicators.

    The software adds graphical annotations to the bus signals indicating the type of analysis points specified. For example, if you specify a linearization input in theCOUNTERBUSsignal and a linearization output in theOUTPUTBUSsignal, the software adds the corresponding annotations to the signals.

    You can specify different analysis point types for multiple elements in the same bus. In this case, the software adds theannotation to the signal.

Related Topics