Ignore:
Timestamp:
Jun 26, 2008 7:46:14 PM (14 years ago)
Author:
liveletlive
Message:

Added changes to accomodate gaussian profiles and random number distribution selection on a per gene basis.
also changed the mutation to a per gene based mutation if specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/optimizer/src/rp_optimizer.h

    r1062 r1070  
    2727#define PGAPACK_RUNTIME_TABLE_DEFAULT_SIZE 5000 /*Approx Number of Samples in a run*/
    2828#define SINGLE_SAMPLE_DATA_BUFFER_DEFAULT_SIZE 5000
     29
     30/*User defined Random Number Distributions*/
     31#define RAND_NUMBER_DIST_GAUSSIAN 1
     32#define RAND_NUMBER_DIST_UNIFORM 2
     33
     34/* Used to indicate unspecified mutation rate for a param, will result in global mutn rate being applied*/
     35#define PARAM_NUM_UNSPEC_MUTN_RATE -1.0
    2936
    3037/*
     
    93100
    94101/*
    95  * NUMBER PARAMETERS have additional min/max values as constraints.
     102 * NUMBER PARAMETERS have additional constraints.
    96103 */
    97104typedef struct RpOptimParamNumber {
     
    99106    double min;                     /* optimization constraint: min value */
    100107    double max;                     /* optimization constraint: max value */
     108    double mutnrate;                    /* independently sets mutation rate for each parameter*/
     109    int randdist;                       /* gaussian or uniform distribution*/
     110    int strictmin;                                      /* whether a strict min is to be applied for gauss. rand. numbers*/
     111    int strictmax;                                      /* whether a strict max is to be applied for gauss. rand. numbers*/
     112    double stddev;                                      /* std deviaton for gaussian profile*/
     113    double mean;                                        /* mean for gaussian profile*/
    101114} RpOptimParamNumber;
    102115
Note: See TracChangeset for help on using the changeset viewer.