set.m
来自「多目标遗传算法/用法不用多说、要用的赶快下载吧」· M 代码 · 共 21 行
M
21 行
function g = set(cdv,varargin)% GEN_SETVALUE - Set the value, fitness, of the gen% tst=nargin;if tst==1 set(cdv.gen) fprintf('l_limit\nu_limit\n')else for k=1:2:nargin-1 switch varargin{k} case 'l_limit' cdv.l_limit=varargin{k+1}; case 'u_limit' cdv.u_limit=varargin{k+1}; otherwise cdv.gen=set(cdv.gen,varargin{k},varargin{k+1}); end end g=cdv;end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?