IGJSP 0.0.3__tar.gz → 0.0.5__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: IGJSP
3
- Version: 0.0.3
3
+ Version: 0.0.5
4
4
  Summary: Instance generator for JSP
5
5
  Project-URL: Homepage, https://gps.blogs.upv.es/
6
6
  Author-email: GPS-UPV <gps@dsic.upv.es>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "IGJSP"
7
- version = "0.0.3"
7
+ version = "0.0.5"
8
8
  authors = [
9
9
  { name="GPS-UPV", email="gps@dsic.upv.es" },
10
10
  ]
@@ -168,7 +168,7 @@ class JSP:
168
168
  # indexProblema = os.path.basename(os.path.normpath(OutputDir))
169
169
  with open(f"{InputDir}", 'rb') as f:
170
170
  data: JSP = pickle.load(f)
171
- print(self.speed)
171
+ # print(self.speed)
172
172
  # for t in [0, 1, 2]:
173
173
  t = data.rddd
174
174
  for s in range(1,self.speed+1):
@@ -454,7 +454,6 @@ class Generator:
454
454
  def generate_new_instance(self, jobs = 10, machines = 4, ProcessingTime=[], EnergyConsumption=[], Orden=[],speed = 1, ReleaseDateDueDate = 0, distribution = "uniform" , seed = 0, tpm=[]):
455
455
  jsp = JSP(jobs=jobs, machines=machines,ProcessingTime=ProcessingTime,EnergyConsumption=EnergyConsumption,Orden=Orden)
456
456
  jsp.fill_random_values(speed = speed, rddd = ReleaseDateDueDate, distribution = distribution, seed = seed,tpm = tpm)
457
-
458
457
  if not (self.json or self.dzn or self.taillard): return jsp
459
458
 
460
459
  j = str(jobs)
@@ -465,7 +464,6 @@ class Generator:
465
464
 
466
465
  if self.json:
467
466
  jsp.saveJsonFile(f"{self.savepath}/JSON/"+jm_path.split("/")[0]+f"_{j}x{m}_{i}.json")
468
- pass
469
467
  if self.dzn:
470
468
  pkl_path = f"{self.savepath}/"+jm_path.split("/")[0]+f"_{j}x{m}_{i}.pkl"
471
469
  jsp.savePythonFile(pkl_path)
File without changes
File without changes
File without changes
File without changes