martinwholtmon / IT3708-2023

Simple Genetic Algorithm (SGA) as feature selector, route optimization for home care service with SGA and semantic segmentation using Multiobjective Genetic Algorithm (MOGA)
0 stars 0 forks source link

bug: invalid crossover point #9

Closed martinwholtmon closed 1 year ago

martinwholtmon commented 1 year ago

Figure out where the crossover point should be. Now it is set to 0.5 (at the middle, floored). It should be somewhere in the range of 1-(size_individual-1). Meaning, cannot be the first or last element in the array, but somewhere in-between. Basically: crossover_point: (0, size_individual) -> [1, size_individual-2]