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

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

ea.experiment(
  runs = (randomGenerator = (seed = [1:1:1]) * [ea.rg.defaultRG()]) * [
    ea.run(
      solver = ea.s.intStringGa(
        mapper = ea.m.identity();
        nEval = 10000
      );
      problem = ea.p.s.intOneMax()
    )
  ];
  listeners = [
    ea.l.console(functions = [
      ea.nf.size(f = ea.nf.genotype(individual = ea.nf.best()); s = "%3d");
      ea.nf.fitness(individual = ea.nf.best(); s = "%6.4f");
      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.4f");
      ea.nf.solution(individual = ea.nf.best(); s = "%60.60s")
    ])
  ]
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy