VictorPelaez / coral-reef-optimization-algorithm

Coral Reefs Optimization (CRO) algorithm artificially simulates a coral reef, where different corals (which are the solutions for the considered optimization problem) grow and reproduce in a coral-reef, fighting with other corals for space
MIT License
22 stars 6 forks source link

Larvae creation bug? #39

Open alvaro-ps opened 7 years ago

alvaro-ps commented 7 years ago

See what happens when minimizing the example I.2 (max-problem in a discrete interval): image The best solution should be an array of twos, but we get this.

To do/check:

VictorPelaez commented 7 years ago

I think it's because the sum (fitness function) for an empty coral is zero, so it takes as the minimum