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

using nsga2 for any function minimization #6

Open
tahanakabi opened this issue Oct 19, 2017 · 1 comment
Open

using nsga2 for any function minimization #6

tahanakabi opened this issue Oct 19, 2017 · 1 comment

Comments

@tahanakabi
Copy link

Hi, I know this cannot be called an issue but I really need your help.
I have a multiobjective problem that consists of minimizing 2 functions f1 and f2. each of the two function take a vector X as argument. X will be a list or an np.array ... how can I use this nsga2 algorithm to optimize those two functions.
Thank you!

@fabrang
Copy link

fabrang commented Oct 16, 2018

I have kind of the same issue. I am about to solve it just by modifying the code that the input can be more than one param (I have models and therefore exchanged the function aswell threw my own stuff). But its working out kind of good. So follow these 2 steps:
Modify the generation of generations, that it creates vectors (a for loop more should do it)
Pass the vector to the functions

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

2 participants