To design optimization-based linear controller for an LTI model:
Create and import a linear model into a SISO Design Task. You can create an LTI model at the MATLAB® command line, as described in Creating an LTI Plant Model.
Create a SISO Design Task with design and analysis plots, as described in Creating Design and Analysis Plots.
To learn more about SISO Design Tool, see Using the SISO Design Task in the Controls & Estimation Tools Manager in the Control System Toolbox™ documentation.
Under Automated Tuning select Optimization based tuning as the Design Method and then click the Optimize Compensators button to create a Response Optimization task within the Control and Estimation Tools Manager. See Creating a Response Optimization Task for more information.
Within the Response Optimization node, select the Compensators pane to select and configure the compensator elements you want to tune during the response optimization. See Selecting Tunable Compensator Elements for more information.
Under Design requirements in the Response Optimization node, select the design requirements you want the system to satisfy. See Adding Design Requirements for more information.
Click the Start Optimization button within the Response Optimization node. The optimization progress results appear under Optimization. The Compensators pane contains the new, optimized compensator element values. See Optimizing the System's Response for more information.