-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathParam.h
66 lines (64 loc) · 1.71 KB
/
Param.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#pragma once
#include "Client.h"
#include "RandomGenerator.h"
#include "Location.h"
class Client;
class Location;
class RandomGenerator;
class Param {
public:
std::string nameIns;
ofstream fileOut;
ofstream fl;
int Q;// capacity
int T;// time horizon
int numVeh = int(1e9);// number of vehicles
int maxVeh;// max number of vehicles (used for Moccia 2012 instances).
int numClient;//number of client (containing depot)
int numLoc;// number of node
vector<Client> listCL;
vector<Location> listLoc;
vector<vector<int> > corDis;// correlation measure
vector<vector<int> > costs;// distance
vector<vector<int> > new_costs;// distance
vector<vector<int> > times;// distance
bool isDebug = false;
bool isTurnCkSol = false;
int lambda = 2;
clock_t start, end;
double total = 0;
int nPop = 40;
int delta = 80;
int nMut = 10;
double totalIntra = 0;
double rateMut = 0.2;
int initItSCP = 2000;
//int maxNeibor = 40;// max size of neigbor vertex set for granular search (can be used for dynamically sertification).
int maxNeibor = 120;// max size of nei
int ldTw = 5;// coff for TWgbor vertex set for granular search (can be used for dynamically sertification).
int nbR = 20;
int nbIls = 100;
int nbF = 20;
int sizeSub = 10;// max size of subsequence for using concatenation
int TL = 1800;// time limit (default for 120-cus ins)
bool bi = true;//cheking best improvement
int nI = 10;
int nC = 10;
int pMin = 1;
int pMax = 2;
int debugLS = false;
bool m2Opt = false;
bool crosver = false;
bool swap2 = false;
bool moveor = false;
bool stringex = false;
string pathOut;
RandomGenerator Rng;
Param() {
cout << "clear param\n";
listCL.clear();
listLoc.clear();
costs.clear();
times.clear();
};
};