www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgrangeconstraint/collectStaticData.m
function data = collectStaticData(obj,DS) %COLLECTSTATICDATA Method that collects data to cache for static mode. % % DATA = COLLECTSTATICDATA(OBJ) is called when an object is converted to % static usage mode (no pointers available). The returned DATA is a % structure of information that is saved and can later be accessed by % specifying the fieldname of the required information. % % DS is a cgstaticdataset object if the constraint is evaluated over a % dataset. Otherwise it is empty. % Copyright 2006-2009 The MathWorks, Inc. data = collectStaticData(obj.cgoptimconstraint); data.char_return = char(obj); data.IsLinear = isLinear(obj); data.InfBounds = [pIsScalarInfBound(obj, 'lower'), pIsScalarInfBound(obj, 'upper')]; data.charForSummary_return = cell(1, 2); [data.charForSummary_return{:}] = charForSummary(obj,DS);