www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@xregdesign/CheckConstraints.m
function flg = CheckConstraints(des) % CHECKCONSTRAINTS Check whether constraints are up to date % % OK=CHECKCONSTRAINTS(D) checks whether the constraints in D have % been updated to match the candidate set (OK=1) or whether they need % redoing (OK=0); % % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. flg = (des.constraintsflag>=candstate(des) | builtin('isempty',des.constraints)); return