⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xcs.h

📁 Simple GA code (Pascal code from Goldberg, D. E. (1989), Genetic Algorithms in Search, Optimization,
💻 H
字号:
/*/       (XCS-C 1.2)/	------------------------------------/	Learning Classifier System based on accuracy//     by /     Martin V. Butz/     Illinois Genetic Algorithms Laboratory (IlliGAL)/     University of Illinois at Urbana/Champaign/     butz@illigal.ge.uiuc.edu//     Last modified: 09-30-2003//     Main program header*/struct XCS{  char *tabOutFile;  int nrExps;  int maxNrSteps;  int testFrequency;  int maxPopSize;  double alpha;  double beta;  double gamma;  double epsilon0;  int nu;  int thetaGA;  double fitnessReduction;  double tournamentSize;  double forceDifferentInTournament;  double selectTolerance;  int crossoverType;  double chiGA;  double muGA;  int doGeneralizationMutation;  int doNicheMutation;    int doMAM;  int doGAErrorBasedSelect;    double delta;  int thetaDel;  int deletionType;  double dontCareProb;  int doGASubsumption;  int doActionSetSubsumption;  int thetaSub;  double exploreProb;  int teletransportation;  int initializePopulation; /* specifies if a random population should be generated initially */};struct xClassifierSet;void startExperiments(struct XCS *xcs1);struct XCS *readXCS(FILE *parameterFile);void startOneSingleStepExperiment(struct XCS *xcs, FILE *tabFile,struct xClassifierSet **pop, double **averages, int expnr, FILE *tabFile2);void doOneSingleStepProblemExplore(struct XCS *xcs, struct xClassifierSet **pop, char *state, int trialCounter);void doOneSingleStepProblemExploit(struct XCS *xcs, struct xClassifierSet **pop, char *state, int trialCounter, 				   int *correct, double *sysError);void startOneMultiStepExperiment(struct XCS *xcs, FILE *tabFile,struct xClassifierSet **pop, double **averages, int expnr);void doOneMultiStepProblemExplore(struct XCS *xcs, struct xClassifierSet **pop, char *state, int *counter);void doOneMultiStepProblemExploit(struct XCS *xcs, struct xClassifierSet **pop, char *state, int counter, int *stepToFood, double *sysError );void writePerformance(struct XCS *xcs, FILE *tabFile, structxClassifierSet *pop, int *correct, double *sysError, int counter, double **averages, int expnr);void writeAveragePerformance(struct XCS *xcs, double **averages);void setParameterValues(FILE *parameterFile, struct XCS *xcs);void setMacroValues(struct XCS *xcs);struct XCS *copyXCS(struct XCS *xcsOld);void freeXCS(struct XCS *xcs);void fprintXCS(FILE *outfile, struct XCS *xcs);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -