www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgsumconstraint/getWeightsRange.m
function range = getWeightsRange(obj) %GETWEIGHTSRANGE Get the range of the weights variable % % RANGE = GETWEIGHTSRANGE(OBJ) returns the range of the weights variable % in OBJ. If the weights vector has not been initialised then this method % returns [0 1]. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isnull(obj.Weights) range = obj.Weights.getrange; else range = [0 1]; end