particle swarm optimization - Error too many input arguments - reg
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Siva
am 22 Sep. 2017
Beantwortet: Walter Roberson
am 22 Sep. 2017
i am doing a linear programming problem involving large number of variables . i ran the problem with genetic algorithm and simulated annealing algorithm in MATLAB and got the results. I ran linear programming (linprog) also and got the results. Now i want to run this problem with particle swarm optimization. i entered the following lines.
options = optimoptions('pso'); options.Display = 'iter'; nvars = 1728; lb = zeros(1,1728); x = pso(fun,nvars,Aineq3,Bineq3,lb,options);
But the MATLAB is showing the error message .
Too many input arguments.
How can i correct my code.
Also, suppose if i want to apply the results obtained from genetic algorithm as the initial population for the particle swarm optimization algorithm, what corrections i have to make in my code.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 22 Sep. 2017
pso() is not a routine supplied by Mathworks. Whatever pso() you are using does not expect those inputs.
The Mathworks routine is particleswarm()
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Particle Swarm finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!