Loading supply_chain_sim/supply_order.py +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class SupplyOrderLogic: self.forecasts = forecasts self.warehouse_inventories = [] self.pending_orders = [] self.threshold_multiplier = 1.5 # Safety stock multiplier self.threshold_multiplier = 2 # Safety stock multiplier def compute_requirements(self) -> Dict[int, int]: """Compute required component quantities from forecasts and BOMs.""" Loading Loading @@ -77,7 +77,7 @@ class SupplyOrderLogic: if supplier: # Add Gaussian noise to lead time actual_lead_time = max(1, supplier.lead_time + np.random.normal(0, 2)) actual_lead_time = max(1, supplier.lead_time + np.random.normal(0, 1)) order = SupplyOrder( component_id=component_id, Loading supply_chain_sim/synthetic_setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ class SyntheticEntitySetup: warehouse_id=warehouse.id, item_id=watch.id, item_type="watch", quantity=np.random.randint(20, 100) # Stock quantity quantity=np.random.randint(20, 60) # Stock quantity )) inv_id += 1 Loading Loading
supply_chain_sim/supply_order.py +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ class SupplyOrderLogic: self.forecasts = forecasts self.warehouse_inventories = [] self.pending_orders = [] self.threshold_multiplier = 1.5 # Safety stock multiplier self.threshold_multiplier = 2 # Safety stock multiplier def compute_requirements(self) -> Dict[int, int]: """Compute required component quantities from forecasts and BOMs.""" Loading Loading @@ -77,7 +77,7 @@ class SupplyOrderLogic: if supplier: # Add Gaussian noise to lead time actual_lead_time = max(1, supplier.lead_time + np.random.normal(0, 2)) actual_lead_time = max(1, supplier.lead_time + np.random.normal(0, 1)) order = SupplyOrder( component_id=component_id, Loading
supply_chain_sim/synthetic_setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ class SyntheticEntitySetup: warehouse_id=warehouse.id, item_id=watch.id, item_type="watch", quantity=np.random.randint(20, 100) # Stock quantity quantity=np.random.randint(20, 60) # Stock quantity )) inv_id += 1 Loading