-
Notifications
You must be signed in to change notification settings - Fork 0
/
TypeVoisin.h
51 lines (39 loc) · 969 Bytes
/
TypeVoisin.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
//
// Created by antho on 20/4/2022.
//
#ifndef OPTIMISATION_TYPEVOISIN_H
#define OPTIMISATION_TYPEVOISIN_H
#include <memory>
#include <vector>
using namespace std;
class Solution;
class ClientTournee;
class VoisinsManager;
class TypeVoisin{
public:
TypeVoisin();
TypeVoisin(int client1, int client2);
virtual bool isDoable(Solution* s){
return true;
}
virtual VoisinsManager VoisinAleatoire(Solution* s);
virtual VoisinsManager generateVoisins(Solution* s);
virtual VoisinsManager getVoisin(Solution* s);
virtual int nbVoisins(Solution* s);
virtual size_t getHash() const{
return 0;
}
int getC1() const;
int getC2() const;
bool getErrorLastMove() const{
return ERROR_LAST_MOVE;
}
// void setTourneePourC1(int num);
//
// void setTourneePourC2(int num);
private:
int client1, client2;
protected:
bool ERROR_LAST_MOVE = false;
};
#endif //OPTIMISATION_TYPEVOISIN_H