You are on page 1of 3

Pareto Genetic Algorithm%

%
minimizes the objective function designated in ff%
.All optimization variables are normalized between 0 and 1%
ff must map variables to actual range%
_____________________________________________________________%
Setup the GA%
ff='testfunction';
% objective function
% number of optimization variables
npar=4;
_____________________________________________________________%
Stopping criteria%
% max number of iterations
maxit=50;
% minimum cost
mincost=.001;
_____________________________________________________________%
GA parameters%
% fraction of population kept
selection=0.5;
;popsize=100
;keep=selection*popsize
% number of matingsM=ceil((popsize-keep)/2);
;odds=1
for ii=2:keep

.Index exceeds matrix dimensions


Error in ==> GApareto at 44
;h=fout(ind,2)

You might also like