First of all, congratulations for this library which seems really good!
I'd like to use this library to solve a (very simple) 2-players games. To start with something simple i'd like to do something like that:
Choose randomly 2 individuals
"Fight" them together
Kill the loser
However, I haven't seen any possibility to take 2 individuals for the fitness method. Maybe my matter could be solved by using the TournamentSelector, but I didn't find out how...
Do you know how I could solve it? Am I doing something wrong?
Thank's for your help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The library assumes that the fitness function calculates a global fitness. In general it is not possible to write a fitness function which takes two individuals. But you can try some hack:
The losing individual is not killed, it only gets a bad fitness value. I don't know if this works at all, but it would be nice if you can tell me about your results.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all, congratulations for this library which seems really good!
I'd like to use this library to solve a (very simple) 2-players games. To start with something simple i'd like to do something like that:
However, I haven't seen any possibility to take 2 individuals for the fitness method. Maybe my matter could be solved by using the TournamentSelector, but I didn't find out how...
Do you know how I could solve it? Am I doing something wrong?
Thank's for your help
The library assumes that the fitness function calculates a global fitness. In general it is not possible to write a fitness function which takes two individuals. But you can try some hack:
The losing individual is not killed, it only gets a bad fitness value. I don't know if this works at all, but it would be nice if you can tell me about your results.