Changeset 899 for trunk/optimizer/src/rp_optimizer.h
- Timestamp:
- Feb 22, 2008, 2:08:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/optimizer/src/rp_optimizer.h
r898 r899 23 23 #include <string.h> 24 24 #include <malloc.h> 25 #include "rp_tcloptions.h" 25 26 26 27 /* … … 48 49 49 50 typedef RpOptimStatus (RpOptimHandler) _ANSI_ARGS_(( 50 struct RpOptimEnv *envPtr, RpOptimEvaluator *evalProc)); 51 struct RpOptimEnv *envPtr, RpOptimEvaluator *evalProc, 52 char *fitnessExpr)); 53 54 /* 55 * Each optimization package is plugged in to this infrastructure 56 * by defining the following data at the top of rp_optimizer_tcl.c 57 */ 58 typedef struct RpOptimPlugin { 59 char *name; /* name of this package for -using */ 60 RpOptimInit *initProc; /* initialization routine */ 61 RpOptimHandler *runProc; /* handles the core optimization */ 62 RpOptimCleanup *cleanupProc; /* cleanup routine */ 63 RpTclOption *optionSpec; /* specs for config options */ 64 } RpOptimPlugin; 51 65 52 66 /* … … 98 112 */ 99 113 typedef struct RpOptimEnv { 114 RpOptimPlugin *pluginDefn; /* plug-in handling this optimization */ 115 ClientData pluginData; /* data created by plugin init routine */ 100 116 RpOptimEvaluator *evalProc; /* called during optimization to do run */ 101 ClientData pluginData; /* data created by plugin init routine */ 102 RpOptimCleanup *cleanupProc; /* cleanup routine for pluginData */ 117 char *fitnessExpr; /* fitness function in string form */ 103 118 ClientData toolData; /* data used during tool execution */ 104 119 RpOptimParam **paramList; /* list of input parameters to vary */ … … 110 125 * Here are the functions in the API: 111 126 */ 112 EXTERN RpOptimEnv* RpOptimCreate _ANSI_ARGS_((ClientData pluginData, 113 RpOptimCleanup *cleanupProc)); 127 EXTERN RpOptimEnv* RpOptimCreate _ANSI_ARGS_((RpOptimPlugin *pluginDefn)); 114 128 115 129 EXTERN RpOptimParam* RpOptimAddParamNumber _ANSI_ARGS_((RpOptimEnv *envPtr,
Note: See TracChangeset
for help on using the changeset viewer.