Changeset 6141 for trunk/PARSIMONY/GA_main.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/PARSIMONY/GA_main.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PARSIMONY/GA_main.cxx
r5390 r6141 109 109 } 110 110 AP_ERR * make_start_population(GBDATA *gbmain,AP_tree *tree) { 111 // makes random start popultation111 // makes random start population 112 112 // (at least two trees in each cluster) 113 113 static int msp = 0; … … 158 158 GAgenetic->init(gbmain); 159 159 } 160 fprintf(GAgenetic->fout,"\n**** Genetic ALGORITH EM *****\n");160 fprintf(GAgenetic->fout,"\n**** Genetic ALGORITHM *****\n"); 161 161 make_start_population(gbmain,ap_main->tree_root); 162 162 … … 192 192 job = GAgenetic->get_job(cluster); 193 193 if (job != 0) { 194 switch(job->mod us) {194 switch(job->mode) { 195 195 case GA_CROSSOVER: { 196 196 GA_tree * gaTree = new GA_tree; … … 222 222 } 223 223 fprintf(GAgenetic->fout,"\njob %d in cluster %d : %d executed, mode %d" 224 ,job,job->cluster0,job->cluster1,job->mod us);224 ,job,job->cluster0,job->cluster1,job->mode); 225 225 GAgenetic->put_optimized(job->tree0,cluster); 226 226 } else {
