ljvmiranda921 / pyswarms

A research toolkit for particle swarm optimization in Python
https://pyswarms.readthedocs.io/en/latest/
MIT License
1.29k stars 332 forks source link

How to define a discrete design space when using pyswarms.discrete.binary module #503

Open AidanHawk opened 1 year ago

AidanHawk commented 1 year ago

Description

Hi all,

I've just started using pyswarms and am stuck on defining a discrete design space when using the pyswarms.discrete.binary module.

I have got it running when using the ps.single.GlobalBestPSO module but I want to have points from 0 to 90 at 0.5 increments for my candidate solutions for each of my design variables (2 dimensional).

Any help would be much appreciated.

Cheers, Aidan