Changeset 768


Ignore:
Timestamp:
03/30/18 01:12:24 (7 years ago)
Author:
Maciej Komosinski
Message:

Reverted to 100x repeat-until-valid-mutation, required due to how mutations are implemented now (first, mutation sub-type is selected, and this sub-type may be impossible to apply to a given genotype, which may cause frequent failures)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genman.cpp

    r761 r768  
    1212
    1313
    14 #define GENMAN_REPEAT_FAILED 10 //how many times GenMan tries to repeat a mutation or crossover when the operator does not return acceptable genotype
     14#define GENMAN_REPEAT_FAILED 100 //how many times GenMan tries to repeat a mutation or crossover when the operator does not return acceptable genotype
    1515#define STRINGIFY_1(x) #x
    1616#define STRINGIFY(x) STRINGIFY_1(x) //this second-level macro allows the parameter to be a macro itself and to stringify its value, not its name
Note: See TracChangeset for help on using the changeset viewer.