ljvmiranda921 / pyswarms

A research toolkit for particle swarm optimization in Python

Home Page:https://pyswarms.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Values taken by the particles

TristanVenot opened this issue · comments

To begin, thank you for the rich and detailed documentation, all works perfectly fine
Is your feature request related to a problem? Please describe.
I use your algorithm for a 5 dimensions optimization problem, some of the dimensions are length of time window (eg integers) and others are frequencies (eg floats)
I have two main issues regarding the values the particles can take,

first, I did not find a way to make them only take integer value for certain dimensions
Second, in the bound (creation of the swarm), it is a tuple of array between min and max for the different dimensions but in my scenario, I am going to do an incremental optimization, first round taking the best, second round removing the best possibility of the scope in order to find the second best etc...

Describe the solution you'd like
Would it be possible to have an additional option for the constraints in order to say that we want integer particles?
Would it be possible that instead of the bounds, we consider having an array of values for each dimension in which the particle can pick randomly one?

Describe alternatives you've considered
For now, for the first issue I am rounding the solution found because it is still given results but it is not very elegant.
I have no current alternatives for the second issue.

Thank you very much again for this opensource optimization solver.
Best regards,
Tristan Venot

commented

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.