Update warehouse digital twin and robot fleet optimization

This commit is contained in:
DnyaneshwariP13
2026-11-25 11:54:38 +05:30
parent e9c573ddc2
commit acab3a1f5b
367 changed files with 4411504 additions and 110561 deletions
+9 -8
View File
@@ -31,21 +31,21 @@ def test_decentralized_charging_layout_configuration(project_config_dir: Path):
base_cfg = optimizer.get_warehouse_config(LayoutVariant.BASELINE)
base_bays = base_cfg["charging_stations"]
assert len(base_bays) == 4
# Baseline chargers are all grouped in the NW corner (x <= 8.0, y = 36.0)
assert len(base_bays) == 8
# Baseline chargers are all grouped in the NW corner (x <= 16.0, y = 36.0)
for b in base_bays:
assert b["position"][0] <= 8.0
assert b["position"][0] <= 16.0
assert b["position"][1] == 36.0
decent_cfg = optimizer.get_warehouse_config(LayoutVariant.DECENTRALIZED_CHARGING)
decent_bays = decent_cfg["charging_stations"]
assert len(decent_bays) == 4
assert len(decent_bays) == 8
positions = [b["position"] for b in decent_bays]
# Bay 3 should be in Zone B picking area (x=30.0, y=2.0)
# Bay 5 should be in Zone B picking area (x=30.0, y=2.0)
assert [30.0, 2.0, 0.0] in positions
# Bay 4 should be in Zone C production feed area (x=52.0, y=36.0)
assert [52.0, 36.0, 0.0] in positions
# Bay 7 should be in Zone C production feed area (x=48.0, y=36.0, non-overlapping with dropoff dock)
assert [48.0, 36.0, 0.0] in positions
def test_velocity_slotting_inventory_configuration(project_config_dir: Path):
@@ -108,6 +108,7 @@ def test_layout_comparison_simulation(project_config_dir: Path, tmp_path: Path):
# Export layout configs
cfgs = optimizer.export_layout_configs(tmp_path / "configs")
assert len(cfgs) == 5
assert len(cfgs) == len(LayoutVariant)
assert (tmp_path / "configs" / "warehouse_baseline.json").exists()
assert (tmp_path / "configs" / "warehouse_hybrid_optimal.json").exists()
assert (tmp_path / "configs" / "warehouse_efficiency_optimized.json").exists()