Spaces:
Runtime error
Runtime error
Download src/optimization/__init__.py from MCP-1st-Birthday/LifeFlow-AI: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/MCP-1st-Birthday/LifeFlow-AI/resolve/main/src/optimization/__init__.py
- Command line
-
hf download hf://spaces/MCP-1st-Birthday/LifeFlow-AI/src/optimization/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/MCP-1st-Birthday/LifeFlow-AI/resolve/main/src/optimization/__init__.py
562 Bytes
| """ | |
| TSPTW Solver 模塊 | |
| 對外公開接口: | |
| - TSPTWSolver: 主求解器類 | |
| 使用方式(完全保持向後兼容): | |
| ```python | |
| from src.optimization import TSPTWSolver | |
| solver = TSPTWSolver() | |
| result = solver.solve( | |
| tasks=[...], | |
| start_location={"lat": 25.0330, "lng": 121.5654}, | |
| start_time=datetime.now(), | |
| deadline=datetime.now() + timedelta(hours=6), | |
| ) | |
| print(result["status"]) # "OK", "NO_SOLUTION", "NO_TASKS" | |
| print(result["route"]) | |
| print(result["tasks_detail"]) | |
| ``` | |
| """ | |
| from .tsptw_solver import TSPTWSolver | |
| __all__ = ["TSPTWSolver"] | |