|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexamples.equalDistribution.MainClass
public class MainClass
Given 64 vents with different weights. Try to make 8 group with each groups having (nearly) the same weight as the other groups.
Here, each vent has a similar weight with a small deviation. But the deviation could also be significant (then, good solutions are harder to find).
The proposed way of solving this problem is quite easy in its structure. There is potential for optimzations!
Constructor Summary | |
---|---|
MainClass()
Constructor. |
Method Summary | |
---|---|
protected Genotype |
configureJGAP()
Sets up the configuration for the problem. |
void |
doEvolution(Genotype a_genotype)
Does the evolution until finished. |
static void |
main(java.lang.String[] args)
Start the example |
void |
makeVents()
Create vents with different weights. |
void |
printSolution(IChromosome a_solution)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainClass() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
protected Genotype configureJGAP() throws java.lang.Exception
java.lang.Exception
public void doEvolution(Genotype a_genotype)
a_genotype
- the genotype to evolvepublic void printSolution(IChromosome a_solution)
a_solution
- a solution to print to the consolepublic void makeVents()
public static void main(java.lang.String[] args)
args
- ignored
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |