Slap swarm algorithm in Wolfram language?

Dear all,

Unfortunately, I didn’t find any metaheuristic algorithms in Mathematica.
For example, is it possible to implement this algorithm in Mathematica?
I am a beginner in Mathematica and need your help in solving my problem with this algorithm.

Thank you so much for your help.

Hi Alex,

Interesting.

A Google search for salp swarm algorithm code finds implementations in Matlab and Python. Why not try converting one of them to WL. If you get stuck, post your attempt.

Thank you, Rohit.

I looked at the following link:

GitHub - thieu1995/metaheuristics: Implement the-state-of-the-art meta-heuristic algorithms using python (numpy) · GitHub

I didn’t understand anything. Sorry for wasting your time .

Why do you need this particular algorithm?

Alex,

this surely is not difficult to implement in Mathematica - but I admit that I do not understand this algorithm. Normally one wants to e.g. minimize some multi dimensional function. What function is it? Is it F? But F is nowhere updated. And what about formula (1): Is this supposed to be kind of a piecewise definition? How would a clear definition of x_i^1 really read? Anyhow - I guess quite a bit of information is needed here.

Daniel,

There is no specific reason.I have one reason for asking this question: I like Mathematica.

Unfortunately, I do not see any metaheuristic optimization algorithms in Mathematica.
On the other hand, you can easily find different opt. algorithms in Matlab, R, Phyton, etc.
This is not acceptable.
I just wanted to see if this kind of algorithm is difficult in Mathematica?!!

Check the documentation for the various Method option settings for NMinimize. Some fall into the family of “metaheuristics”.