www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimoutput/setConstraintTolFromSetup.m
function obj = setConstraintTolFromSetup(obj) %SETCONSTRAINTTOLFROMSETUP Set the constraint tolerance from setup. % % OBJ = SETCONSTRAINTTOLFROMSETUP(OBJ) attempts to find a constraint % tolerance setting in the optimization problem's setup object. If one % is found then this is used to initialize the constraint display % tolerance. If no value is found then a default of 1e-6 is used. % Copyright 2006 The MathWorks, Inc. % Code is in a private function to make it accessible at load-time obj.displayConTol = pFindDefaultConTol(obj.optimRunner);