controller = RegisterableAgent.load (args[0]);
RegisterableAgent.registerAgent (controller);
}*/
EvaluationOptions options = new CmdLineOptions(new String[0]);
//options.setAgent(controller);
Task task = new ProgressTask(options);
options.setMaxFPS(false);
options.setVisualization(false);
options.setMaxAttempts(1);
options.setMatlabFileName("");
options.setLevelRandSeed(seed);
options.setLevelDifficulty(10);
GlobalOptions.FPS = GlobalOptions.InfiniteFPS;
task.setOptions(options);
GA vivarium = new GA(task, new GeneticAgent(), 60);
for (int i = 0; i < 30; i++)
{
System.out.println("Best of Gen " + i + ": " + vivarium.getBestFitnesses()[0]);
vivarium.nextGeneration();
System.out.flush();
}
System.out.println("Score: " + ArrayUtils.toString(task.evaluate(controller)));
System.out.println("Seed: " + options.getLevelRandSeed());
System.out.println("Difficulty: " + options.getLevelDifficulty());
System.out.println("Best Genome: " + vivarium.getBests()[0]);
}