Author-reviewedEvidence: highv1.0.2

Constrained Optimisation

Constrained optimisation finds the choice that does best on an objective, such as QALYs gained, without breaking limits such as a fixed health budget.

Status
Published, version 1.0.2
Last reviewed
10 Oct 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Constrained Optimisation with Objectives, Constraints and Shadow Prices in Health Care Allocation

Constrained optimisation is the formal version of the question every health budget holder faces, namely, given limits that cannot be exceeded, which combination of services produces the most health. It matters in health economics because under strict assumptions the usual cost-effectiveness decision rule follows from a budget-constrained maximisation, and the cost-effectiveness threshold can be read as a by-product of that problem. An illustrative example below splits GBP 1 million between two programmes. Some problem classes have their own pages, namely linear programming, nonlinear programming, integer programming and multi-objective optimisation.

Decision variables, objective and constraints

The first ISPOR task force report on optimisation methods describes constrained optimisation as a set of methods for finding the best solution to a problem that has many potential solutions in the presence of identified constraints. Its components are the objective function, which the decision maker wants to maximise or minimise; the decision variables, the parts of the system being decided; and the constraints, restrictions on those variables, often about resources, that determine which values are allowed. Parameters, such as the cost of a treatment, are fixed inputs.

For a maximisation the general form is

max⁡x  f(x)subject togj(x)≤bj,j=1,…,m\max_{x} \; f(x) \quad \text{subject to} \quad g_j(x) \le b_j, \quad j = 1, \dots, m

where x=(x1,…,xn)x = (x_1, \dots, x_n) is the vector of decision variables, f(x)f(x) is the objective function, gj(x)g_j(x) is the amount of resource jj used by the decision xx and bjb_j is the amount of resource jj available. Equality constraints and bounds such as xi≥0x_i \ge 0 may be added. The decisions that satisfy every constraint form the feasible set; if none does, the problem is infeasible, and the report advises changing it, for example by relaxing a constraint, before looking for an optimum.

The report's illustration is a health centre with one hour of consulting time, 15 minutes per patient and a USD 150 medicines budget. Regular patients gain two units of health for USD 25 of medicines and severe patients three units for USD 50; the optimum, two of each, gives 10 units and uses the whole hour and the whole budget.

Why health resource allocation is a budget-constrained maximisation

The same report lists allocation within and across disease programmes as a typical application, in which a health authority or insurance fund chooses which interventions to fund to maximise population health, subject to the overall health budget and legal constraints on equity. The second task force report adds that the task central to health economic analysis, comparing an ICER with a critical threshold, is related to budget-constrained optimisation. Citing Weinstein and Zeckhauser, it states that under a strict set of assumptions the threshold is the inverse of the shadow price of the budget constraint.

Stinnett and Paltiel argued that earlier treatments of allocation under a budget relied on unnecessarily restrictive assumptions, and showed that a general programming framework can handle returns to scale, partial and complete indivisibility and interdependence between programmes, as well as ethical constraints with an explicit cost of equity. Epstein and colleagues observed that the standard decision rules require either a threshold or a fixed budget, that in practice neither is generally taken, and that mathematical programming generalises those rules.

The Lagrangian and the Karush-Kuhn-Tucker conditions

Boyd and Vandenberghe describe Lagrangian duality as taking the constraints into account by adding a weighted sum of the constraint functions to the objective. The weights are the Lagrange multipliers. For the maximisation above the Lagrangian is

L(x,λ)=f(x)−∑j=1mλj(gj(x)−bj)\mathcal{L}(x, \lambda) = f(x) - \sum_{j=1}^{m} \lambda_j \left( g_j(x) - b_j \right)

where λj≥0\lambda_j \ge 0 is the multiplier attached to constraint jj and the other terms are as defined above. When the functions are differentiable, an optimal decision x∗x^* with multipliers λ∗\lambda^* satisfies the Karush-Kuhn-Tucker conditions, here in maximisation form.

∇f(x∗)=∑j=1mλj∗∇gj(x∗),gj(x∗)≤bj,λj∗≥0,λj∗(gj(x∗)−bj)=0\nabla f(x^*) = \sum_{j=1}^{m} \lambda_j^* \nabla g_j(x^*), \qquad g_j(x^*) \le b_j, \qquad \lambda_j^* \ge 0, \qquad \lambda_j^* \left( g_j(x^*) - b_j \right) = 0

