truncation_selection
PURPOSE 
[SelPop,SelFunVal]=truncation_selection(Pop,FunVal,selection_params)
SYNOPSIS 
function[SelPop,SelFunVal]=truncation_selection(Pop,FunVal,selection_params)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
SOURCE CODE 
0001 function[SelPop,SelFunVal]=truncation_selection(Pop,FunVal,selection_params)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 PopSize = size(Pop,1);
0017
0018 T = cell2num(selection_params{1}(1));
0019 ordering_criterion = char(cellstr(selection_params{1}(2)));
0020 number_objectives = size(FunVal,2);
0021 SelPopSize = floor(T*PopSize);
0022
0023
0024 Index = eval([ordering_criterion,'(Pop,FunVal)']);
0025 SelPop = Pop(Index(1:SelPopSize),:);
0026 SelFunVal = FunVal(Index(1:SelPopSize),:);
0027
0028 return
0029
0030
0031
0032
Generated on Fri 04-Dec-2009 13:38:29 by m2html © 2003