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

    function ind = getGlobalIndices(con)
%GETGLOBALINDICES List of indices of the global factors in a two-stage constraint
%
%  I = GETGLOBALINDICES(CON) is a list of the indices of the global factors of
%  the two-stage constraint C.
%
%  See also CONTWOSTAGE, 
%           CONTWOSTAGE/GETGLOBALFACTORS, 
%           CONTWOSTAGE/GETLOCALFACTORS, 
%           CONTWOSTAGE/GETLOCALINDICES.

%  Copyright 2008 The MathWorks, Inc. and Ford Global Technologies, Inc.

ai = getActiveIndices( con );
nf = nFactors( con.ConList{1} ); % number of local factors

ind = ai((nf+1):end);

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