www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimoptions/getObjectives.m

    function objinfo = getObjectives(obj)
%GETOBJECTIVES Return information about the optimization objectives.
%   OBJINFO = GETOBJECTIVES(OPTIONS) returns a structure array of
%   information regarding the optimization objective functions.
%   OBJINFO(i).label contains the label for the i-th objective.  A string
%   defining the type of the i-th objective ('max, 'min', 'min/max' or
%   'helper') is stored in OBJINFO(i).type.
%
%   See also CGOPTIMOPTIONS/ADDOBJECTIVE, CGOPTIMOPTIONS/SETOBJECTIVESMODE,
%            CGOPTIMOPTIONS/GETOBJECTIVESMODE.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


objinfo = obj.objectives.details;