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

    function ret = isComplete(obj)
%ISCOMPLETE Check whether the object setup is complete
%
%  RET = ISCOMPLETE(OBJ) returns true if the object has been set up with
%  enough information to be able to perform in the expected manner, for
%  example all required helper expressions have been provided.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


ret = isvalid(obj.Expression) && obj.Expression.isComplete;