MATLAB Answers

0

Why my results have been wrong ( 10^7 as picture) when i used gamultiobj?

Asked by Phan Minh about 24 hours ago
Latest activity Edited by Rik Wisselink
about 23 hours ago
My function
f(1) = -(44.3 - 0.548*x(1) + 0.2302*x(2) + 143*x(3) + 0.000634*x(1)^2 - 0.000196*x(2)^2 - 2304*x(3)^2 + 0.000379*x(1)*x(2) + 0.808*x(1)*x(3) + 0.1567*x(2)*x(3));
f(2) = 2226 + 105.275*x(1) - 105.725*x(2) - 20.425*x(3) - 13.3875*x(1)^2 - 18.2875*x(2)^2 - 7.4875*x(3)^2 - 8.675*x(1)*x(2) - 4.925*x(1)*x(3) -7.025*x(2)*x(3);
f(3) = 0.47 - 0.11125*x(1) - 0.14125*x(2) + 0.00125*x(1)^2 + 0.01625*x(2)^2 - 0.01625*x(3)^2 - 0.0275*x(1)*x(2) - 0.005*x(1)*x(3);
Code
x0 = lb + rand(size(lb)).*(ub - lb);
options = gaoptimset('PlotFcns',@gaplotpareto);
options = gaoptimset(options,'PopulationSize',500,'EliteCount',50,'SelectionFcn',{@selectiontournament,4});
options = gaoptimset(options,'Tolcon',1e-6,'StallGenLimit',100,'Generations',1000,'CreationFcn',@gacreationlinearfeasible);
options = gaoptimset(options,'CrossoverFraction',0.8,'ParetoFraction', 0.35,'CrossoverFcn',{@crossoverintermediate},'MutationFcn',@mutationadaptfeasible);
[x,f,exitFlag,Output] = gamultiobj(FitnessFunction,numberOfVariables,A,b,Aeq,beq,lb,ub,options);

  0 Comments

Sign in to comment.

0 Answers