plan campaign supply
plan_campaign_supplyCampaign demand vs supply: from weekly demand, opening stock, weekly production capacity and the lead time for extra production, returns the first stockout week, total shortage, fill rate, the uniform extra production per week needed from the first week extra output can arrive, and the shortage that extra production cannot fix in time. Same engine as tools.oiyo.net.
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": {
"demand": "<demand>",
"openingStock": "<openingStock>",
"capacityPerWeek": "<capacityPerWeek>",
"leadTimeWeeks": "<leadTimeWeeks>"
},
"name": "plan_campaign_supply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| demand | Yes | Weekly demand, 1-52 weeks | |
| safetyStock | No | Stock to keep at all times, default 0 | |
| openingStock | Yes | Stock on hand at the start | |
| leadTimeWeeks | Yes | Weeks before extra production arrives | |
| capacityPerWeek | Yes | Units produced or received per week |