www.gusucode.com > robust 案例源码程序 matlab代码 > robust/CreateOptionsSetforhinfstructExample.m

    %% Create Options Set for hinfstruct  
% Create an options set for a |hinfstruct| run using three random restarts
% and a stability offset of 0.001. Also, configure the |hinfstruct| run
% to stop as soon as the closed-loop gain is smaller than 1.   

% Copyright 2015 The MathWorks, Inc.


%%  
 options = hinfstructOptions('TargetGain',1,...
                          'RandomStart',3,'StableOffset',1e-3);  

%% 
% Alternatively, use dot notation to set the values of |options|. 
options = hinfstructOptions;
options.TargetGain = 1;
options.RandomStart = 3;
options.StableOffset = 1e-3;