prop_selection
PURPOSE 
[SelPop,SelFunVal]= prop_selection(Pop,FunVal,selection_params)
SYNOPSIS 
function[SelPop,SelFunVal]= prop_selection(Pop,FunVal,selection_params)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
- sus [Index]=sus(SelCant,Sumvector)
This function is called by:
SOURCE CODE 
0001 function[SelPop,SelFunVal]= prop_selection(Pop,FunVal,selection_params)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 PopSize = size(Pop,1);
0015
0016 minval = min(FunVal)+10^(-60);
0017 partialsum = (FunVal+minval)/sum(FunVal+minval);
0018
0019
0020
0021 partialsum=cumsum(partialsum);
0022 Index=sus(PopSize,partialsum);
0023 SelPop=Pop(Index,:);
0024 SelFunVal=FunVal(Index,:);
0025
0026 return
0027
0028
0029
Generated on Fri 04-Dec-2009 13:38:29 by m2html © 2003