Skip to content

Commit

Permalink
Supply Chain: improve comments on the models
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Sep 15, 2024
1 parent 3f8f7d6 commit 473ac4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/supply_chain/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ def update_params():
)

auto_rerun = st.checkbox(
"Automatically rerun solve process to update the results", value=True
"Automatically rerun the solve process to update the results", value=True
)

if (
auto_rerun
or not st.session_state.get("needs_rerun", False)
or st.button("Rerun solve process to update the results", type="primary")
or st.button("Rerun the solve process to update the results", type="primary")
):
st.session_state["needs_rerun"] = False
# Select the solver to use
Expand Down
6 changes: 3 additions & 3 deletions apps/supply_chain/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def production_rate_declaration(self, show=None):
var ProductionHours{p in PRODUCTS, l in LOCATIONS, r in RESOURCES, t in PERIODS} >= 0;
# Production hours for each product, location, resource, and period
param ProductionRate{p in PRODUCTS, l in LOCATIONS, r in RESOURCES} >= 0 default 0;
# Production rate for each product at each location and resource
# Production rate for each product at each location and resource (could also depend on the period)
"""
)

Expand Down Expand Up @@ -535,7 +535,7 @@ def target_stock_declaration(self, show=None):
header = self._transform(
r"""
param TargetStock{p in PRODUCTS, l in LOCATIONS} >= 0 default 0;
# Target stock level for each product and location
# Target stock level for each product and location (could also depend on the period)
var AboveTarget{p in PRODUCTS, l in LOCATIONS, t in PERIODS} >= 0;
# Amount above target stock
var BelowTarget{p in PRODUCTS, l in LOCATIONS, t in PERIODS} >= 0;
Expand Down Expand Up @@ -592,7 +592,7 @@ def storage_capacity_declaration(self, show=None):
header = self._transform(
r"""
param MaxCapacity{l in LOCATIONS} >= 0;
# Maximum storage capacity for each location and period
# Maximum storage capacity for each location (could also depend on the period)
"""
)

Expand Down

0 comments on commit 473ac4b

Please sign in to comment.