www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conswitch/getConstraintFitOptions.m
function [opts, ok] = getConstraintFitOptions(con) %GETCONSTRAINTFITOPTIONS Get the options for fit a constraint to data % % OPTS = GETCONSTRAINTFITOPTIONS(CON) % % This method returns OPTS = [] and indicates that CON does not support % constraint fitting part of the fitting process. This does not necessarily % mean that a constraint does support fitting to data, but just that the third % step, i.e., FITCONSTRAINT, is not supported. It is possible that the % constraint maybe fitted to data via special or boundary points. Sub-classes % of CONBASE that require the "constraint fit" need to overload this method to % return an appropriate set of options. % % See also CONBASE, CONBASE/GETSPECIALPOINTOPTIONS, % CONBASE/GETBOUNDARYPOINTOPTIONS, CONBASE/FITCONSTRAINT. % Copyright 2008 The MathWorks, Inc. and Ford Global Technologies, Inc. if isempty(con.ConList) error(message('mbc:conswitch:InvalidState')) end % Second return argument is required to work with "xregoptmgr" code. ok = true; % Options for fitting the local constraint opts = getConstraintFitOptions( con.ConList{1} ); %-------------------------------------------------------------------------- % EOF %--------------------------------------------------------------------------