ciren / cilib

Typesafe, purely functional Computational Intelligence
https://cilib.net
Apache License 2.0
124 stars 101 forks source link

Simplified boundary enforcement #283

Closed gpampara closed 6 years ago

gpampara commented 6 years ago

These changes build on the contribution by @KyleErwin, but instead attempt to simplify the usage/enforcement of boundary constraints by just letting the strategies be functions passed to an enforce function.

The usage within Step etc is not part of these changes, albeit trivial. It shouldn't be needed to provide these functions, but if needed they will be added in a separate PR.

gpampara commented 6 years ago

@filinep Please can you comment on the new changes. I think that they are more sane now :)