IGJSP 1.1.8__py3-none-any.whl → 1.1.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
IGJSP/generador.py
CHANGED
|
@@ -161,9 +161,6 @@ class JSP:
|
|
|
161
161
|
# tpm = expon(loc=10, scale=20).rvs(self.numMchs)
|
|
162
162
|
energyPer, timePer = self._particionate_speed_space(speed)
|
|
163
163
|
self._generate_standar_operation_cost(distribution,tpm)
|
|
164
|
-
|
|
165
|
-
energyPer, timePer = self._particionate_speed_space(speed)
|
|
166
|
-
self._generate_standar_operation_cost(distribution)
|
|
167
164
|
|
|
168
165
|
self.ProcessingTime = np.zeros((self.numJobs, self.numMchs, self.speed), dtype=int)
|
|
169
166
|
self.EnergyConsumption = np.zeros((self.numJobs, self.numMchs, self.speed), dtype=int)
|
|
@@ -660,9 +657,11 @@ class JSP:
|
|
|
660
657
|
# for s in range(1,self.speed+1):
|
|
661
658
|
s = self.speed
|
|
662
659
|
s0, sf, sp = [0,s,1]
|
|
660
|
+
|
|
663
661
|
time = data.ProcessingTime[:, :, s0:sf:sp]
|
|
664
662
|
energy = data.EnergyConsumption[:, :, s0:sf:sp]
|
|
665
|
-
precedence = np.full((data.numJobs, data.numMchs), 0)
|
|
663
|
+
# precedence = np.full((data.numJobs, data.numMchs), 0)
|
|
664
|
+
precedence = data.Orden
|
|
666
665
|
|
|
667
666
|
replace_data = {
|
|
668
667
|
"machines": data.numMchs,
|
|
@@ -680,9 +679,12 @@ class JSP:
|
|
|
680
679
|
replace_data["releaseDate"] = str(data.ReleaseDueDate[:,:, 0].flatten()).replace(" ",", ")
|
|
681
680
|
replace_data["dueDate"] = str(data.ReleaseDueDate[:, :, 1].flatten()).replace(" ",", ")
|
|
682
681
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
682
|
+
|
|
683
|
+
# print(data.JSP["timeEnergy"])
|
|
684
|
+
# quit()
|
|
685
|
+
# for job in range(data.numJobs):
|
|
686
|
+
# for i, prioridad in enumerate(range(data.numMchs)):
|
|
687
|
+
# precedence[job, data.Orden[job, prioridad]] = i
|
|
686
688
|
|
|
687
689
|
replace_data["precedence"] = str(precedence.flatten()).replace(" ", ", ")
|
|
688
690
|
|
|
@@ -1172,23 +1174,23 @@ class Generator:
|
|
|
1172
1174
|
|
|
1173
1175
|
if self.single_folder_output:
|
|
1174
1176
|
if self.json:
|
|
1175
|
-
jsp_instance.saveJsonFile(problem_path + jm_path.split("/")[0] + f"_{j}x{m}_{i}.json")
|
|
1177
|
+
jsp_instance.saveJsonFile(problem_path + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.json")
|
|
1176
1178
|
if self.dzn:
|
|
1177
|
-
pkl_path = f"{problem_path}/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}.pkl"
|
|
1179
|
+
pkl_path = f"{problem_path}/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.pkl"
|
|
1178
1180
|
jsp_instance.savePythonFile(pkl_path)
|
|
1179
1181
|
jsp_instance.saveDznFile(pkl_path, problem_path + jm_path,index)#f"{j}x{m}_{i}")
|
|
1180
1182
|
os.remove(pkl_path)
|
|
1181
1183
|
if self.taillard:
|
|
1182
|
-
jsp_instance.saveTaillardStandardFile(problem_path + jm_path.split("/")[0] + f"_{j}x{m}_{i}.txt")
|
|
1184
|
+
jsp_instance.saveTaillardStandardFile(problem_path + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.txt")
|
|
1183
1185
|
else:
|
|
1184
1186
|
if self.json:
|
|
1185
|
-
jsp_instance.saveJsonFile(f"{problem_path}/JSON/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}.json")
|
|
1187
|
+
jsp_instance.saveJsonFile(f"{problem_path}/JSON/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.json")
|
|
1186
1188
|
if self.dzn:
|
|
1187
|
-
pkl_path = f"{problem_path}/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}.pkl"
|
|
1189
|
+
pkl_path = f"{problem_path}/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.pkl"
|
|
1188
1190
|
jsp_instance.savePythonFile(pkl_path)
|
|
1189
1191
|
jsp_instance.saveDznFile(pkl_path,f"{problem_path}/DZN/" + jm_path,index)#f"{j}x{m}_{i}")
|
|
1190
1192
|
os.remove(pkl_path)
|
|
1191
1193
|
if self.taillard:
|
|
1192
|
-
jsp_instance.saveTaillardStandardFile(f"{problem_path}/TAILLARD/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}.txt")
|
|
1193
|
-
instances.append(jsp_instance)
|
|
1194
|
+
jsp_instance.saveTaillardStandardFile(f"{problem_path}/TAILLARD/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.txt")
|
|
1195
|
+
instances.append(copy.deepcopy(jsp_instance))
|
|
1194
1196
|
return instances
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
IGJSP/generador.py,sha256=
|
|
1
|
+
IGJSP/generador.py,sha256=kSOuaYNGLVI8SbJBKMLdf34Hn89U4lauVab6EvPgML8,52328
|
|
2
2
|
IGJSP/main.py,sha256=Sia5Ss8O3HWBdshvPLJKUMaZIoQPHy6x8yzvojojPFo,2838
|
|
3
3
|
IGJSP/Minizinc/Models/RD/JSP0.mzn,sha256=cfN_E3RQ6nBulGfaOOYTd-zAgA5SI6E2saDlYtKCflg,2282
|
|
4
4
|
IGJSP/Minizinc/Models/RD/JSP1.mzn,sha256=5B8cyw2WyKR8yEL1fFd0TaCAVhjPoxEJRJDPPEjJGEk,2840
|
|
@@ -12,7 +12,7 @@ IGJSP/Minizinc/Types/RD/FJSP/type2.dzn,sha256=Wz1MnkSL5GUPsbh1eq0leoaQRImkNqQqkX
|
|
|
12
12
|
IGJSP/Minizinc/Types/RD/JSP/type0.dzn,sha256=wNuPQkXBXPSpPaPz2WFhp4pGDgfSimtg4I93UfwC01Q,263
|
|
13
13
|
IGJSP/Minizinc/Types/RD/JSP/type1.dzn,sha256=Xbt9StzCgEqqh_HS9tWGrTVtu-OEnf5Yq5Ty91AkzoM,333
|
|
14
14
|
IGJSP/Minizinc/Types/RD/JSP/type2.dzn,sha256=L2nc7bPJEhyuaEwgw0ZCpC52CpVJILQU_WQdKn8GUZs,379
|
|
15
|
-
igjsp-1.1.
|
|
16
|
-
igjsp-1.1.
|
|
17
|
-
igjsp-1.1.
|
|
18
|
-
igjsp-1.1.
|
|
15
|
+
igjsp-1.1.10.dist-info/METADATA,sha256=0vBQYWp6Qlx0pcUP7z0_jhcy0cnf4HSYOGjZGazs99o,10590
|
|
16
|
+
igjsp-1.1.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
17
|
+
igjsp-1.1.10.dist-info/licenses/LICENSE,sha256=f7RDRO-z_nMoooAya7NAb8sXtrHR6WnttYtyUc9fB-c,1116
|
|
18
|
+
igjsp-1.1.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|