Solving Linear Programs Using Excel: Arpee Arruejo, MIT
Solving Linear Programs Using Excel: Arpee Arruejo, MIT
Variable cells
Constraints
How to use…cont’n….
Objective
The Objective cell (Target cell in earlier Excel
versions) is the cell containing a formula that
represents the objective, or goal, of the problem.
The objective can be to maximize, minimize, or
achieve some target value.
How to use…cont’n….
In this example, the objective cell is B7, which calculates the payment term
using the formula =B3/(B4*B5) and the result of the formula should be equal
to 12:
How to use…cont’n….
Variable cells
Variable cells (Changing cells or Adjustable cells in
earlier versions) are cells that contain variable data
that can be changed to achieve the objective. Excel
Solver allows specifying up to 200 variable cells.
How to use…cont’n….
In this example, we have a couple of cells whose values can be changed:
Projected clients per month (B4) that should be less than or equal to 50;
and
Cost per service (B5) that we want Excel Solver to calculate.
How to use…cont’n….
Constraints
The Excel Solver Constrains are restrictions or
limits of the possible solutions to the problem. To
put it differently, constraints are the conditions
that must be met.
How to use…cont’n….
To add a constraint(s), do the following:
Click the Add button right to the "Subject to the Constraints" box.
How to use…cont’n….
In the Constraint window, enter a constraint.
Click the Add button to add the constraint to the list.
Current
value of
variables
Constraint
coefficients
Formulating in Excel
Amount of
each
constraint
used
by current
solution
Formulating in Excel
Objective
Function
Value