www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/setActiveIndices.m
function con = setActiveIndices(con, ai) %SETACTIVEINDICES Set the indices of the active factors for a Star Constraint % % CON = SETACTIVEINDICES(CON, AI) % % This method will completely reset all the parameter information stored % in the Star Constraint, i.e., the center, the RBF model, etc. % % See also CONSTAR, CONBASE/SETACTIVEINDICES, CONBASE/GETACTIVEINDICES. % Copyright 2000-2005 The MathWorks, Inc. % Set the active indices in the parent object con.conbase = setActiveIndices( con.conbase, ai ); % Reset the model con.Model = pDefaultModel( con ); % Reset the center cif = getActiveFactors( con ); con.Center = 0.5 * (cif.Min + cif.Max); % Reset the coding on the internal model. (Note that this depends on % the center and active factors) con = pSetModelCoding( con ); %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|