public class GeneticSolver
extends java.lang.Object
Constructor and Description |
---|
GeneticSolver(Graph m,
int pop)
Genetic Solver constructor. this constructor use a 40% crossover factor
and 20% mutation factor
|
GeneticSolver(Graph m,
int pop,
int crossFactor,
int muteFactor)
Genetic solver constructor
|
Modifier and Type | Method and Description |
---|---|
Path |
cross2Genes(Path g1,
Path g2) |
void |
doOneGeneration() |
void |
doOneGenerationModified() |
Path |
getSolution()
Get the solution
|
public GeneticSolver(Graph m, int pop)
m
- pop
- public GeneticSolver(Graph m, int pop, int crossFactor, int muteFactor)
m
- the graphpop
- population sizecrossFactor
- muteFactor
-