Linear Programming - Lesson One
Linear Programming - Lesson One
KAZIBA STEPHEN
20th January 2025
Reflection
● Imagine you have 10 hours this weekend, and you want to split your time
between studying for an important exam and helping a friend with a project.
Studying improves your grade, while helping your friend builds your
relationship. However, you can’t spend more than 10 hours total, and you
want to achieve the best balance between both activities.
● How would you decide how many hours to allocate to each task to get the
best outcome?
Competency
● Feasible region
● Objective function/Linear function
● Variable
● Constraint
● Optimum solution
● Decision variable
● Maximization
● Minimization
A school has prepared to take students on a tour and
has two transport options to choose from. Which mode
of transport would you recommend, and why?
Scenario
Mrs. Nicole is preparing for the new school term and wants to ensure Tasks
her son Frank has everything he needs. She has a total of UGX 100,000 ● What two things will determine how Mrs.
to cover both snacks and pocket money for him. Each snack pack costs
UGX 10,000, and Mrs. Nicole wants to provide at most 6 snack packs. Nicole will spend the money?
However, Mrs. Nicole believes pocket money is more essential for
● What conditions is Mrs. Nicole working on?
Frank than snacks. She plans to allocate more money for pocket money ● If Mrs. Nicole buys 4 snacks ,how much
than she spends on snacks. With this in mind, she aims to balance her
spending while staying within her budget and ensuring Frank is well- pocket money will Frank receive .
provided for. ● What formula have you used to find the
Can you help Mrs. Nicole decide how many snack packs to buy and how pocket money to be given to frank
much pocket money to give Frank?
● Linear programming is a mathematical method used to determine the best or optimal solution to
a problem that involves making decisions about how to allocate limited resources effectively to
achieve a specific goal or set of objectives.
● Linear programming (LP) or Linear Optimisation may be defined as the problem of maximizing
or minimizing a linear function that is subjected to linear constraints.
Components of Linear Programming
< > ≥ ≤
• Greater than • Greater than or equal to • Less than or equal to
• Less than • More than • At least • At most
• Fewer than • Exceeds • Minimum • Maximum
• Lower than • Larger than • Not less than • Not more than
• Smaller than • Longer than • Not fewer than • Not greater than
• Shorter than • Above • Not below • Does not exceed
• Below • Not smaller than • Not above
Steps of approaching the LPI
● The budget for purchasing ingredients for the dishes is UGX 2,000,000.
● Each vegetarian dish costs UGX 100,000 to prepare, while each non-
vegetarian dish costs UGX 150,000.
● The restaurant wants to maximize the nutritional value of the menu. Each
vegetarian dish provides 8 nutrition units, and each non-vegetarian dish
provides 10 nutrition units.
Activity 3
A furniture company has Shs 120,000 to invest in
making tables and chairs. It costs Shs 20,000 to make
each table and Shs 12,000 to make each chair. The
company has a storage space of at least 8 items
altogether. Each table yields a profit of Shs 80,000 and
each chair a profit of Shs 45,000.
A school has organized a Geography study tour for 90 students.Two types of vehicles are needed;taxis
and costa buses.The maximum capacity of the taxis is 15 passengers while that of the costa bus is 30
passengers.The number of taxis will be greater than the number of costa buses.The number of taxis will
be less than five.The cost of hiring a taxis is Shs60,000 while that of the costa is Shs 100,000.There is only
Shs 600,000 available.
Write mathematical statements that show the relation between the number of taxis and the number of
costa buses
Ex 2
You have friends who rear cows and goats. During the festive season, they want to sell at most
10 of their cows and at least 8 of their goats. They also want to ensure that the number of
goats they sell are less than twice the number of cows. They also do not want to sell more than
20 animals all together. They wish to maximise sales by selling each goat at Shs200,000/= and
each cow at Shs1.5 millions but they do not know the number of goats and cows to sell to fulfil
their wish.
● Task:
(a) write mathematical statements that show the relation between the cows and goats.