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

📄 problem.h

📁 linux下的一个分组遗传算法
💻 H
字号:
//// problem.h - Reads in Graph Coloring Problems//// author: J.K.van der Hauw// edited by: J.I.v.Hemert// last update: 12-11-1997//// This file containts the class Problem. It has graph intances as input,// generated by a external program called generate. The internal representation// is an adjecencylist.//#ifndef PROBLEM_H#define PROBLEM_H#include <sys/types.h>#include <unistd.h>#include <iostream.h>#include <fstream.h>#include <stdlib.h>#include <math.h>#include <string.h>#include "genotype.h"#include "inifile.h"class Link {public:  int nodenr;  long weight;  Link *nextptr;};class ProblemC {public:  int nrofnodes;  char ProblemFilename[MAXSTRINGLENGTH];  Link* gradjl[MAXOBJECTS];  int nrofneighbors[MAXOBJECTS];  long weight[MAXOBJECTS];  void CreateProblem(int, double, int, char * problemdir, char * graphtype, int k_coloring);  void RemoveProblem();  void DeleteAdjlist();  void PrintAdjList();  int ReadProblem(); private:  char PROBLEMDIR[MAXSTRINGLENGTH];};extern ProblemC problem;#endif

⌨️ 快捷键说明

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