- Timestamp:
- Feb 4, 2009 10:27:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/optimizer/src/pgapack/pgapack/include/pgapack.h
r1202 r1272 137 137 #define PGA_STOP_NOCHANGE 2 /* Stop: no change in best string */ 138 138 #define PGA_STOP_TOOSIMILAR 4 /* Stop: homogeneous population */ 139 #define PGA_STOP_AV_FITNESS 5 /* Stop: if within a certain % of target av.fitness per pop.*/ 140 #define PGA_STOP_BEST_FITNESS 6 /* Stop: if best fitness in a pop is within % of target best fitness*/ 141 #define PGA_STOP_VARIANCE 7 /* Stop: if variance of fitness in pop is within % of target variance */ 142 #define PGA_STOP_TIMEELAPSED 8 /* Stop: if elapsed time >= target*/ 139 143 140 144 /***************************************** … … 145 149 #define PGA_CROSSOVER_UNIFORM 3 /* Uniform crossover */ 146 150 #define PGA_CROSSOVER_SBX 4 /* Simulated Binary crossover */ 147 151 #define PGA_CROSSOVER_TRIANGULAR 5 /* Triangular Crossover*/ 148 152 /***************************************** 149 153 * SELECTION * … … 252 256 int PopSize; /* Number of strings to use */ 253 257 int StringLen; /* string lengths */ 258 double TgtFitnessVal; /* Target Fitness, best or average depending on stpg criteria*/ 259 double FitnessTol; /* Min Fitness Tolerance to be achieved for stoppage*/ 260 double TgtFitnessVar; /* Target Fitness Variance for stoppage */ 261 double VarTol; /* Tolerance for variance to be achieved for stoppage*/ 262 double TgtElapsedTime; /* Max Execution time of GA before stoppage */ 254 263 int StoppingRule; /* Termination Criteria */ 255 264 int MaxIter; /* Maximum number of iterations to run */ … … 338 347 double Online; 339 348 double Average; 349 double Variance; 340 350 double Best; 341 351 time_t starttime; … … 799 809 void PGASetMaxNoChangeValue(PGAContext *ctx, int max_no_change); 800 810 void PGASetMaxSimilarityValue(PGAContext *ctx, int max_similarity); 811 void PGASetTgtFitnessVal(PGAContext *ctx, double tgt_fitness_val); 812 void PGASetFitnessTol(PGAContext *ctx,double fitness_tol); 813 void PGASetTgtFitnessVariance(PGAContext *ctx,double tgt_fitness_var); 814 void PGASetVarTol(PGAContext *ctx,double var_tol); 815 void PGASetTgtElapsedTime(PGAContext *ctx,double tgt_elapsed_time); 801 816 802 817 /*****************************************
Note: See TracChangeset
for help on using the changeset viewer.