Ignore:
Timestamp:
03/28/18 02:27:39 (6 years ago)
Author:
Maciej Komosinski
Message:

Default sample values for a 2D problem, not 1D; added documentation and a sample 2D fitness function; crossover better protected against different lengths of parent vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fn/oper_fn.h

    r752 r762  
    1818        int crossOver(char *&g1, char *&g2, float& chg1, float& chg2);
    1919        uint32_t style(const char *g, int pos);
    20         const char* getSimplest() { return "[0.0]"; }
     20        const char* getSimplest() { return "[0.0, 0.0]"; } //should actually correspond in length to vectors in mut_bound_low, mut_bound_high, mut_stddev
    2121
    2222        double xover_proportion;
Note: See TracChangeset for help on using the changeset viewer.