gga.h
来自「linux下的一个分组遗传算法」· C头文件 代码 · 共 49 行
H
49 行
//// gga.h - Grouping Genetic Algorithm//// author: J.I.v.Hemert// last updated : 07-11-1997//// This file contains the class GGAC.//#ifndef GGA_H#define GGA_H#include <stdio.h>#include <iomanip.h>#include "population.h"#include "inifile.h"#include "timer.h"class GGAC{ public: void Initialize (int numberofobjects, int maxevaluations, int seed = 0); void InitializePopulation (); bool Run (); void Close (); double GetTotalEvaluations (); double GetColorsUsed (); private: GaParamsT gaparams; PopulationC population; ofstream solutionsfile; ofstream datafile; int maxevals; int nrofobjects; int randomseed; bool debug; bool plotdata; bool printsolutions;};#endif// eof gga.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?