forked from geoffleyland/VRPH
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTwoOpt.h
executable file
·29 lines (23 loc) · 1002 Bytes
/
TwoOpt.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
////////////////////////////////////////////////////////////
// //
// This file is part of the VRPH software package for //
// generating solutions to vehicle routing problems. //
// VRPH was developed by Chris Groer ([email protected]). //
// //
// (c) Copyright 2010 Chris Groer. //
// All Rights Reserved. VRPH is licensed under the //
// Common Public License. See LICENSE file for details. //
// //
////////////////////////////////////////////////////////////
#ifndef TWO_OPT_H
#define TWO_OPT_H
class TwoOpt
{
public:
bool search(class VRP *V, int i, int criteria);
bool route_search(class VRP *V, int r1, int r2, int criteria);
private:
bool evaluate(class VRP *V, int a, int b, int c, int d, int criteria, VRPMove *M);
bool move(class VRP *V, VRPMove *M);
};
#endif