www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/nActiveFactorsAllowed.m

    function [mn, mx] = nActiveFactorsAllowed( con )
%NACTIVEFACTORSALLOWED Number of import factors supported by a constraint class
%
%  NF = NACTIVEFACTORSALLOWED(CON)
%  [MN, MX] = NACTIVEFACTORSALLOWED(CON)
%
%  NF = [MN, MX] is the minimum and maximum number of (active) factors allowed
%  by the constraint.
%
%  For a CONSTAR (Star-shaped constraint) the limits are than there must be at
%  least two input factors.
%
%  See also CONSTAR, CONBASE/NACTIVEFACTORSALLOWED.

%  Copyright 2000-2005 The MathWorks, Inc.

mn = 2;
mx = Inf;

if nargout == 1,
    mn = [mn, mx];
end

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|