where ∇\nabla denotes the vector of partial derivatives with respect to the decision variables. The parts are stationarity, primal feasibility, dual feasibility and complementary slackness. Boyd and Vandenberghe state them as necessary conditions when strong duality holds, and show that for a convex problem any point satisfying them is optimal.

Two of the conditions have a direct economic reading. With a single budget constraint, stationarity says that every funded programme yields the same marginal health gain per pound, equal to λ\lambda, which is the equal-margins rule behind marginal analysis and allocative efficiency. Complementary slackness says that a constraint with spare capacity has a zero multiplier, so loosening it gains nothing. Maximising a concave objective under convex constraints is a convex problem, in which any local optimum is also global. Without convexity, local methods give no guarantee of finding the best solution, and the ISPOR report recommends repeating the search from different starting values.

Shadow prices and the value of one more unit of a constraint

Boyd and Vandenberghe show that, when the optimal value is differentiable and strong duality holds, the optimal multipliers are exactly the local sensitivities of the optimal value to small changes in the constraints. This is what turns a multiplier into a price. Writing V(b)V(b) for the best achievable objective at resource levels bb gives the following.

λj∗=∂V(b)∂bj,V(b)=max⁡x{f(x):gj(x)≤bj for all j}\lambda_j^* = \frac{\partial V(b)}{\partial b_j}, \qquad V(b) = \max_{x} \left\{ f(x) : g_j(x) \le b_j \text{ for all } j \right\}

where V(b)V(b) is the optimal value function and λj∗\lambda_j^* is the shadow price of resource jj. They read the multiplier as roughly the extra gain from a small increase in a resource, and so its natural price. The second ISPOR report applies the idea to health, defining the shadow price as how much QALYs would increase for a one-unit increase in the budget. The budget constraint page takes this reading further.

Worked example splitting GBP 1 million between two programmes

The programmes, functions and numbers below are illustrative. A commissioner divides GBP 1 million between cardiac rehabilitation (A) and falls prevention (B), both with diminishing returns.

1. Formulate the problem.

max⁡x,y  4x+2ysubject tox+y≤1000,x≥0,y≥0\max_{x, y} \; 4\sqrt{x} + 2\sqrt{y} \quad \text{subject to} \quad x + y \le 1000, \quad x \ge 0, \quad y \ge 0

where xx and yy are spending on programmes A and B in thousands of pounds and the objective is QALYs gained.

2. Apply stationarity. The marginal QALY gains per GBP 1,000 are ∂Q/∂x=2/x\partial Q / \partial x = 2/\sqrt{x} for A and ∂Q/∂y=1/y\partial Q / \partial y = 1/\sqrt{y} for B, and both must equal λ\lambda. So x=2y\sqrt{x} = 2\sqrt{y}, which means x=4yx = 4y. Both marginal gains are positive, so the budget binds and x+y=5y=1000x + y = 5y = 1000, giving y=200y = 200 and x=800x = 800.

3. Value the allocation. Total health gain is Q=4800+2200=113.14+28.28=141.42Q = 4\sqrt{800} + 2\sqrt{200} = 113.14 + 28.28 = 141.42 QALYs. An equal split gives Q=4500+2500=89.44+44.72=134.16Q = 4\sqrt{500} + 2\sqrt{500} = 89.44 + 44.72 = 134.16 QALYs, so the optimum yields 7.26 more QALYs from the same money.

4. Read the shadow price. At the optimum λ=2/800=1/200=0.0707\lambda = 2/\sqrt{800} = 1/\sqrt{200} = 0.0707 QALYs per GBP 1,000. Its inverse, about GBP 14,142 per QALY, is the cost per QALY of the last pound in either programme and the threshold this budget implies. The average cost per QALY, GBP 800,000 for 113.14 QALYs in A and GBP 200,000 for 28.28 QALYs in B, is about GBP 7,071 in both, so the threshold is a marginal quantity, here twice the average.

5. Test the shadow price on a larger change. Because the optimum always puts 80% of the budget into A, the value function is V(B)=20BV(B) = \sqrt{20B}, with BB in thousands of pounds. Adding GBP 100,000 lifts it from V=20000=141.42V = \sqrt{20000} = 141.42 to V=22000=148.32V = \sqrt{22000} = 148.32, a gain of 6.90 QALYs. The shadow price predicts 0.0707 × 100 = 7.07 QALYs, an overstatement that grows with the size of the change.

6. Add a policy constraint. The commissioner now commits to spending at least GBP 300,000 on falls prevention, so y≥300y \ge 300. The earlier optimum spends only 200, so the constraint binds, giving y=300y = 300 and x=700x = 700. Health gain falls to Q=4700+2300=105.83+34.64=140.47Q = 4\sqrt{700} + 2\sqrt{300} = 105.83 + 34.64 = 140.47 QALYs, a loss of 141.42 − 140.47 = 0.95 QALYs. The budget multiplier becomes λ=2/700=0.0756\lambda = 2/\sqrt{700} = 0.0756, and the multiplier on the floor is the gap between the two marginal gains, μ=0.0756−1/300=0.0756−0.0577=0.0179\mu = 0.0756 - 1/\sqrt{300} = 0.0756 - 0.0577 = 0.0179 QALYs lost for each extra GBP 1,000 of required spending on B. A floor of GBP 150,000 would have been slack, with a zero multiplier and an unchanged allocation.

7. Interpretation. The optimisation makes the price of the commitment visible, 0.95 QALYs at this budget, which the commissioner can weigh against the reason for the floor. The constraint also moves the implied threshold from about GBP 14,142 to about GBP 13,229 per QALY, because the marginal pound now goes to the programme held below its efficient share.

Problem classes and solution methods

The first ISPOR report classifies problems as linear or nonlinear, deterministic or stochastic, continuous or discrete, and single or multi-objective, and the solution method has to match the class. Exact methods include the simplex method for linear problems and Newton or interior point methods for nonlinear ones; heuristics such as genetic algorithms give approximate solutions where an exact approach is unavailable or too costly. The report warns that solving an integer problem as a linear one and rounding the answer can give an infeasible solution, or a feasible one that is not the integer optimum. Where parameters are uncertain, stochastic programming and robust optimisation build the uncertainty into the problem, and general iterative search is covered under numerical optimisation.

The second ISPOR report's first case study chose the mix of cervical cancer screening and vaccination strategies that minimised expected cancer cases under a fixed budget and coverage limits, as a linear programme with 52 decision variables and 57 constraints solved by the simplex method in Excel Solver. Costs and cases for each strategy came from a Markov model.

Constrained optimisation alongside economic evaluation

The first ISPOR report contrasts optimisation with the models used in health technology assessment. A Markov model estimates the costs and effects of different diagnostic and treatment options, and decisions based on it may not formally consider the constraints and resource implications in the system; capacity constraints are usually neglected. Optimisation brings the budget and other limits, such as staff and beds, into the problem itself. The second report adds that reimbursement processes take budget constraints only partly into account.

Epstein and colleagues argued that a rule which is neither a true threshold nor a fixed budget may be inconsistent with the budget and cannot identify the programme to be displaced at the margin. Their framework reports the health forgone under each budgetary policy and equity concern, like the 0.95 QALYs in the example. The ISPOR report adds that showing how much health an equity objective costs can be useful even if the optimum is not adopted.

What the optimum depends on, and common misreadings

An optimal solution is optimal only for the problem as written. The ISPOR report notes that a model used for optimisation must be valid for every combination of decision variables, and that a mathematically optimal answer, such as a nurse roster that breaks up existing teams, may not be implementable. The recurring errors are these.

  1. Treating the objective as neutral. Maximising total QALYs ignores who gains; equity concerns enter as constraints or weights, with their cost reported, as in step 6.
  2. Using a shadow price for a large change. The multiplier is a local sensitivity. In the example it overstated the gain from GBP 100,000 of extra budget, and McCabe and colleagues argue that interventions with a large budget impact may need a lower threshold because they displace more than the marginal activities.
  3. Taking solver convergence as proof of a global optimum. That holds only for convex problems; others need restarts from different starting values.
  4. Treating parameters as certain. The ISPOR report recommends re-running the optimisation with different parameter values to see how far the solution and optimal value move.

