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

    function nObj = getNumObjectives(obj)
%GETNUMOBJECTIVES Return the lengths of the objectives.
%
%   NOBJ = GETNUMOBJECTIVES(OBJ) returns the lengths of each of the
%   objectives in the optimization results.
%
%   See also CGOPTIMOUTPUT/GETNUMFIXEDVARIABLES,
%   CGOPTIMOUTPUT/GETNUMFREEVARIABLES, CGOPTIMOUTPUT/GETNUMCONSTRAINTS

%  Copyright 2007 The MathWorks, Inc.

nObj = numObjectives(obj.optimRunner);