writedirect.m

来自「优化问题中的直接搜索法」· M 代码 · 共 21 行

M
21
字号
function writeDirect(DIReps,DIRnumf,numberT,DIRJones, DIRperc)% function to store the parameters of the problem and % the wanted number of iterations / functionevaluations% in the respective files.%% Joerg Gablonsky, 10/31/00% Last Changed     03/14/01FID1 = fopen('../ini/DIRECT.ini','w');  fprintf(FID1,'%14.10e    eps \n',DIReps);     % the eps-valuefprintf(FID1,'%8i            maximal function evaluations \n',DIRnumf); % the approx. max. # of functionsfprintf(FID1,'%8i            maximal number of iterations \n',numberT); % the approx. max. # of iterationsfprintf(FID1,'%8i            Use JONES way (0) or our way (1) \n',DIRJones);fprintf(FID1,'%14.10e    Percentage when to stop. \n',DIRperc);     % the eps-valuefprintf(FID1,'%14.10e    Volume Percentage when to stop. \n',-1);     % the eps-valuefprintf(FID1,'%14.10e    Bound on the measure. Stop when mesure is below this bound \n',-1);     % the eps-valuefclose(FID1); % close the file with problem-definition.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?