www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimexport/setUseAcceptableOnly.m
function obj = setUseAcceptableOnly(obj, useAcceptableOnly) %SETUSEACCEPTABLEONLY Set the acceptability filter on the solutions % % OBJ = SETUSEACCEPTABLEONLY(OBJ, USEACCEPTABLEONLY) sets a boolean flag % which determines whether only acceptable or all optimization solutions % are used to fill tables. % % See also CGOPTIMTABLEFILLER/GETUSEACCEPTABLEONLY % Copyright 2006 The MathWorks, Inc. if isscalar(useAcceptableOnly) && islogical(useAcceptableOnly) obj.UseCon = ~useAcceptableOnly; else error(message('mbc:cgoptimtablefiller:InvalidArgument')); end