Formulating Resource Allocation Problems as LPs
Translating a verbal resource-allocation scenario into a linear program: choosing decision variables, writing the linear objective, and writing one capacity constraint per limited resource.
Tutorial
Introduction
A resource allocation problem asks: given limited resources, how should we divide them among competing activities to maximize total profit (or minimize total cost)?
To model such a problem as a linear program, we follow three steps.
-
Decision variables. Introduce one variable for each activity, representing the level of that activity (units produced, hours used, acres planted, etc.).
-
Objective function. If each unit of activity contributes dollars of profit, the total profit is the linear function
- Resource constraints. If resource is available in total amount and each unit of activity consumes units of resource , then total usage cannot exceed availability:
Activity levels are also non-negative: for every .
For instance, if making one chair requires hours of labor, one table requires hours, and hours are available, the labor constraint is