Changeset 899 for trunk/optimizer/src/plugin_pgapack.c
- Timestamp:
- Feb 22, 2008, 2:08:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/optimizer/src/plugin_pgapack.c
r898 r899 15 15 */ 16 16 #include "pgapack.h" 17 #include "rp_optimizer _plugin.h"17 #include "rp_optimizer.h" 18 18 19 19 typedef struct PgapackData { … … 92 92 */ 93 93 RpOptimStatus 94 PgapackRun(envPtr, evalProc )94 PgapackRun(envPtr, evalProc, fitnessExpr) 95 95 RpOptimEnv *envPtr; /* optimization environment */ 96 96 RpOptimEvaluator *evalProc; /* call this proc to run tool */ 97 char *fitnessExpr; /* fitness function in string form */ 97 98 { 98 99 PgapackData *dataPtr =(PgapackData*)envPtr->pluginData; … … 109 110 PGASetPopSize(ctx, dataPtr->popSize); 110 111 PGASetPopReplaceType(ctx, dataPtr->popRepl); 112 PGASetCrossoverType(ctx, PGA_CROSSOVER_UNIFORM); 111 113 112 114 PGASetUserFunction(ctx, PGA_USERFUNCTION_CREATESTRING, PgapCreateString); … … 118 120 PGASetUserFunction(ctx, PGA_USERFUNCTION_BUILDDATATYPE, PgapBuildDT); 119 121 120 envPtr->evalProc = evalProc; /* call this later for evaluations */ 122 envPtr->evalProc = evalProc; /* plug these in for later during eval */ 123 envPtr->fitnessExpr = fitnessExpr; 121 124 122 125 /*
Note: See TracChangeset
for help on using the changeset viewer.