Resynchronize slLinearizer interface with current model state
refresh(sllin) resynchronizes the slLinearizer interface with the current state of the model. The interface recompiles the model for the next call to getIOTransfer, getLoopTransfer, getSensitivity, or getCompSensitivity . This model recompilation ensures that the interface uses the current model state when computing linearizations.
Use this command after you make changes to the model that impact linearization. Changes that impact linearization include modifying parameter values and reconfiguring blocks and signals.
Create an slLinearizer interface.
sllin = slLinearizer('scdcascade');
Generally, you configure the interface with analysis points, openings, operating points, and parameter values. Then, you linearize the model using the getIOTransfer, getLoopTransfer, getSensitivity, and getCompSensitivity commands. The first time you call one of these commands with sllin, the software stores the state of the model in sllin and uses it to compute the linearization.
You can change the model after your first call to getIOTransfer, getLoopTransfer, getSensitivity, or getCompSensitivity with sllin. Some changes impact the linearization, such as changing parameter values. If your change impacts the linearization, call refresh to get expected linearization results. For this example, change the proportional gain of the C2 PID controller block.
Trigger the interface to recompile the model for the next call to getIOTransfer, getLoopTransfer, getSensitivity, or getCompSensitivity.