EdGarrity / SOS

Search for an Optimum Solution
1 stars 0 forks source link

Fix Error in Calculating Error #102

Open EdGarrity opened 4 years ago

EdGarrity commented 4 years ago

The algorithm introduced in Pull Request #97 heavily favors the difference between the length of the solution vector and the output vector, over the difference between the two vectors elements. Need to update the algorithm to give equal weight to the length differences and the distance between the vectors or maybe favor the distance more than the length difference so that individuals which get the elements of the solution correct are less penalized for extra numbers at the end of the output vector.

If the later is implemented then there should be a parameter which specifies the weight given to the length difference over the difference in the elements of the two vectors.