Particle swarm solver not available in Global Optimization Toolbox

I know we should not use app for these as it is going to be removed in future, but I just wanted to try it once.
I have Global Optimization Toolbox installed but still around 5 solvers are missing in it.
Will reinstalling the toolbox work?
TIA

4 Comments

It is not possible to install R2020b toolbox on R2019b. Do you have the toolbox installed? You can check it by running
ver globaloptim
If it shows a warning, it means that the toolbox is not installed.
My bad! I guess it's 2019 only. I got this result on running this command
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.7.0.1319299 (R2019b) Update 5
MATLAB License Number: 925317
Operating System: Microsoft Windows 10 Home Single Language Version 10.0 (Build 19041)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Global Optimization Toolbox Version 4.2 (R2019b)
So why am I having problem? Can you tell please!!
Are you not able to use particleswarm function? What is the error? What is the output of
which particleswarm
Ths command is giving me the path correctly but when I go to the optimization app, I don't get particleswarm as solver in the dropdown menu (shown in the image attached)

Sign in to comment.

 Accepted Answer

Hi,
Optimtool did not support all of the solvers in Optimization and Global Optimization Toolboxes.
If you have installed or have access to R2020b, we've introduced a new UI that has the newer solvers including particleswarm.
Here's a video about it if you'd like to get a sneak peek.

3 Comments

I just checked and saw I don't have optimize option when I go to Task.. What should I do?
Thanks
Do you have R2020b? That's when the Optimize task was released.

Sign in to comment.

More Answers (1)

If you read the description on the documentation page: https://www.mathworks.com/help/optim/ug/optimtool.html you can see that particleswarm is not available in the optimization app. You will need to write the code to use particle swarm.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!