www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimoutput/getNumSolutions.m
function nSol = getNumSolutions(obj) %GETNUMSOLUTIONS Return the number of solutions. % % NRUNS = GETNUMSOLUTIONS(OBJ) returns the number of solutions in the % optimization results. % % See also CGOPTIMOUTPUT/GETNUMRUNS. % Copyright 2005-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isempty(obj.outputData) && ~isempty(obj.outputData{1}) nSol = size(obj.outputData{1}, 3); else nSol = 0; end