Yoz0 / Easea-conference-planner

A conference planner made with EASEA for the csdc17
0 stars 0 forks source link

Add crossover #4

Open Yoz0 opened 7 years ago

Yoz0 commented 7 years ago

To do the crossover, it will be easier (and it will run faster), if we are sure that every Genome as the Creneau in the same order. What I mean is that in the crossover function I have two parents parent1 and parent2. If I'm not sure that every Genome has their Creneaus in the same order, for each Creneau in parent1 (let's name it creneau1), I need to go through every Creneau in parent2 to get the Creneau refering to the same paper (let's name it creneau2) and choose whereas I put creneau1 or creneau2 in the child. If I'm sure that every Genome has the Creneaus in the same order I could iterate through each parent with an unique index i get creneau1 = parent1.planning[i] and creneau2 = parent2.planning[i], and choose to put creneau1 or creneau2 in the child.

So the point is : Are we absolutely sure that the order of Creneaus will be the same for every Genome ?