/MaxFunVal

Homework of AI course by using Genetic Algorithm

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Project Name

MaxFunVal

Description

This project is the homework of AI course, using Genetic Algorithm to figure out the max or min value of function.

function description below:

function

domain:-1<=x<=2

Experiment

Process Figure

procecss

Function Figure

function

Result Figure
//blow is config params
final static int geneLength=15;
final static int iteration=30;
final static int populationSize=10;

function Some people's data in ./doc/persons.txt file, and the fitness result in ./doc/fitness.txt file

Reference