Using Simulink    

Finding Steady-State Points

The Simulink trim function uses a Simulink model to determine steady-state points of a dynamic system that satisfy input, output, and state conditions that you specify. Consider, for example, this model, called lmod.

You can use the trim function to find the values of the input and the states that set both outputs to 1. First, make initial guesses for the state variables (x) and input values (u), then set the desired value for the output (y).

Use index variables to indicate which variables are fixed and which can vary.

Invoking trim returns the solution. Your results might differ because of roundoff error.

Note that there might be no solution to equilibrium point problems. If that is the case, trim returns a solution that minimizes the maximum deviation from the desired result after first trying to set the derivatives to zero. For a description of the trim syntax, see trim in the Simulink online help.


  Linearizing Models Creating Masked Subsystems