How to Use Excel Solver for Linear Programming (with Easy Steps)

Linear Programming is an important aspect of Statistics and Applied Mathematics. You can perform predictive analysis with prevalent data variables. It helps us in the optimization of the resources. We must have some constraints and an objective function for that purpose. The Excel Solver can quickly figure out the solutions to Linear Programming problems by solving equations in Excel. We’ll use the following business problem as an example. A manufacturer has two kinds of products, ‘A’ and ‘B’. A single unit of product A requires three raw materials, P 25 kg, Q 35 kg, and R 10 kg. Similarly, B requires P 15 kg, Q 20 kg, and R 15 kg. The manufacturer needs a minimum of P 500 kg, Q 850 kg, and R 300 kg. If A costs $35 per unit and B costs $30 per unit, how many units of each product should the manufacturer blend to meet the minimum raw material requirements at a low cost as possible, and what is the price?

STEP 1 – Enabling the Solver Tool in Excel

Enable Solver in Excel

Enable Solver in Excel

Enable Solver in Excel

STEP 2 – Inserting Constraints

We’ll input the Constraints and the Objective Function in the Excel worksheet. According to the problem, we’ll blend x units of product A and y units of B. The total cost will be $35x + $30y. This is our objective function, and we want to minimize this cost. At the same time, we have to meet the requirements. 25x + 15y >= 500, 35x + 20y >= 850, 10x+15y >= 300, x >= 0 and y >= 0 are our constraints.

STEP 3 – Creating the Excel Formula

=($C$5*C6)+($D$5*D6)

=($C$5*C8)+($D$5*D8)

STEP 4 – Using the Excel Solver to Solve with Linear Programming

Solve Linear Programming with Excel Solver

Solve Linear Programming with Excel Solver

Solve Linear Programming with Excel Solver

Solve Linear Programming with Excel Solver

Solve Linear Programming with Excel Solver

Solve Linear Programming with Excel Solver

Final Output

Download the Practice Workbook

Use of Excel Solver.xlsx

Related Articles