How to solve this problem using PSO?
Show older comments
Hi all,
I have some problem using pso algoithm.
fcn = @(x) x(1) + x(2) + x(3)
lb = [-40 -40 -40];
ub = [40 40 40];
nvars = 3;
x = particleswarm(fun,nvars,lb,ub);
In this code, I want to 8.8 <= x(1)+x(2)+x(3) <= 79.2 (constraint)
But I don't know use this expression.
Plz help ..
Accepted Answer
More Answers (0)
Categories
Find more on Particle Swarm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!