IGJSP 1.1.9__tar.gz → 1.1.10__tar.gz
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-1.1.9 → igjsp-1.1.10}/PKG-INFO +1 -1
- {igjsp-1.1.9 → igjsp-1.1.10}/pyproject.toml +1 -1
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/generador.py +15 -10
- {igjsp-1.1.9 → igjsp-1.1.10}/.gitignore +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/LICENSE +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/README.md +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Models/RD/JSP0.mzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Models/RD/JSP1.mzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Models/RD/JSP2.mzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/FJSP/type0.dzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/FJSP/type1.dzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/FJSP/type2.dzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/JSP/type0.dzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/JSP/type1.dzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/JSP/type2.dzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/JSP0.mzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/JSP1.mzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/Minizinc/Types/RD/JSP2.mzn +0 -0
- {igjsp-1.1.9 → igjsp-1.1.10}/src/IGJSP/main.py +0 -0
|
@@ -657,9 +657,11 @@ class JSP:
|
|
|
657
657
|
# for s in range(1,self.speed+1):
|
|
658
658
|
s = self.speed
|
|
659
659
|
s0, sf, sp = [0,s,1]
|
|
660
|
+
|
|
660
661
|
time = data.ProcessingTime[:, :, s0:sf:sp]
|
|
661
662
|
energy = data.EnergyConsumption[:, :, s0:sf:sp]
|
|
662
|
-
precedence = np.full((data.numJobs, data.numMchs), 0)
|
|
663
|
+
# precedence = np.full((data.numJobs, data.numMchs), 0)
|
|
664
|
+
precedence = data.Orden
|
|
663
665
|
|
|
664
666
|
replace_data = {
|
|
665
667
|
"machines": data.numMchs,
|
|
@@ -677,9 +679,12 @@ class JSP:
|
|
|
677
679
|
replace_data["releaseDate"] = str(data.ReleaseDueDate[:,:, 0].flatten()).replace(" ",", ")
|
|
678
680
|
replace_data["dueDate"] = str(data.ReleaseDueDate[:, :, 1].flatten()).replace(" ",", ")
|
|
679
681
|
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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
|
|
683
688
|
|
|
684
689
|
replace_data["precedence"] = str(precedence.flatten()).replace(" ", ", ")
|
|
685
690
|
|
|
@@ -1169,23 +1174,23 @@ class Generator:
|
|
|
1169
1174
|
|
|
1170
1175
|
if self.single_folder_output:
|
|
1171
1176
|
if self.json:
|
|
1172
|
-
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")
|
|
1173
1178
|
if self.dzn:
|
|
1174
|
-
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"
|
|
1175
1180
|
jsp_instance.savePythonFile(pkl_path)
|
|
1176
1181
|
jsp_instance.saveDznFile(pkl_path, problem_path + jm_path,index)#f"{j}x{m}_{i}")
|
|
1177
1182
|
os.remove(pkl_path)
|
|
1178
1183
|
if self.taillard:
|
|
1179
|
-
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")
|
|
1180
1185
|
else:
|
|
1181
1186
|
if self.json:
|
|
1182
|
-
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")
|
|
1183
1188
|
if self.dzn:
|
|
1184
|
-
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"
|
|
1185
1190
|
jsp_instance.savePythonFile(pkl_path)
|
|
1186
1191
|
jsp_instance.saveDznFile(pkl_path,f"{problem_path}/DZN/" + jm_path,index)#f"{j}x{m}_{i}")
|
|
1187
1192
|
os.remove(pkl_path)
|
|
1188
1193
|
if self.taillard:
|
|
1189
|
-
jsp_instance.saveTaillardStandardFile(f"{problem_path}/TAILLARD/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}.txt")
|
|
1194
|
+
jsp_instance.saveTaillardStandardFile(f"{problem_path}/TAILLARD/" + jm_path.split("/")[0] + f"_{j}x{m}_{i}_{index}.txt")
|
|
1190
1195
|
instances.append(copy.deepcopy(jsp_instance))
|
|
1191
1196
|
return instances
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|