introduce classes for the ACO algorithm

This commit is contained in:
Sven Czarnian
2021-10-12 22:30:20 +02:00
parent 7f7506104d
commit 9d69a60396
7 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env python
class SpacingConstraints:
def __init__(self):
self.WtcSpacing = {}
self.WtcSpacing['L'] = {}
self.WtcSpacing['M'] = {}
self.WtcSpacing['H'] = {}
self.WtcSpacing['J'] = {}
self.WtcSpacing['L']['L'] = 3
self.WtcSpacing['L']['M'] = 3
self.WtcSpacing['L']['S'] = 3
self.WtcSpacing['L']['J'] = 3
self.WtcSpacing['M']['L'] = 5
self.WtcSpacing['M']['M'] = 3
self.WtcSpacing['M']['S'] = 3
self.WtcSpacing['M']['J'] = 3
self.WtcSpacing['H']['L'] = 6
self.WtcSpacing['H']['M'] = 5
self.WtcSpacing['H']['S'] = 4
self.WtcSpacing['H']['J'] = 4
self.WtcSpacing['J']['L'] = 8
self.WtcSpacing['J']['M'] = 7
self.WtcSpacing['J']['S'] = 6
self.WtcSpacing['J']['J'] = 6