📄 placement.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -