34 lines
889 B
Python
34 lines
889 B
Python
"""Mobile-specific configuration for delivery route optimization."""
|
|
|
|
# Mobile optimization settings
|
|
MOBILE_CONFIG = {
|
|
"default_algorithm": "greedy",
|
|
"max_deliveries": 100,
|
|
"timeout_seconds": 5,
|
|
"response_compression": True,
|
|
"performance_monitoring": True,
|
|
"mobile_headers": True
|
|
}
|
|
|
|
# Performance targets for mobile
|
|
PERFORMANCE_TARGETS = {
|
|
"greedy_algorithm": {
|
|
"max_response_time": 0.1, # 100ms
|
|
"max_deliveries": 50,
|
|
"description": "Ultra-fast for real-time mobile apps"
|
|
},
|
|
"tsp_algorithm": {
|
|
"max_response_time": 3.0, # 3 seconds
|
|
"max_deliveries": 30,
|
|
"description": "Optimal but slower, good for planning"
|
|
}
|
|
}
|
|
|
|
# Mobile app recommendations
|
|
MOBILE_RECOMMENDATIONS = {
|
|
"real_time_delivery": "greedy",
|
|
"route_planning": "tsp",
|
|
"large_batches": "greedy",
|
|
"cost_optimization": "tsp"
|
|
}
|