-
Notifications
You must be signed in to change notification settings - Fork 1
/
localsolver_vrp.proto
50 lines (43 loc) · 969 Bytes
/
localsolver_vrp.proto
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
syntax = "proto3";
package localsolver_vrp;
message Matrix {
repeated float time = 2 [packed=true];
repeated float distance = 3 [packed=true];
repeated float value = 4 [packed=true];
}
message TimeWindow {
int64 start = 2;
int64 end = 3;
}
message Service {
repeated TimeWindow time_windows = 1;
repeated int32 quantities = 2;
uint32 matrix_index = 3;
string id = 4;
int64 duration = 5;
}
message Capacity {
int32 limit = 1;
float overload_multiplier = 2;
bool counting = 3;
}
message Vehicle {
string id = 1;
repeated Capacity capacities = 2;
TimeWindow time_window = 3;
uint32 matrix_index = 4;
int32 start_index = 5;
int32 end_index = 6;
int32 day_index = 7;
uint32 value_matrix_index = 8;
}
message Route {
string vehicle_id = 1;
repeated string service_ids = 2;
}
message Problem {
repeated Vehicle vehicles = 1;
repeated Service services = 2;
repeated Matrix matrices = 3;
repeated Route routes = 4;
}