Skip to content

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

Open
drpventura wants to merge 3 commits into
Ejhfast:masterfrom
drpventura:master
Open

New func-map and setting-map settings, Updated to latest Clojure#2
drpventura wants to merge 3 commits into
Ejhfast:masterfrom
drpventura:master

Conversation

@drpventura
Copy link
Copy Markdown

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