Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing using pre-defined options of positive integers #496

Open
soso-maitha opened this issue Jul 28, 2022 · 0 comments
Open

Optimizing using pre-defined options of positive integers #496

soso-maitha opened this issue Jul 28, 2022 · 0 comments

Comments

@soso-maitha
Copy link

Hello,
Thanks for this great library.
I want to minimize an objective function that takes two parameters k and a. But the parameters values have to be from these predifned options which are k=[3,4,5,6,7,8,9,10], a=[500,1000,2000,3000,4000,5000,6000,7000]

The reason I am using PSO because some long operation needs to be done in between.

But PSO works with random floats. Is there any current option to round the paricles float values (after being initialize and recalcuated in each iteration) to positive integers that are in my predifned list of options. Or is there anyway I can put this restriction ?

Thanks and regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant