All Downloads are FREE. Search and download functionalities are using the official Maven repository.

exp-examples.tui-onemax.txt Maven / Gradle / Ivy

The newest version!
ea.experiment(
  runs = (randomGenerator = (seed = [1:1:10]) * [ea.rg.defaultRG()]) * [
    ea.run(
      solver = ea.s.ga(representation = ea.r.bitString(); nEval = 10000);
      problem = ea.p.s.oneMax(p = 2000)
    )
  ];
  listeners = [
    ea.l.tui(
      functions = [
        ea.nf.size(f = ea.nf.genotype(individual = ea.nf.best()); s = "%3d");
        ea.nf.bestFitness(s = "%6.2f");
        ea.nf.fitnessHist();
        ea.nf.hist(collection = ea.nf.each(map = ea.nf.fitness(); collection = ea.nf.all()));
        ea.nf.percentile(collection = ea.nf.each(map = ea.nf.fitness(); collection = ea.nf.all()); p = 0.75; s = "%6.2f")
      ]
    )
  ]
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy