Production Capacity Planner
Which products, in what quantities, should we produce next period to maximise contribution, given limited machine and labour hours and the most each product can sell?
Inputs
Results
What it answers
Which products, in what quantities, should we produce next period to maximise contribution, given limited machine and labour hours and the most each product can sell?
The default inputs are a worked example; change any value to see the model respond.
How to use it
- Paste the plan: a header (product, profit, max_demand, then one column per resource), a capacity row, and one row per product.
- Read the fractional LP optimum, the best whole-unit mix, the contribution and each resource's utilisation.
- Use the shadow prices to judge overtime or outsourcing: extra capacity is worth paying for only if it costs less than its shadow price.
The model
- x_j
- units of product j to produce
- c_j
- contribution per unit (price − variable cost)
- a_{ij}
- hours of resource i used per unit of product j
- B_i
- available hours of resource i
- D_j
- maximum units of product j that can be sold
- y_i
- value of one more hour of resource i
When to use it
- Monthly production planning in manufacturing.
- Evaluating overtime, a second shift or outsourcing.
- Teaching linear programming and duality.
Limits to keep in mind
- Linear model: constant contribution and hours per unit, no set-up times, batch sizes or economies of scale.
- The LP optimum may be fractional. The whole-unit plan solves the integer programme exactly by branch and bound (a search limit of 20,000 nodes is reported if reached); shadow prices refer to the continuous LP, not the integer plan.
- Shadow prices are valid only for small changes in capacity; large changes need re-solving.
What should be investigated in practice?
To support real production decisions, the model must reflect how the plant actually runs and be validated against the planners' experience:
- Product economics: contribution per unit from actual prices and variable costs (materials, energy, direct labour, packaging), by customer channel if prices differ.
- Routing and standard times: operations each product passes through, standard hours per unit from time studies or ERP routings, and actual efficiency versus standard.
- Effective capacity: shifts, planned maintenance, breakdown history, changeover/set-up times and labour availability by skill.
- Demand commitments: firm orders and contractual minimums (which need ≥ constraints), forecasts and the maximum the market can absorb.
- Additional constraints: raw-material availability, storage, minimum batch sizes and product dependencies that may require integer or mixed-integer models.
- Scenario use: overtime cost versus shadow price, second-shift economics and the effect of losing a key machine.
- Validation and pilot: compare recommended plans with historical plans, check feasibility with supervisors, then measure contribution and schedule adherence in a pilot.
Maturity: Educational prototype
Reproducible worked example: the default inputs above. Reload the page to restore them; the same inputs always give the same results.
Verified: 2 automated tests check the calculations against hand-computed or independently specified values and against invalid inputs:
- production planning LP (Wyndor Glass)
- whole-unit plan is the integer optimum, not the rounded-down LP solution
Benchmark: Reproduces the optimal solution of the Wyndor Glass linear programme, a standard textbook benchmark.
Not yet: Not independently reviewed, and not validated on a firm's or market's own data for operational decisions.
Educational tool. Results depend on the inputs and assumptions above and are not financial, investment or professional advice. Calculations run in your browser.