www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@contwostage/nActiveFactorsAllowed.m
function [mn, mx] = nActiveFactorsAllowed(con) %NACTIVEFACTORSALLOWED Number of import factors supported by a two-stage constraint % % NF = NACTIVEFACTORSALLOWED(CON) % [MN, MX] = NACTIVEFACTORSALLOWED(CON) % % NF = [MN, MX] is the minimum and maximum number of (active) factors allowed % by the constraint. % % See also CONTWOSTAGE, % CONBASE/NFACTORS, % CONBASE/NACTIVEFACTORSALLOWED, % CONBASE/NACTIVEFACTORS. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargout > 1, mn = 2; mx = Inf; else mn = [2, Inf]; end %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|