REPOSITORY
ontariotech/path-optimization Private
[참조 MVP] 농작업 경로 최적화 A-SW — 작업 구간을 최근접 휴리스틱으로 재정렬해 공차 이동거리를 줄입니다.
https://git.agrithing.ai/ontariotech/path-optimization.git 31e9d33 feat: adopt python SERVICE SDV reference implementation
9a8e645 feat: adopt python SERVICE SDV reference implementation
78244d2 ci: add language-specific static and dynamic analysis
3e39860 docs: define component scope and interface contract
511863b ci: verify contract tests and evidence package
de87e68 feat: add executable reference MVP
fe5cc8b docs: define component scope and interface contract
1 items · main
·/ tests/test_component.py
python · 634 B · 9ce0417 Download
from __future__ import annotationsimport jsonimport unittestfrom pathlib import Pathfrom asw_component import executeROOT = Path(__file__).resolve().parents[1]class ComponentTest(unittest.TestCase): def test_reference_scenario(self): payload = json.loads((ROOT / "examples/input.json").read_text(encoding="utf-8")) result = execute(payload) self.assertEqual([item["id"] for item in result["order"]], ["B", "C", "A"]) self.assertGreater(result["total_transfer_distance_m"], 8) self.assertEqual(result["algorithm"], "nearest_neighbor")if __name__ == "__main__": unittest.main()