HaLim commited on
Commit
8726cfd
·
1 Parent(s): 51181a6

Update main optimizer as the variable names changed to more intuitive ones

Browse files
Files changed (1) hide show
  1. src/models/optimizer_real.py +2 -2
src/models/optimizer_real.py CHANGED
@@ -38,7 +38,7 @@ class OptimizerReal:
38
 
39
  # Line types and explicit line list
40
  line_list = self.config.LINE_LIST
41
- line_cnt_per_type = self.config.LINE_LIST_PER_TYPE # number of physical lines per type (EDIT)
42
  line_type_cnt_tuple = [
43
  (t, i) for t in line_list for i in range(1, line_cnt_per_type[t] + 1)
44
  ] # pair of line type and line number (e.g., ('long', 1))
@@ -47,7 +47,7 @@ class OptimizerReal:
47
  # 2) PARAMETERS (EDIT THESE)
48
  # -----------------------------
49
  # Weekly demand (units) for each product in product_list
50
- weekly_demand = self.config.DEMAND_LIST
51
 
52
  # Daily activity toggle for each product (1=can be produced on day t; 0=cannot)
53
  # If a product is not active on a day, we force its production and hours to 0 that day.
 
38
 
39
  # Line types and explicit line list
40
  line_list = self.config.LINE_LIST
41
+ line_cnt_per_type = self.config.LINE_CNT_PER_TYPE # number of physical lines per type (EDIT)
42
  line_type_cnt_tuple = [
43
  (t, i) for t in line_list for i in range(1, line_cnt_per_type[t] + 1)
44
  ] # pair of line type and line number (e.g., ('long', 1))
 
47
  # 2) PARAMETERS (EDIT THESE)
48
  # -----------------------------
49
  # Weekly demand (units) for each product in product_list
50
+ weekly_demand = self.config.DEMAND_DICTIONARY
51
 
52
  # Daily activity toggle for each product (1=can be produced on day t; 0=cannot)
53
  # If a product is not active on a day, we force its production and hours to 0 that day.