Ignore:
Timestamp:
07/14/20 16:04:46 (4 years ago)
Author:
Maciej Komosinski
Message:

Improved the fS encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fS/fS_oper.h

    r1000 r1006  
    3232const int PARENT_COUNT = 2;
    3333
     34
     35
    3436class GenoOper_fS : public GenoOperators
    3537{
     
    4042        paInt useElli, useCub,  useCyl;
    4143        paInt strongAddPart;
     44
     45        std::map<string, double> minValues;
     46        std::map<string, double> maxValues;
    4247
    4348        GenoOper_fS();
     
    129134
    130135        bool changeNeuroParam(fS_Genotype &geno);
     136
     137        /**
     138         * Change the value of the size parameter by given multiplier
     139         * Do not change the value if any of the size restrictions is not satisfied
     140         * @param paramKey
     141         * @param multiplier
     142         * @param ensureCircleSection
     143         * @return True if the parameter value was change, false otherwise
     144         */
     145        bool mutateSizeParam(Node *node, string key, bool ensureCircleSection);
     146
     147        void prepareParams();
    131148};
    132149
Note: See TracChangeset for help on using the changeset viewer.