Sources

  • Boyd S, Vandenberghe L. Convex Optimization. Cambridge: Cambridge University Press; 2004. Sections 1.4.1, 4.2.2, 5.1.1, 5.5.3 and 5.6.3. https://web.stanford.edu/~boyd/cvxbook/
  • Crown W, Buyukkaramikli N, Thokala P, Morton A, Sir MY, Marshall DA, Tosh J, Padula WV, Ijzerman MJ, Wong PK, Pasupathy KS. Constrained optimization methods in health services research: an introduction. Report 1 of the ISPOR Optimization Methods Emerging Good Practices Task Force. Value in Health. 2017;20(3):310-319. https://doi.org/10.1016/j.jval.2017.01.013
  • Crown W, Buyukkaramikli N, Sir MY, Thokala P, Morton A, Marshall DA, Tosh JC, Ijzerman MJ, Padula WV, Pasupathy KS. Application of constrained optimization methods in health services research: report 2 of the ISPOR Optimization Methods Emerging Good Practices Task Force. Value in Health. 2018;21(9):1019-1028. https://doi.org/10.1016/j.jval.2018.05.003
  • Epstein DM, Chalabi Z, Claxton K, Sculpher M. Efficiency, equity, and budgetary policies: informing decisions using mathematical programming. Medical Decision Making. 2007;27(2):128-137. https://doi.org/10.1177/0272989X06297396
  • McCabe C, Claxton K, Culyer AJ. The NICE cost-effectiveness threshold: what it is and what that means. PharmacoEconomics. 2008;26(9):733-744. https://doi.org/10.2165/00019053-200826090-00004
  • Stinnett AA, Paltiel AD. Mathematical programming for the efficient allocation of health care resources. Journal of Health Economics. 1996;15(5):641-653. https://doi.org/10.1016/S0167-6296(96)00493-6

Library

Publications

2
  • Book

    Convex Optimization — Boyd S, Vandenberghe L, 2004 (Cambridge University Press)

    Book or book chapter listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Constrained Optimisation, where it is cited as a reference for that concept.

  • BookFeatured

    Decision Modelling for Health Economic Evaluation — Briggs, Claxton & Sculpher, 1st Edition ed., 2006 (Oxford University Press)

    Foundational textbook on decision-analytic modelling for economic evaluation, covering decision trees, Markov models, handling parameter and structural uncertainty, probabilistic sensitivity analysis, and value of information. Volume 1 in the Handbooks in Health Economic Evaluation series.

Frequently Asked Questions (6)

  • What is constrained optimisation?

    Constrained optimisation finds the choice that does best on an objective, such as QALYs gained, without breaking limits such as a fixed health budget.

    Source: Crown et al. 2017

  • What is the objective function in constrained optimisation?

    A constrained optimisation problem has two parts, an objective function, the quantity to be made as large or small as possible, and one or more constraints that limit the choices allowed. In a health application the objective might be total health gain and the constraint a fixed budget, so the problem is to find the mix of services that yields the most health without exceeding the money available. Setting up the objective and constraints correctly is what turns a vague aim into a solvable problem. Weinstein and Zeckhauser (1973) apply this framing to health.

    Source: Weinstein & Zeckhauser 1973

  • What are the elements of a constrained optimisation problem?

    A constrained optimisation problem has three elements: an objective function to be maximised or minimised, such as total health benefit; decision variables that can be chosen, such as how much to spend on each use; and constraints that limit the choices, such as a fixed budget or capacity. The solution is the set of variable values that gives the best value of the objective while satisfying all the constraints. These elements formalise the problem of doing as well as possible within limits.

    Source: Varian 2014

  • How is a constrained optimisation problem solved?

    A constrained optimisation problem is solved by finding the values of the decision variables that optimise the objective subject to the constraints, often using methods such as the Lagrange multiplier technique, which incorporates the constraints into the objective. At the optimum, the objective cannot be improved without violating a constraint. The Lagrange multipliers have an economic interpretation as shadow prices, the value of relaxing a constraint slightly, such as the health gained from a marginal increase in the budget.

    Source: Varian 2014

  • How does constrained optimisation relate to resource allocation?

    Constrained optimisation relates directly to resource allocation, which is the problem of maximising benefit from limited resources. Allocating a fixed health budget to maximise health is a constrained optimisation, with health as the objective and the budget as the constraint. The solution directs resources to where they yield most benefit at the margin, equalising the marginal benefit per pound across uses. The shadow price of the budget constraint is the health obtainable from an extra pound, which grounds the cost-effectiveness threshold.

    Source: Varian 2014

  • What are the limitations of constrained optimisation in health?

    Constrained optimisation gives clear answers only when the objective, variables, and constraints can be specified, but in health these are often uncertain or contested: the objective may involve equity as well as total health, the effects of spending may be poorly known, and constraints beyond the budget may bind. The mathematics also assumes the objective can be maximised precisely, which real data rarely allow. It provides a rigorous framework for allocation but depends on inputs and value judgements that must be supplied.

    Source: Varian 2014

Trust Record

Not verified for this version

This concept changed after its last verification. Re-verify to stamp this version.

Canonical Identity

Term code
HE-EM-DM-013

Stable URI · Machine-readable · Resolvable · CC BY 4.0