Skip to content
← All questions

How do you formulate a project selection problem with binary variables and monthly budget constraints?

To formulate a project selection problem, define a binary decision variable XiX_i for each project, where Xi=1X_i = 1 if project ii is selected and 00 otherwise. Construct an objective function to maximize the total net return by summing the product of each project's return and its corresponding binary variable. Add linear inequality constraints for each month, ensuring the sum of the costs of the selected projects does not exceed the available budget for that month.

Conditions

  • Each project has an associated cost and net return.
  • Budget constraints apply to specific time periods (e.g., months).
  • Decisions are binary (select or do not select).

Reasoning, step by step

  1. Define binary variables Xi∈{0,1}X_i \in \{0, 1\} for each project ii.
  2. Identify the net return for each project.
  3. Formulate the objective function: Maximize ∑(returni⋅Xi)\sum (\text{return}_i \cdot X_i).
  4. Identify the cost for each project in each time period.
  5. Formulate the budget constraints: ∑(costi,t⋅Xi)≤Budgett\sum (\text{cost}_{i,t} \cdot X_i) \le \text{Budget}_t for each period tt.
  6. Specify the domain restriction Xi∈{0,1}X_i \in \{0, 1\}.

Example

For four projects with returns 217, 125, 88, and 109, the objective is to maximize 217X1+125X2+88X3+109X4217X_1 + 125X_2 + 88X_3 + 109X_4. The January budget constraint is 58X1+44X2+26X3+23X4≤12058X_1 + 44X_2 + 26X_3 + 23X_4 \le 120. The February constraint is 25X1+29X2+13X3+17X4≤8025X_1 + 29X_2 + 13X_3 + 17X_4 \le 80. The March constraint is 43X1+25X2+23X3+29X4≤9543X_1 + 25X_2 + 23X_3 + 29X_4 \le 95.

Common misconceptions

  • Assuming XiX_i can take fractional values (e.g., selecting half a project).
  • Forgetting to include the binary constraint Xi∈{0,1}X_i \in \{0, 1\}.
  • Confusing the objective function coefficients (returns) with the constraint coefficients (costs).

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.