title: "Module6Assignment" author: "Joe Prillaman" date: "2025-10-12" output: html_document ---
{r} library(lpSolveAPI) x <- read.lp("jprillam6.lp") x
/* Objective Function*/ min: 22 x11 + 14 x12 + 30 x13 + 600 x14 + 16 x21
+ 20 x22 + 24 X23 + 625 x24;
/* Constraints */ x11 + x21 = 80; x12 + x22 = 60; x13 + x23 = 70; x11 + x12 + x13 - x14 = 0; x21 + x22 + x23 - x24 = 0; x14 <= 100; x24 <= 120; X14 + x24 = 210;
{r} solve(x) get.objective(x) get.variables(x)
Interpretation of the model outputs:
60 made in Plant A sent to warehouse 2 40 made in Plant A sent to warehouse 3 [100 total made in plant A]
80 made in plant B sent to warehouse 1 30 made in plant B sent to warehouse 3 [110 total made in plant B]
Executive Summary:
Minimized production and shipping costs will total $132,790.00 dollars. This figure is achieved by producing 100 units in Plant A and shipping 60 to warehouse 2 and 40 to warehouse 3, while producing 110 in Plant B and shipping 80 to warehouse 1 and 30 to warehouse 3.
210 units total will be produced and shipped from our production capacity of 220 units, and every warehouse's demand will be fulfilled.