www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimrunner/numFreeValues.m
function [lenfree, total] = numFreeValues(obj) %NUMFREEVALUES Get number of free variables in optimization % % [LENOBJ, TOTAL] = NUMFREEVALUES returns the lengths of each of the free % variables in the optimization and the total number of free values. % LENOBJ is returned as a 1-by-NOBJ vector. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. lenfree = obj.InputDataLengths(obj.FreeVariableIndices); if nargout>1 total = sum(lenfree); end