Linear Programming Assignment Help
Linear Programming Assignment Help
Thanks for sharing both PDFs. Before I start formulating and explaining the linear programs
for each of the five questions, could you please confirm:
1. Do you want the solutions in a Word document or should I display them here directly for
copy-pasting?
2. Should the answers at the end be given in a bullet list or in a table format?
3. Do you want me to follow the exact formatting (fonts, structure) from the reference PDF
or just the structure (decision variables, objective function, constraints, etc.)?
Great! I’ll now formulate and explain all five linear programming problems from your
assignment using the required structure: defining decision variables, objective function,
constraints, and non-negativity conditions. Each problem will include a clear explanation of
steps, and the final answers will be summarized in bullet points at the end.
1/22
Linear Programming Formulations for Assignment 1 (MATH 341)
manufactured and purchased. (Motors are all purchased, so no decision variable for
motors or treat them as fixed demand of 5000.)
Constraints:
(straps).
Non-negativity: Fm , Fp , Sm , Sp , Tm , Tp
≥ 0.
In this formulation, each decision variable represents how many of each component are
produced internally versus bought. The objective is to minimize cost of manufacturing or
purchasing all required components gurobi.com . The demand constraints ensure exactly 5000
of each component are available for the 5000 Knifelifter units. The capacity constraints on
cutting, milling, and shaping are linear inequalities reflecting available machine time
(converted to minutes). All variables are continuous and nonnegative, consistent with
standard LP form ocw.mit.edu gurobi.com .
2/22
Decision variables: Let x1 , x2 , x3 be the number of pounds of coffee beans 1, 2, and 3 in
the blend. (Assume a fixed total output; for example, x1 + x2 + x3 = 1000 lbs.)
Constraints:
Non-negativity: x1 , x2 , x3 ≥ 0.
This LP chooses how many pounds of each bean to blend to minimize cost while meeting
quality standards gurobi.com . The aroma and taste constraints enforce that the weighted
average ratings meet the required levels (as assumed in the problem cengage.com ). We also
include supply constraints so we do not exceed available pounds of each bean. The decision
variables are continuous, representing quantities of each bean used. This fits the standard
LP structure of a linear objective with linear constraints ocw.mit.edu gurobi.com .
working in each one-hour slot (the 11–12 slot, 12–1 slot, …, 9–10 slot).
slots
(Each full-time costs $110 per day, each part-time $7.60 per hour.)
Constraints:
where Fslot is the number of full-timers on duty in that slot. Based on their shifts:
11–12: F11−12
= x, require x + P11−12 ≥ 9.
3/22
12–1: F12−1 = x, require x + P12−1 ≥ 12.
Here the LP decides how many full-time staff in each shift and how many part-timers each
hour to minimize cost gurobi.com . We ensure enough workers each hour to meet demand,
and we enforce that part-timers do not exceed 60% of the workforce at any time. Each
constraint is linear. The result fits the LP framework of linear objective and linear constraints
ocw.mit.edu gurobi.com .
Constraints:
Blend total: x1 + x 2 + x 3 = 1.
Non-negativity: x1 , x2 , x3 ≥ 0.
4/22
This LP chooses the blend proportions to maximize steam given EPA limits. The sulfur and
dust constraints ensure the weighted average emissions do not exceed the caps (the
problem states emissions and steam are weighted averages of the coal types
file-1qzovbjb2nvnf46j3qsfwp ). The objective and constraints are all linear in xi , fitting the LP form
ocw.mit.edu gurobi.com .
Constraints:
We define production quantities for each garment type. The objective is to maximize total
profit (sum of profit per unit times units produced) gurobi.com . The constraints enforce
resource limits: fabric area, labor time, box capacity, and total cost. All equations and
inequalities are linear, yielding a standard LP model ocw.mit.edu gurobi.com .
34200.
Q2: Vars: x1 , x2 , x3 . Obj: min
0.50x1 + 0.70x2 + 0.45x3 . Constraints: 75x1 + 85x2 +
1000; xi ≤ available.
5/22
Q3: Vars: x, y (full-time counts), Pt (part-time count at each hour). Obj: min 110x +
110y + 7.6 ∑ Pt . Constraints: For each slot: (full-time on duty)+Pt ≥ required staff;
x 1 + x 2 + x 3 = 1.
362TBF ≤ 850000.
Each model follows the standard LP structure: decision variables (quantities to produce or
use), a linear objective (to minimize cost or maximize profit/steam), and linear constraints for
demands, capacities, and other limits ocw.mit.edu gurobi.com . All variables have non-negativity
constraints.
Sources
Got it! Below are all five linear programming formulations rewritten using simple variables
like x1 , x2 , …. Each problem includes:
1. Decision Variables
2. Objective Function
3. Constraints
4. Non-negativity Conditions
5. Explanation
6/22
Question 1 – Spandex Knifelifter (Minimize Cost)
Decision Variables
x1 : Frames manufactured
x2 : Frames purchased
x3 : Supports manufactured
x4 : Supports purchased
x5 : Straps manufactured
x6 : Straps purchased
Objective Function
Minimize total cost:
Constraints
Demand constraints:
x1 + x2 = 5000
x3 + x4 = 5000
x5 + x6 = 5000
Non-negativity
x1 , x2 , x3 , x4 , x5 , x6 ≥ 0
Explanation
We assign variables for manufacturing and purchasing each component. Objective is to
minimize total cost. We ensure 5000 of each part are available and that production doesn't
7/22
exceed capacity in each department.
Decision Variables
x1 : Pounds of Bean 1 used
Objective Function
Constraints
Aroma rating (weighted average ≥ 75):
Supply constraints:
x1 ≤ 500,
x2 ≤ 600,
x3 ≤ 400
x1 + x2 + x3 = 1000
Non-negativity
x1 , x2 , x3 ≥ 0
Explanation
Each variable represents the pounds of a bean used. Ratings are enforced as weighted
averages. The goal is to create a blend of 1000 lbs at minimum cost.
8/22
Question 3 – SOB Restaurant (Minimize Labor Cost)
Decision Variables
x1 : Full-time employees in 11am shift
Objective Function
Constraints
Let’s define required employees as follows:
11–12 9 x1
12–1 12 x1
1–2 8 x1 + x2
2–3 3 x1 + x2
3–4 5 x2
4–5 4 x1 + x2
5–6 6 x1
6–7 15 x1 + x2
7–8 13 x1 + x2
8–9 17 x2
9–10 7 x2
9/22
x1 + x3 ≥ 9,
x3 ≤ 1.5x1
Non-negativity
x1 , x2 , x3 , … , x13 ≥ 0
Explanation
We model full-time and part-time staffing to minimize labor cost. Each hour's demand is
met with a mix of both, but part-timers must not exceed 60% of the total.
Decision Variables
x1 : Proportion of coal type 1
Objective Function
Constraints
Sulfur limit:
x1 + x2 + x3 = 1
Non-negativity
10/22
x1 , x2 , x3 ≥ 0
Explanation
We create a blend of coals with weights summing to 1, and maximize steam output while
staying within EPA limits on emissions.
Decision Variables
x1 : Sweatshirt–F
x2 : Sweatshirt–B/F
x3 : T-shirt–F
x4 : T-shirt–B/F
Objective Function
Constraints
Fabric:
x1 + x2 + x3 + x4 ≤ 4200
Budget:
Non-negativity
11/22
x1 , x2 , x3 , x4 ≥ 0
Explanation
We decide how many of each garment to make to maximize profit, subject to fabric, time,
budget, and truck space.
s.t.
x1 + x2 = 5000, x3 + x4 = 5000, x5 + x6 = 5000
Q2: Minimize
Z = 0.50x1 + 0.70x2 + 0.45x3
s.t.
75x1 + 85x2 + 60x3 ≥ 75(x1 + x2 + x3 )
Q3: Minimize
Z = 110x1 + 110x2 + 7.6(x3 + ⋯ + x13 )
s.t.
Hourly demand constraints: x1 + x3 ≥ 9, etc.
Q4: Maximize
Z = 24000x1 + 36000x2 + 28000x3
s.t.
1100x1 + 3500x2 + 1300x3 ≤ 2500
x1 + x2 + x3 = 1
12/22
Q5: Maximize
Z = 136x1 + 148x2 + 126x3 + 138x4
s.t.
2.5x1 + 2.75x2 + 1.85x3 + 1.9x4 ≤ 720
x1 + x2 + x3 + x4 ≤ 4200
Let me know if you want this as a Word file or PDF for LMS upload!
Sure! Below are the linear programming formulations for all five problems, written clearly
and precisely using simple variables x1 , x2 , …. The structure includes:
Decision Variables
Objective Function
Constraints
Non-negativity Conditions
Decision Variables
x1 : Number of frames manufactured
Objective Function
13/22
min Z = 38x1 + 51x2 + 11.5x3 + 15x4 + 6.5x5 + 9.5x6
Constraints
Demand:
x1 + x2 = 5000
x3 + x4 = 5000
x5 + x6 = 5000
Non-Negativity
x1 , x2 , x3 , x4 , x5 , x6 ≥ 0
Decision Variables
x1 : Pounds of Bean 1 used
Objective Function
Constraints
Aroma Rating:
14/22
Taste Rating:
Supply Limits:
x1 ≤ 500,
x2 ≤ 600,
x3 ≤ 400
x1 + x2 + x3 = 1000
Non-Negativity
x1 , x2 , x3 ≥ 0
Decision Variables
x1 : Full-time employees starting at 11:00 AM
Objective Function
Constraints
Time Slot Required Full-time on duty Constraint
11–12 9 x1 x1 + x3 ≥ 9, x3 ≤ 1.5x1
1–2 8 x1 + x2
x1 + x2 + x5 ≥ 8, x5 ≤ 1.5(x1 + x2 )
2–3 3 x1 + x2
x1 + x2 + x6 ≥ 3, x6 ≤ 1.5(x1 + x2 )
15/22
Time Slot Required Full-time on duty Constraint
3–4 5 x2 x2 + x7 ≥ 5, x7 ≤ 1.5x2
4–5 4 x1 + x2
x1 + x2 + x8 ≥ 4, x8 ≤ 1.5(x1 + x2 )
5–6 6 x1 x1 + x9 ≥ 6, x9 ≤ 1.5x1
6–7 15 x1 + x2
x1 + x2 + x10 ≥ 15, x10 ≤ 1.5(x1 + x2 )
7–8 13 x1 + x2
x1 + x2 + x11 ≥ 13, x11 ≤ 1.5(x1 + x2 )
Non-Negativity
x1 , x2 , x3 , ..., x13 ≥ 0
Decision Variables
x1 : Fraction of coal type 1
Objective Function
Constraints
Sulfur:
Coal Dust:
16/22
1.7x1 + 3.2x2 + 2.4x3 ≤ 2.8
Total mix:
x1 + x2 + x3 = 1
Non-Negativity
x1 , x2 , x3 ≥ 0
Decision Variables
x1 : Sweatshirt–F
x2 : Sweatshirt–B/F
x3 : T-shirt–F
x4 : T-shirt–B/F
Objective Function
Constraints
Fabric constraint:
x1 + x2 + x3 + x4 ≤ 4200
Budget constraint:
17/22
Non-Negativity
x1 , x2 , x3 , x4 ≥ 0
Let me know if you’d like this copied into a Word document or formatted for LMS submission!
Sure! Here's the complete and detailed linear program formulation for Q3 (SOB
Restaurant Scheduling) with each and every constraint written out properly.
Decision Variables
x1 : Number of full-time employees starting at 11:00 A.M.
x3 to x13 : Number of part-time employees working during each 1-hour time slot:
x3 11:00–12:00
x4 12:00–1:00
x5 1:00–2:00
x6 2:00–3:00
x7 3:00–4:00
x8 4:00–5:00
x9 5:00–6:00
18/22
Variable Time Slot
x10 6:00–7:00
x11 7:00–8:00
x12 8:00–9:00
x13 9:00–10:00
Objective Function
Minimize total labor cost:
Constraints
Each time slot must be staffed with at least the number of required employees (full-time +
part-time):
1. 11:00–12:00
Full-time: x1
x1 + x3 ≥ 9
2. 12:00–1:00
Full-time: x1
x1 + x4 ≥ 12
3. 1:00–2:00
Full-time: x1 + x2
x1 + x2 + x5 ≥ 8
4. 2:00–3:00
Full-time: x1 + x2
19/22
x1 + x2 + x6 ≥ 3
5. 3:00–4:00
Full-time: x2
x2 + x7 ≥ 5
6. 4:00–5:00
Full-time: x1 + x2
x1 + x2 + x8 ≥ 4
7. 5:00–6:00
Full-time: x1
x1 + x9 ≥ 6
8. 6:00–7:00
Full-time: x1 + x2
x1 + x2 + x10 ≥ 15
9. 7:00–8:00
Full-time: x1 + x2
x1 + x2 + x11 ≥ 13
10. 8:00–9:00
Full-time: x2
x2 + x12 ≥ 17
11. 9:00–10:00
Full-time: x2
x2 + x13 ≥ 7
Part-time employees must not exceed 60% of the total workforce at any time. This is
equivalent to:
So we write:
20/22
1. 11:00–12:00
x3 ≤ 1.5x1
2. 12:00–1:00
x4 ≤ 1.5x1
3. 1:00–2:00
x5 ≤ 1.5(x1 + x2 )
4. 2:00–3:00
x6 ≤ 1.5(x1 + x2 )
5. 3:00–4:00
x7 ≤ 1.5x2
6. 4:00–5:00
x8 ≤ 1.5(x1 + x2 )
7. 5:00–6:00
x9 ≤ 1.5x1
8. 6:00–7:00
x10 ≤ 1.5(x1 + x2 )
9. 7:00–8:00
x11 ≤ 1.5(x1 + x2 )
10. 8:00–9:00
x12 ≤ 1.5x2
11. 9:00–10:00
x13 ≤ 1.5x2
Non-Negativity Constraints
x1 , x2 , x3 , … , x13 ≥ 0
21/22
Let me know if you want all five questions compiled in one document or if you'd like a
downloadable version.
22/22