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 ?
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
andparent2
. If I'm not sure that every Genome has their Creneaus in the same order, for each Creneau inparent1
(let's name itcreneau1
), I need to go through every Creneau inparent2
to get the Creneau refering to the same paper (let's name itcreneau2
) and choose whereas I putcreneau1
orcreneau2
in thechild
. If I'm sure that every Genome has the Creneaus in the same order I could iterate through each parent with an unique indexi
getcreneau1 = parent1.planning[i]
andcreneau2 = parent2.planning[i]
, and choose to putcreneau1
orcreneau2
in thechild
.So the point is : Are we absolutely sure that the order of Creneaus will be the same for every Genome ?