[NewPop] = seed_thispop(NumbVar,PopSize,Card,sampling_params) seed_thispop: Starts the algorithm from the seeded population INPUTS NumbVar: Number of variables Card: For discrete variables: Vector with the dimension of all the variables. For continuous variables: Matrix of two vectors with the minimum and maximum real values each variable can take sampling_params{1}(1) = Pop: Initial population OUTPUTS NewPop: Sampled individuals Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
0001 function [NewPop] = seed_thispop(NumbVar,PopSize,Card,sampling_params) 0002 % [NewPop] = seed_thispop(NumbVar,PopSize,Card,sampling_params) 0003 % seed_thispop: Starts the algorithm from the seeded population 0004 % INPUTS 0005 % NumbVar: Number of variables 0006 % Card: For discrete variables: Vector with the dimension of all the variables. 0007 % For continuous variables: Matrix of two vectors with the minimum and maximum real values 0008 % each variable can take 0009 % sampling_params{1}(1) = Pop: Initial population 0010 % OUTPUTS 0011 % NewPop: Sampled individuals 0012 % 0013 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es) 0014 0015 NewPop = cell2num(sampling_params{1}(1));