0

Ladies Problem

I want to write an evolutionary algorithm, which is able to solve the ladies problem. Do you have any ideas how to rate the fitness of one individual?

20th Feb 2017, 9:50 PM
Hermann Set
Hermann Set - avatar
3 Antworten
20th Feb 2017, 9:57 PM
Tashi N
Tashi N - avatar
+ 3
if it is the 8 queens problem tou are talking about then here is a nice site with detailed explanation http://kushalvyas.github.io/gen_8Q.html in the above, the fitness is evaluated by the total possible clashes of queens on the 8x8 board (28) minus the actual clashes that occured: fitness=28−clashes also, you can try here http://www.cs.bc.edu/~alvarez/ML/GA/nQueensGA.html in this example, the fitness is measured as the ratio of nonattacking pairs of queens and is between 0 and 1
20th Feb 2017, 11:03 PM
Burey
Burey - avatar
+ 1
yes i meant the n-queens problem. I am sorry but I am not a native speaker. Thank you very much for your help
21st Feb 2017, 5:26 AM
Hermann Set
Hermann Set - avatar