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

📄 group.h

📁 遗传算法求解极值的源程序
💻 H
字号:
#ifndef GROUP_H
#define GROUP_H

#include <iostream>
using namespace std;

class Genericgroup
{
public:
	Genericgroup();
	void get_rand_initial();
	void binary_to_decimal();
	void get_fitness();	
	void get_choice_result();
	void get_cross_result();
	void get_mutation_result();
	void order();
	void output(ofstream& fout1);
	double get_average();
	double get_the_sum();
	double get_mutation_possibility();
	double get_cross_possibility();
	double get_end_generation();
private:
	int binary[100][14];
	double decimal[100];
	double cross_possibility;
	double mutation_possibility;
	int end_generation;
};
#endif

⌨️ 快捷键说明

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