wreszelewski / nsga2

Implementation NSGA-II algorithm in form of python library
103 stars 50 forks source link

using nsga2 for any function minimization #6

Open tahanakabi opened 6 years ago

tahanakabi commented 6 years ago

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 commented 5 years ago

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