|
Java example source code file (genetics.xml)
The genetics.xml Java example source code<?xml version="1.0"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?> <document url="genetics.html"> <properties> <title>The Commons Math User Guide - Genetic Algorithms </properties> <body> <section name="16 Genetic Algorithms"> <subsection name="16.1 Overview" href="overview"> <p> The genetics package provides a framework and implementations for genetic algorithms. </p> </subsection> <subsection name="16.2 GA Framework"> <p> <a href="../apidocs/org/apache/commons/math3/genetics/GeneticAlgorithm.html"> GeneticAlgorithm</a> provides an execution framework for Genetic Algorithms (GA). <a href="../apidocs/org/apache/commons/math3/genetics/Population.html"> Populations,</a> consisting of Chromosomes</a> are evolved by the | crossoverPolicy | <td>OnePointCrossover <td>A random crossover point is selected and the first part from each parent is copied to the corresponding child, and the second parts are copied crosswise.</td> <tr>crossoverRate | <td>1 <td>Always apply crossover <tr>mutationPolicy | <td>RandomKeyMutation <td>Changes a randomly chosen element of the array representation to a random value uniformly distributed in [0,1]. <tr>mutationRate | <td>.1 <td>Apply mutation with probability 0.1 - that is, 10% of the time. <tr>selectionPolicy | <td>TournamentSelection <td>Each of the two selected chromosomes is selected based on an n-ary tournament -- this is done by drawing n random chromosomes without replacement from the population, and then selecting the fittest chromosome among them.</td> </table>
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.