Package eas.users.students.benediktMueller.qswarm.evolution

Examples of eas.users.students.benediktMueller.qswarm.evolution.SwarmEvolution


 
  public static void main(String[] args)
  {
    System.out.println("starting");
    CleaningExperiment c = new CleaningExperiment(30, 3000);
    SwarmEvolution evo = new SwarmEvolution(c);
    NetViewerBenedikt netViewer = new NetViewerBenedikt();

   
    SimViewer v = new SimViewer(null, true);
   
    int g = 0;
    while(v.isVisible())
    {
      if(v.evolutionRunning)
      {
        v.setTitle("QuickSwarm [ currently evolving, click in this window to show champion ]");
      }

      while(v.evolutionRunning && v.isVisible())
      {
        System.out.println("generation " + g + " of invisible evolution");
        evo.evolve();
        netViewer.generate(evo.swarms[0].getNet());
        netViewer.repaint();
//        evo.swarms[0].getNet().dump();
        g++;
      }
View Full Code Here

TOP

Related Classes of eas.users.students.benediktMueller.qswarm.evolution.SwarmEvolution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.