writemain.m

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

M
16
字号
function writemain(problem,alg)% Function to store the parameters of the problem and % the wanted number of iterations / functionevaluations% in the respective files.%% Joerg Gablonsky, 10/29/00% Last Changed     04/15/01FID1 = fopen('../ini/main.ini','w');  fprintf(FID1,'DIRECT.ini           Name of DIRECT-Init file \n');fprintf(FID1,'%8i             Problem \n',problem); fprintf(FID1,'%8i             Which algorithm \n',alg); fclose(FID1); % close the file with problem-definition.

⌨️ 快捷键说明

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