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

    function out = canRemoveConstraint(opts)
%CANREMOVECONSTRAINT Check whether constraints can be removed
%
%  CANREMOVECONSTRAINT(OPTS) returns true if the options allow for
%  constraints to be removed.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


out = strcmp(getConstraintsMode(opts), 'any') ...
    && numConstraints(opts)>0;