metagenetic.h
来自「uploading the file , the system will del」· C头文件 代码 · 共 43 行
H
43 行
#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 + =
减小字号Ctrl + -
显示快捷键?