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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"suppliers": "<suppliers>",
"consumers": "<consumers>",
"costs": "<costs>"
},
"name": "solve_transportation_problem_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suppliers | Yes | ||
| consumers | Yes | ||
| costs | Yes |