optimize_production_plan_tool
Optimize multi-period production plans to maximize profit or minimize costs by analyzing resource capacity, demand, and inventory constraints. Supports various solvers and customizable time limits.
Instructions
Optimize multi-period production planning to maximize profit or minimize costs.
Args:
products: List of product dictionaries with costs and resource requirements
resources: List of resource dictionaries with capacity constraints
periods: Number of planning periods
demand: List of demand requirements per product per period
objective: Optimization objective ("maximize_profit", "minimize_cost", "minimize_time")
inventory_costs: Optional inventory holding costs per product
setup_costs: Optional setup costs per product
solver_name: Solver to use ("CBC", "GLPK", "GUROBI", "CPLEX")
time_limit_seconds: Maximum solving time in seconds (default: 30.0)
Returns:
Optimization result with optimal production plan
Input Schema
Name | Required | Description | Default |
---|---|---|---|
demand | Yes | ||
inventory_costs | No | ||
objective | No | maximize_profit | |
periods | Yes | ||
products | Yes | ||
resources | Yes | ||
setup_costs | No | ||
solver_name | No | CBC | |
time_limit_seconds | No |
Input Schema (JSON Schema)
{
"properties": {
"demand": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Demand",
"type": "array"
},
"inventory_costs": {
"anyOf": [
{
"additionalProperties": {
"type": "number"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Inventory Costs"
},
"objective": {
"default": "maximize_profit",
"title": "Objective",
"type": "string"
},
"periods": {
"title": "Periods",
"type": "integer"
},
"products": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Products",
"type": "array"
},
"resources": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Resources",
"type": "array"
},
"setup_costs": {
"anyOf": [
{
"additionalProperties": {
"type": "number"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Setup Costs"
},
"solver_name": {
"default": "CBC",
"title": "Solver Name",
"type": "string"
},
"time_limit_seconds": {
"default": 30,
"title": "Time Limit Seconds",
"type": "number"
}
},
"required": [
"products",
"resources",
"periods",
"demand"
],
"type": "object"
}