The following example shows how to create custom optimization functions and how to
trim a model at the command line using these custom functions.
Simulink Model
For this example, use a model of three tanks connected with each other by orifices.
mdl = 'scdTanks';
open_system(mdl)
Compute Operating Points Using Custom Constraints and Objective Functions