Esempio n. 1
0
int main(int argc, char *argv[]) {

  ostream_iterator<NNode*> output(cout," ");
  list<NNode*> nodelist;

  Population *p;

  double val=1.0;

  /* GTKMM */
  myapp=new Gtk::Main(argc, argv);

  testdoub=&val;

  //***********RANDOM SETUP***************//
  /* Seed the random-number generator with current time so that
      the numbers will be different every time we run.    */
  srand( (unsigned)time( NULL ) );

  //Load in the params
  NEAT::load_neat_params(argv[1]);

  //Here is an example of how to run an experiment directly from main
  //and then visualize the speciation that took place
  p=xor_test(100);  //100 generation XOR experiment
  cout<<"Visualizing 1 to "<<p->final_gen<<endl;
  p->visualize(500,700,1,p->final_gen);
 
  return(0);
 
}
Esempio n. 2
0
int main() {
    tellmeall();

    if (!printf_test()) return -1;
    if (!set_get_test()) return -1;
    if (!and_or_test()) return -1;
    if (!xor_test()) return -1;
    if (!andnot_test()) return -1;
    if (!to_uint32_array_test()) return -1;

    printf("[%s] your code might be ok.\n", __FILE__);

    return 0;
}