Start with a bounded service window
A dish with the largest contribution per sale need not belong in the best mix when it consumes a different combination of two scarce resources. Enter four dishes, their selected contribution per sale, two resource requirements per unit, and a demand cap for the same window. The calculator checks every integer quantity combination from zero through six per dish, then removes combinations that exceed demand or either resource budget.
The answer is a maximum within those explicit limits. A contribution is sales less the costs you have chosen as changing with the sale; it is not whole-business profit. Use one currency and a consistent sales and cost basis. If a shift cost is unchanged across every feasible mix it does not change their ranking. If it changes when a threshold is crossed, this linear input table cannot represent it. ACCA’s relevant-cost discussion supplies the decision-cost principle; the dishes, limits and enumeration here are independently authored.
- Define one common resource window and four independent demand caps.
- For each of 2,401 quantity vectors, calculate both resource totals.
- Discard a vector if a cap or resource budget is exceeded.
- Compare contribution for every remaining vector; retain every equal maximum.
- Check the winning vector against timing, food handling and actual demand before acting.
A fictional mix that defeats ranking by contribution per dish
The sample uses MU, a fictional money unit. Resource units can represent mutually exclusive minutes if each unit requirement and both budgets use that definition. They must not mix elapsed minutes with worker-minutes or count the same worker independently in two budgets.
| Dish | Contribution MU | Prep units | Grill units | Demand cap |
|---|---|---|---|---|
| A | 12 | 4 | 1 | 6 |
| B | 11 | 1 | 4 | 6 |
| C | 9 | 2 | 2 | 6 |
| D | 8 | 1 | 1 | 6 |
With 12 prep and 12 grill units, the unique maximum is 0 A, 0 B, 3 C and 6 D. Contribution is 3 × 9 + 6 × 8 = 75 MU. Prep and grill each use 3 × 2 + 6 × 1 = 12; both slack values are zero. There are 138 feasible vectors, including doing nothing, from the complete 7⁴ = 2,401-vector search. The model returns the complete feasible table; the shared viewer may show only its first 100 rows.
Choosing three A first earns 36 MU, consumes all prep and leaves nine grill units idle. Adding two B while also allowing three A earns 58 MU but would use 14 prep, so it is infeasible. A less extreme feasible proposal, two A and two B, earns 46 MU and uses ten of each resource. Neither contribution per dish nor a single-resource ratio settles the two-resource problem.
These counts can be checked without trusting the maximum: fix C = c and D = d, then list nonnegative A and B with 4A + B ≤ 12 − 2c − d and A + 4B ≤ 12 − 2c − d. Apply the same cap of six to each coordinate. Repeating this for c,d = 0…6 yields the supplied 138-row witness file. Each witness lists both inequalities, slack and contribution.
Download fictional dish inputs (CSV); independent baseline feasible vectors (CSV); complete sample input (JSON); worked answer key (JSON); fixture instructions (TXT).
Read the witnesses before changing the menu
The first result table contains every tied maximum, in lexicographic order of quantities following the CSV row order. Row order only determines display order among ties; it does not create a preference. The candidate fields refer to those same four row positions. A candidate over its demand cap or resource budget gets a specific warning and no meaningful gap to the maximum. It is still shown so the resource error is visible.
Idle capacity is allowed. If demand caps are low, using all resources may be impossible. If contributions are negative, selling none can beat filling capacity. If all contributions are zero, every feasible vector ties; the first maximum is the all-zero vector. A zero resource requirement means exactly no consumption of that resource in this aggregate model. Zero budgets therefore force zero production only for dishes needing those resources.
The CSV needs its exact five-column header and exactly four uniquely identified rows. Duplicate or blank IDs, missing amounts, nonfinite values, fractional resource units, negative resource use, caps above six and budgets above 60 are rejected. Contributions may be negative but have at most two decimal places and magnitude at most 1,000,000 MU per unit. IDs remain text, including leading zeros. A blank does not become zero. Data stays locally in this tab; the current-scenario JSON download records your current inputs and outputs.
ACCA’s March 2019 performance-management report treats multiple limiting factors as an optimisation problem. This page uses bounded integer enumeration rather than a continuous linear-programming solution. A fractional optimum from a different model need not be feasible here.
Resource slack is not a shadow price. To ask whether one extra prep unit helps, rerun with that budget increased by one while keeping the rest fixed and compare the new maximum. Integer steps and demand caps can make that gain discontinuous. The tool does not calculate a continuous marginal value, production sequence, batch setup, shared-worker conflict, ingredient stock constraint or uncertainty buffer.
For identical-unit completion timing, use line bottleneck capacity. For purchased versus internally made units, use make-or-buy capacity. For one proposed booking and displaced work, use catering quote opportunity cost. This tool adds an editable, exhaustive mixed-menu comparison across two simultaneous constraints.
