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

📄 metagenetic.h

📁 uploading the file , the system will delete the file when time expires
💻 H
字号:

#ifndef __METAGENETIC_GIBSON__
#define __METAGENETIC_GIBSON__

#include "genetic.h"

class GenParamSet {
public:
	int Rc_param;
	int Ri_param;
	int Rm_param;
	double fitness;
	bool alive;
};

// function declarations
void MetaGenetic(Netlist * nl, /*Constraints*/
				 double Rc, /* Crossover Rate */
				 double Rm, /* Mutation Rate */
				 int    Np, /* Population size */
				 int    Ng, /* Number of Meta-generations */
				 int    Np_gen, /* Pop size of Genetic() calls */
				 int    Ng_gen, /* Number of generations to Genetic() */
				 FILE * outfile, /* Where to dump */
				 int verbosity /*How much to dump*/);



// a very quick Genetic-like function for testing of
// metagenetic
Placement *
PseudoGenetic(Netlist * nl, /* Constraints */
			 double Rc, /* Crossover Rate*/ 
			 double Rm, /* Mutation Rate */
			 double Ri, /* Inversion Rate */
			 int Np, /* Population Size */
			 int Ng, /* Number of Generatios */
			 FILE * outfile, /* Where to dump */
			 int verbosity /* How much to dump */) ; 

#endif

⌨️ 快捷键说明

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