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

📄 group.h

📁 TSP问题(Travelling Salesman Problem)是数学领域中著名问题之一,旅行商的VC算法实现
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -