www.gusucode.com > control 案例程序 matlab源码代码 > control/OvershootConstraintExample.m
%% Overshoot Constraint % Create a requirement that limits the overshoot of the step response from % signals named |'r'| to |'y'| in a control system to 8 percent. %% Req = TuningGoal.Overshoot('r','y',8); %% % You can use |Req| as an input to |looptune| or |systune| when tuning the % control system. %% % Configure the requirement to apply only to the second model in a model % array to tune. Also, configure the requirement to be evaluated with a % loop open in the control system. Req.Models = 2; Req.Openings = 'OuterLoop'; %% % Setting the |Models| property restricts application of the requirement % to the second model in an array, when you use the requirement to tune % an array of control system models. Setting the |Openings| property specifies % that requirement is evaluated with a loop opened at the location in the % control system identified by |'OuterLoop'|.