genetic algorithm - fitness function - algorithm not converging
Show older comments
I want to apply genetic algorithm for a 150 variable linear programming problem.
I wrote the fitness function 'fit1.m' as follows.
The Cost coefficients of the objective function are saved in DPDPSCM.mat file.
function [ obj ] = fit1( C,X )
load DPDPSCM.mat
C;
X = randi([1,10],1,150)
y = C.*X;
obj = sum(y);
end
The genetic algorithm is not converging.
where did i made the mistake.
Accepted Answer
More Answers (0)
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!