Commit 0c857a99 authored by Barthelet Thibault's avatar Barthelet Thibault
Browse files

last fixes before pres

parent ca139805
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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."""
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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