Home > Mateda2.0 > functions > decomposable > Deceptive3.m

Deceptive3

PURPOSE ^

[val]=Deceptive3(vector)

SYNOPSIS ^

function[val]=Deceptive3(vector)

DESCRIPTION ^

 [val]=Deceptive3(vector)
 Deceptive3: Building block of the non-overlapping deceptive3 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 3 variables
 OUTPUTS
 val: Evaluation of the deceptive function

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function[val]=Deceptive3(vector)
0002 % [val]=Deceptive3(vector)
0003 % Deceptive3: Building block of the non-overlapping deceptive3 function introduced by Goldberg
0004 %             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})
0005 % INPUTS
0006 % vector: set of 3 variables
0007 % OUTPUTS
0008 % val: Evaluation of the deceptive function
0009 %
0010 % Last version 10/10/2005. Roberto Santana (rsantana@si.ehu.es)
0011 
0012   s=sum(vector);
0013   if s==3
0014     val=1; 
0015   elseif s==1
0016     val=0.8; 
0017   elseif s==2
0018     val=0; 
0019   else
0020     val=0.9;
0021   end
0022  return
0023 
0024 
0025

Generated on Fri 04-Dec-2009 13:38:29 by m2html © 2003