www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgtabgradconstraint/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,DS); data.char_return = char(obj);