impfit.m
来自「多目标遗传算法/用法不用多说、要用的赶快下载吧」· M 代码 · 共 19 行
M
19 行
function fitness = impfit(fname)% IMPORT - imports the fitness from a file% fitness = impfit('fname') where fname is the name of the% file. The order of the fitness is the same as the order of the% chromosomes sent to evaluation.% % See also EXPORTres=[];fid=fopen(fname);while 1 tmp=fgetl(fid); if ~ischar(tmp) break else res=[res str2num(tmp)]; endendfitness=res;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?