placement.h
来自「uploading the file , the system will del」· C头文件 代码 · 共 56 行
H
56 行
#ifndef __PLACEMENT_GIBSON__
#define __PLACEMENT_GIBSON__
#include <stdio.h>
#include "netlist.h"
class Placement {
public:
Placement(Netlist * nl);
~Placement();
bool Mutate(int a, int b);
bool Invert(int a, int b);
bool Crossover(Placement * a, Placement * b);
void Sort(Placement * a, Placement * sortA);
void Randomize();
double Fitness();
// called ONLY to isolate the kwisatch_haderach (best solution)
// from all other solutions
Placement * Clone();
// used to prevent ATTACK OF THE CLONES syndrome
bool IsCloneOf(Placement * p);
int DisqualifyCell(int celln);
void dump(FILE * file);
void dumpLiteral(FILE * file);
void rePlace();
// some variables for genetic
double myFitness;
bool alive;
int * celln;
int * x;
int * y;
int * serial;
bool * disqualified;
Netlist * nl;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?