Check out the Application https://genetic-algorithm-for-global-maxima-minima.netlify.app/
This Application is made to find the Global Maxima or Minima for a given equation using a Genetic Algorithm. This Algorithm takes certain parameters for input and based on them finds the Global Maxima or Minima. The Performance Graph shows the Best Current Fitness and the best fitness found yet. The Y-Axis is the fitness while X-Axis is the Generation number. Learn More at https://genetic-algorithm-for-global-maxima-minima.netlify.app/
- The variables in equation must be named as x1,x2,x3 and so on.
- The population size must be greater that 10 individuals.
- The Cross Probability and Mutate Probability must be between 0 and 1.
- Ignore Range is to find the Global Maxima. If Ignore Range is off, the algorithm finds the Local Maxima or Minima.
Population Size = 100 Cross Probability = 0.3 Mutate Probability = 0.15.
- Download & Install Node.js
- Clone or download Git repository
cd ./Genetic-Algo-For-Global-Maxima-Minima
npm install
npm start
- In Browser Open
localhost:3000
The Algorithm is in src/genAlgoClasses/
Individual.js contains the Fitness Function and Mutation function.
Population.js contains calculation of next generation and crossover.