⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deceptive3.m

📁 UMDA. a kind of estimation of distribution algorithm , which is the improvement of genetic algorithm
💻 M
字号:
function[decep]=Deceptive3(vector)

% Deceptive3  Deceptive function introduced by Goldberg  
% f(x) = f_d(x_1,x_2,x_3) + f_d(x_4,x_5,x_6) + ...+  f_d(x_{3m-2},x_{3m-1},x_{3m})

% INPUTS
% vector: set of variables

% OUTPUTS
% decep: Evaluation of the deceptive function

  s=sum(vector);
  if s==3
    decep=1; 
  elseif s==1
    decep=0.8; 
  elseif s==2
    decep=0; 
  else
    decep=0.9;
  end
 return


% Last version 10/10/2005. Roberto Santana (rsantana@si.ehu.es) 

⌨️ 快捷键说明

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