-
Notifications
You must be signed in to change notification settings - Fork 1
/
lib.h
42 lines (38 loc) · 950 Bytes
/
lib.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
#pragma once
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <string>
#include <stdio.h>
#include <assert.h>
#include <fstream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <queue>
#include <cstdlib>
#include <chrono>
#include <ctime>
#include "Param.h"
#include "Util.h"
#include "Client.h"
#include "Location.h"
#include <ilcplex/ilocplex.h>
#define pb push_back
#define mp make_pair
#define ft first
#define sc second
#define EP 1e-6
#define oo 1e9
#define MY_EPSILON 0.00001 // Precision parameter, used to avoid numerical instabilities
//using namespace std;
typedef pair<int,int> II;
typedef pair<II, int> III;
typedef pair<double,double> DD;
typedef pair<double, int> DI;
typedef pair<double, II> DII;
typedef IloArray<IloNumVarArray> IloNumVarArray2;//2D
typedef IloArray<IloNumVarArray2> IloNumVarArray3;//3D
typedef IloArray<IloNumVarArray3> IloNumVarArray4;//4D