www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimobjective/setAllowTypeChange.m

    function obj = setAllowTypeChange(obj, flg)
%SETALLOWTYPECHANGE Toggle whether type changing is allowed or not
%
%  OBJ = SETALLOWTYPECHANGE(OBJ, FLG) sets whether to allow the objective
%  type to be changed.

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


obj.CanChangeType = flg;