propeller/src/docs_src/Adding_Selection_Method.md
2023-01-18 17:14:05 -05:00

660 B

Adding a Selection Method

  1. Define a selection method function in propeller.selection that selects an individual from the population

  2. Add the selection method in propeller.selection/select-parent under the case call:

     (defn select-parent
     "Selects a parent from the population using the specified method."
     [pop argmap]
     (case (:parent-selection argmap)
     :new-selection-method (new-selection-method )))
    
  3. When runnning a problem, specify the selection method in :parent-selection. For example:

    lein run -m propeller.problems.simple-regression :parent-selection :new-selection-method"