Genetic algorithms: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
<br /> | <br /> | ||
=== Initial population === | === Initial population === | ||
et of sub-optimal solutions which are provided as inputs to a genetic algorithm and from which an optimal solution evolves<ref>https://www.igi-global.com/dictionary/initial-population/14655</ref> | |||
=== Fitness function === | === Fitness function === | ||
Fitness Function (also known as the Evaluation Function) evaluates how close a given solution is to the optimum solution of the desired problem. It determines how fit a solution is. | |||
In genetic algorithms, each solution is generally represented as a string of binary numbers, known as a chromosome. We have to test these solutions and come up with the best set of solutions to solve a given problem. Each solution, therefore, needs to be awarded a score, to indicate how close it came to meeting the overall specification of the desired solution. This score is generated by applying the fitness function to the test, or results obtained from the tested solution.<ref>https://towardsdatascience.com/how-to-define-a-fitness-function-in-a-genetic-algorithm-be572b9ea3b4</ref> | |||
=== Selection === | === Selection === | ||
Selection rules select the individuals, called parents, that contribute to the population at the next generation. | Selection rules select the individuals, called parents, that contribute to the population at the next generation. | ||
Line 16: | Line 21: | ||
=== Mutation === | === Mutation === | ||
Mutation rules apply random changes to individual parents to form children. | Mutation rules apply random changes to individual parents to form children. | ||
== helpful resources == | |||
* [https://www.analyticsvidhya.com/blog/2017/07/introduction-to-genetic-algorithm/ This article is a good place to get started] | |||
== Standards == | == Standards == |
Revision as of 22:18, 3 February 2019
The genetic algorithm is a method for solving both constrained and unconstrained optimization problems that is based on natural selection, the process that drives biological evolution. The genetic algorithm repeatedly modifies a population of individual solutions. At each step, the genetic algorithm selects individuals at random from the current population to be parents and uses them to produce the children for the next generation. Over successive generations, the population "evolves" toward an optimal solution. You can apply the genetic algorithm to solve a variety of optimization problems that are not well suited for standard optimization algorithms, including problems in which the objective function is discontinuous, nondifferentiable, stochastic, or highly nonlinear. The genetic algorithm can address problems of mixed integer programming, where some components are restricted to be integer-valued.[2]
Initial population[edit]
et of sub-optimal solutions which are provided as inputs to a genetic algorithm and from which an optimal solution evolves[3]
Fitness function[edit]
Fitness Function (also known as the Evaluation Function) evaluates how close a given solution is to the optimum solution of the desired problem. It determines how fit a solution is.
In genetic algorithms, each solution is generally represented as a string of binary numbers, known as a chromosome. We have to test these solutions and come up with the best set of solutions to solve a given problem. Each solution, therefore, needs to be awarded a score, to indicate how close it came to meeting the overall specification of the desired solution. This score is generated by applying the fitness function to the test, or results obtained from the tested solution.[4]
Selection[edit]
Selection rules select the individuals, called parents, that contribute to the population at the next generation.
Crossover[edit]
Crossover rules combine two parents to form children for the next generation.
Mutation[edit]
Mutation rules apply random changes to individual parents to form children.
helpful resources[edit]
Standards[edit]
- Outline the use of genetic algorithms.