Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New func-map and setting-map settings, Updated to latest Clojure #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

drpventura
Copy link

Added functions to func-map, so that source of run-ga no longer needs to be modified to print info when a generation is complete or the GA is complete.
The functions are:
:gen-complete-fn and :done-fn both of which take the fittest individual and its fitness.
If they are not provided a default println is used.

Also added a setting to `setting-map`, allowing for minimization of fitness to be done rather than only maximization.
The setting is `:min-or-max`, which can have values of `:min` or `:max`.

Updated project.clj to latest version of Clojure, 1.6.0 as of this writing.

… to be modified to print info when a generation is complete or the GA is complete.

The functions are:
:gen-complete-fn and :done-fn both of which take the fittest individual and its fitness.
If they are not provided a default println is used.

Also added a setting to setting-map, allowing for minimization of fitness to be done rather than only maximization.
The setting is :min-or-max, which can have values of :min or :max.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant