Obtaining a matrix of all the values the optimizer tried
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Spyros Polychronopoulos
am 25 Sep. 2018
Bearbeitet: Spyros Polychronopoulos
am 26 Sep. 2018
Hi there, I have this optimizer minimizing f. The optimizer is trying various values for x variable. Would you maybe have an idea how I can obtain when the optimizer finishes a matrix with the x values the optimizer tried?
clearvars
f = @(x) x.^2;
x0=5;
x_min = -10;
x_max = 10;
TimeLimit_SA = 20;
options = optimoptions(@simulannealbnd,'TimeLimit',TimeLimit_SA);
[x_best,f_best,exitflag,output]=simulannealbnd(f,x0,x_min,x_max,options);
0 Kommentare
Akzeptierte Antwort
Matt J
am 25 Sep. 2018
8 Kommentare
Spyros Polychronopoulos
am 26 Sep. 2018
Bearbeitet: Spyros Polychronopoulos
am 26 Sep. 2018
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Particle Swarm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!