solve_transportation_problem_tool
Minimize total shipping cost from suppliers to consumers. Provide supply list, demand list, and cost matrix. Returns optimal flows, total cost, and execution time using OR-Tools.
Instructions
Solve transportation problem using OR-Tools.
Args:
suppliers: List of supplier dictionaries with 'name' and 'supply' keys
consumers: List of consumer dictionaries with 'name' and 'demand' keys
costs: 2D cost matrix where costs[i][j] is cost of shipping from supplier i to consumer j
Returns:
Dictionary with solution status, flows, total cost, and execution time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suppliers | Yes | ||
| consumers | Yes | ||
| costs | Yes |