You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it seems that currently only simple problems of e.g. only integers are supported. I tried to implement a simple IntegerArray class, but PyMoo internally seems to always expect to be the shape of the individuals to be of (n_offsprings, n_matings, n_var) for the crossover. Is there a way here how I could adapt n_var per variable? Currently, this seems to be a property of the problem and not the individuals.
I would like to have different variables here since the arrays represent different information. I could also try to just create one long array and optimize with, for example, NSGA2, but I want to test custom crossover and mutation operations here.
The text was updated successfully, but these errors were encountered:
The one you are trying to implement to have your own data type. I would need to think a little more if this is possible without modiyfing some classes.
Thanks for the hints! Regarding the second option: You mean I then declare n_var = len(array0) + len(array1) + ... and then do the interpretation of this single, large vector in the operators?
Hello,
I am trying to perform an optimization on a mixed variable problem that I would like to describe with something like this:
However, it seems that currently only simple problems of e.g. only integers are supported. I tried to implement a simple
IntegerArray
class, but PyMoo internally seems to always expect to be the shape of the individuals to be of(n_offsprings, n_matings, n_var)
for the crossover. Is there a way here how I could adaptn_var
per variable? Currently, this seems to be a property of theproblem
and not the individuals.I would like to have different variables here since the arrays represent different information. I could also try to just create one long array and optimize with, for example, NSGA2, but I want to test custom crossover and mutation operations here.
The text was updated successfully, but these errors were encountered: