www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimobjective/canChangeType.m
function ret = canChangeType(obj) %CANCHANGETYPE Check whether the objective type can be changed % % RET = CANCHANGETYPE(OBJ) returns true if the objective type can be % changed, and false if not. When the type is set to 'Helper' this flag % is always false. When the type is either 'Minimize' or 'Maximize' it is % determined by the value set using SETALLOWTYPECHANGE. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if strcmp(obj.Type, 'Helper') ret = false; else ret = obj.CanChangeType; end