Manufacturing problems · Mathematics Class 11–12 | StemPy Lab
Course 19.3·Lesson 1 of 3
Manufacturing problems
A manufacturing problem asks how many of two products to make so that the profit is greatest, when machine hours or materials are limited. To solve it, name the two quantities as x and y, write the profit as the objective function, turn each limit into an inequality, and add x≥0
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
turn a manufacturing story into an objective function and constraints;
draw the feasible region and find the best plan at a corner;
say the answer in words, with units, and check it with linprog.
Four steps from a story to a plan
Every word problem of this chapter is solved in the same four steps.
Name the unknowns. Let x and y be the numbers of the two things we choose. Say what they count and in what unit.
Write the objective. This is the profit, or the cost, as a formula in x and y.
Write the constraints. Each limit on a resource gives one inequality. Add x≥0 and y≥0, since we cannot make a negative number of tables.
Solve and read. Draw the region, find the corners, work out the objective at each, choose the best, and write the answer in the words of the story.
A worked example
A workshop makes tables and chairs. A table needs 2 hours of cutting and 2 hours of finishing. A chair needs 3 hours of cutting and 1 hour of finishing. The cutting machine is available for 24 hours a week and the finishing bench for 16 hours a week. A table earns a profit of 50 pounds and a chair earns 40 pounds. How many of each should be made each week to earn the most?
The unknowns. Let x be the number of tables and y the number of chairs made in a week.
The objective. The profit in pounds is Z=50x+40y. We want it as large as possible.
The constraints. Cutting: 2x+3y≤24. Finishing: 2x+y≤16. Also x≥0 and y≥0.
The corners. The lines 2x+3y=24 and 2x+y=16 meet where 2y=8, so y=4 and x=6. The other corners are (0,0), (8,0) and (0,8).
A graph of the workshop region, with tables on the x axis and chairs on the y axis. The region 2x + 3y at most 24, 2x + y at most 16, x and y at least 0 is shaded light blue. Its corners are (0, 0), (8, 0), (6, 4) and (0, 8), each marked with a dot and its coordinates. A list at the top right gives the profit at the corners: 0 pounds, 400 pounds, 460 pounds which is the best, and 320 pounds. The corner (6, 4) is red, with a red dashed line for a profit of 460 pounds touching the region only there.
The values. At (0,0), Z=0. At (8,0), Z=400. At (6,4), Z=300+160=460. At (0,8), Z=320.
The answer. The best plan is 6 tables and 4 chairs a week. The profit is 460 pounds.
Check that the plan fits the limits. Cutting uses 2(6)+3(4)=24 hours, and finishing uses 2(6)+4=16 hours. Both machines are used for their full time. That is why the best corner is where the two lines meet.
Practise with new numbers
Try it in Python
The program lists the profit at each corner. Then it asks linprog for the best plan as a check. Remember that linprog minimises, so it is given the negative profit.
Common mistakes
Writing the constraints the wrong way round. A table needs 2 hours of cutting, so the cutting rule has 2x, not 3x.
Forgetting x≥0 and y≥0. They are part of the problem.
Mixing up the objective and a constraint. Profit is what we maximise. Hours are what we are limited by.
Answering with numbers only. Say 6 tables and 4 chairs, and give the profit in pounds.
Remember these
Name the unknowns, write the objective, write the constraints, then solve.
Each limit on a resource is a ≤ inequality. Add x≥0 and y≥0.
The best plan is at a corner. Often it uses all of the scarce resources.
Answer in words, with units. Check the plan against every limit.
References
NCERT, Mathematics Textbook for Class XII, Part II, Chapter 12, Linear Programming (manufacturing problems).
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A table needs 2 hours of cutting and a chair needs 3. There are 24 hours of cutting. Write the cutting rule.
A table earns 50 pounds and a chair earns 40 pounds. Write the profit when x tables and y chairs are made.
In the worked example, what is the profit of the plan (7,1)? Is the plan allowed?
Why is the best plan often at the meeting point of two limits?
The worked example gives x=6.4 in another version. What should you ask before giving the answer?
Enroll free in Linear Programming Problems from Words
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.