JJ / nodeo

Simple evolutionary algorithm in JavaScript in CommonJS format, for node.js and anything else.
GNU General Public License v3.0
22 stars 6 forks source link

All operators should reside in their own class hierarchy #61

Open JJ opened 1 year ago

JJ commented 1 year ago

The former version included operators as part of the chromosome object; current does more or less the same, but they are static class methods instead of dynamic object methods (which might make even less sense, I'm afraid).

This goes against my very own experience, including the venerable Algorithm::Evolutionary, where operators were independent of the object (although type checks were performed) and had their own class hierarchy. This is probably the way to go forward.