From 473ac4bebb7f03d5a351f5c4cdc9fbc422bfd692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20Brand=C3=A3o?= Date: Sun, 15 Sep 2024 09:05:02 +0100 Subject: [PATCH] Supply Chain: improve comments on the models --- apps/supply_chain/app.py | 4 ++-- apps/supply_chain/model.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/supply_chain/app.py b/apps/supply_chain/app.py index b25128a..3dd1159 100644 --- a/apps/supply_chain/app.py +++ b/apps/supply_chain/app.py @@ -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 diff --git a/apps/supply_chain/model.py b/apps/supply_chain/model.py index b43d669..7aab6c8 100644 --- a/apps/supply_chain/model.py +++ b/apps/supply_chain/model.py @@ -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) """ ) @@ -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; @@ -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) """ )