group.h
来自「TSP问题(Travelling Salesman Problem)是数学领域中」· C头文件 代码 · 共 35 行
H
35 行
#ifndef H_GROUP
#define H_GROUP
#include "global.h"
#pragma once
namespace evo
{
class Group
{
public:
Group(void);
Group(int,VectorIDV);
public:
~Group(void);
public:
Group& evolute();
int generation;
VectorIDV member;
void printGroup(ostream&);
void printGroup(ofstream&);
int calValue() ;
bool operator==(Group &);
void printBestIndi(ostream&);
void printBestIndi(ofstream&);
private:
static const int memberCount;
static const float crossRate;
static const float variateRate;
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?