www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptim/getNumConstraints.m
function N = getNumConstraints(optim) %GETNUMCONSTRAINTS Return the number of constraint items % % N = GETNUMCONSTRAINTS(OPTIM) returns the number of constraint items that % the optimization contains. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. N = length(optim.Constraints);