www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimoutput/setConstraintTol.m
function obj = setConstraintTol(obj, Tol) %SETCONSTRAINTTOL Set constraint display tolerance. % % OBJ = SETCONSTRAINTTOL(OBJ, TOL) sets the constraint tolerance that is % used for highlighting infeasible constraints in the display to TOL. % Copyright 2006 The MathWorks, Inc. if isnumeric(Tol) && isscalar(Tol) && Tol>=0 obj.displayConTol = Tol; else error(message('mbc:cgoptimoutput:InvalidArgument9')) end