Changeset 9
- Timestamp:
- 06/01/09 23:07:35 (15 years ago)
- Location:
- cpp/f8-to-f1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/f8-to-f1/conv_f8tof1.cpp
r7 r9 595 595 Production *firstProduction = lsystem->productions[lsystem->firstProductionName]; 596 596 vector<double> params; 597 params. reserve(lsystem->startParams.size());597 params.assign(lsystem->startParams.size(), 0.0); 598 598 //cout << "startParams->size: " << lsystem->startParams.size() << endl; 599 599 for (map<string, double>::iterator iter = lsystem->startParams.begin(); -
cpp/f8-to-f1/geno_f8.cpp
r8 r9 285 285 if (newLsystem == NULL) { 286 286 mutated += in; 287 chg = 0.0;287 chg = -1.0; 288 288 return mutated; 289 289 } … … 357 357 if (lsystem == NULL) { 358 358 mutated += in; 359 chg = 0.0;359 chg = -1.0; 360 360 return mutated; 361 361 } … … 395 395 if (lsystem == NULL) { 396 396 mutated += in; 397 chg = 0.0;397 chg = -1.0; 398 398 return mutated; 399 399 } … … 455 455 if (lsystem == NULL) { 456 456 mutated += in; 457 chg = 0.0;457 chg = -1.0; 458 458 return mutated; 459 459 } … … 534 534 if (newLsystem == NULL) { 535 535 mutated += in; 536 chg = 0.0;536 chg = -1.0; 537 537 return mutated; 538 538 } … … 574 574 if (lsystem == NULL) { 575 575 mutated += in; 576 chg = 0.0;576 chg = -1.0; 577 577 return mutated; 578 578 } … … 650 650 } 651 651 if (interestingProductions.size() == 0) { 652 chg = 0.0;652 chg = -1.0; 653 653 mutated = in; 654 654 return mutated; … … 666 666 } 667 667 if (subproductionsCount == 0) { 668 chg = 0.0;668 chg = -1.0; 669 669 mutated = in; 670 670 return mutated; … … 714 714 if (newLsystem == NULL) { 715 715 mutated += in; 716 chg = 0.0;716 chg = -1.0; 717 717 return mutated; 718 718 } … … 798 798 if (newLsystem == NULL) { 799 799 mutated += in; 800 chg = 0.0;800 chg = -1.0; 801 801 return mutated; 802 802 } … … 892 892 if (newLsystem == NULL) { 893 893 mutated += in; 894 chg = 0.0;894 chg = -1.0; 895 895 return mutated; 896 896 } … … 942 942 943 943 //cout << "mutate 1" << endl; 944 //TODO dodac parametr ok, mowiacy, czy wszystko bylo ok945 944 switch (method) { 946 945 case F8_CHANGE_BEGINNING_ARG: … … 995 994 //cout << "mutate 2" << endl; 996 995 if (ssMutatedTmp.len() < 16) { 996 return GENOPER_OPFAIL; 997 } 998 if (chg == -1.0) { 999 chg = 0.0; 997 1000 return GENOPER_OPFAIL; 998 1001 } … … 1007 1010 return GENOPER_OK; 1008 1011 } else { 1009 chg = 0.0;1010 1012 return GENOPER_OPFAIL; 1011 1013 } … … 1210 1212 if (types[i] == type) { 1211 1213 types[i] = types[5]; 1212 types[5] = type;1214 //types[5] = type; 1213 1215 break; 1214 1216 }
Note: See TracChangeset
for help on using the changeset viewer.