-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.py
88 lines (80 loc) · 1.66 KB
/
input.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from promo_scheduling.entity import Mechanic, Partner, Promotion, SystemSettings
system_settings = SystemSettings(min_duration=3)
dz_1 = Mechanic('DZ1', 28)
dz_4 = Mechanic('DZ4', 4)
dz_8 = Mechanic('DZ8', 2)
amz = Partner('Amazon', 7)
nike = Partner('Nike', 7)
acom = Partner('Americanas', 7)
suba = Partner('Submarino', 7)
amz_jobs = [
Promotion(
partner=amz,
mechanic=dz_1,
productivity_ref=1000
),
Promotion(
partner=amz,
mechanic=dz_4,
productivity_ref=3000
),
Promotion(
partner=amz,
mechanic=dz_8,
productivity_ref=5000
)
]
nike_jobs = [
Promotion(
partner=nike,
mechanic=dz_1,
productivity_ref=2000
),
Promotion(
partner=nike,
mechanic=dz_4,
productivity_ref=5000
),
Promotion(
partner=nike,
mechanic=dz_8,
productivity_ref=6000
)
]
acom_jobs = [
Promotion(
partner=acom,
mechanic=dz_1,
productivity_ref=5000
),
Promotion(
partner=acom,
mechanic=dz_4,
productivity_ref=10000
),
Promotion(
partner=acom,
mechanic=dz_8,
productivity_ref=15000
)
]
suba_jobs = [
Promotion(
partner=suba,
mechanic=dz_1,
productivity_ref=5000
),
Promotion(
partner=suba,
mechanic=dz_4,
productivity_ref=10000
),
Promotion(
partner=suba,
mechanic=dz_8,
productivity_ref=15000
)
]
possible_promotions = [*amz_jobs, *nike_jobs, *acom_jobs] # , *suba_jobs]
partners = [amz, nike, acom] # , suba]
mechanics = [dz_1, dz_4, dz_8]