Pizza Pi Student
Pizza Pi Student
Anytime a business or corporation has more than one employee and more than one shift there is a scheduling problem. A scheduling problem
involves determining the number of employees required to get the work done while minimizing the total daily wages. Many businesses require
employees with different skills, but some employees may be able to do more than one job. The process of matching up individuals with tasks is
called manpower planning. This process becomes more complex when you have to determine a specific work schedule. The most complex
manpower planning problem involves the airlines because they have to coordinate flight crews, ground crews, ticket agents and airport staff for
flights around the world. Problems of this sort can be solved by a linear programming process.
Sample problem:
A new Pizza π outlet sells pizza for carry out, dining in and frozen pizzas to local groceries and gourmet shops. The Pizza π is open from noon to
midnight each day. Toni Pepperoni, the manager of the outlet, needs to figure out how many people should be scheduled to work each of the two
8 hour shifts. The daytime shift is from noon to 8 p.m., and the evening shift is from 4 p.m. to midnight. The two shifts overlap during the busy
dinner period, which starts at about 4 p.m. and continues until about 8 p.m. Based on information about the average number of pizzas ordered at
other outlets, Toni has estimated the number of employees she needs in each four hour period to supply those pizzas:
Employees are paid $5 per hour for hours worked between noon and 8 p.m. The pay per hour between 8 p.m. and midnight is $7 per hour. Toni
must decide how many people to schedule on the noon to 8 p.m. shift and how many on the 4 p.m. to midnight shift. There must be enough
workers on duty to complete the workload in each four hour period and the goal is to minimize the amount spent on daily wages. Answer the
following:
2 Recommend to Toni the number of workers she should schedule each shift. _____________________________
__________________________________________________________________________________________
Completing the questions which follow will determine if your recommendation is a workable solution for Toni. You will also find a solution
which minimizes her cost, and will provide enough workers to complete all tasks.
4 Identify all of the variables in this problem. (Hint: read ahead if you get stuck here.)
__________________________________________________________________________________________
1
Two of the variables you should have identified are the number of people working the day shift and the number of people working the
evening shift. These are called decision variables. Decision variables: a set of All linear programming problems have
decision variables. Decision variables should variable quantities completely
completely describe the decisions to be made. The two decision variables in the Pizza π describing the decisions to be made problem can
be represented by:
D = number of people scheduled from noon to 8 p.m.; E = number of people scheduled from 4 p.m. to midnight.
5 If three people work the day shift and five people work the evening shift, altogether how much will they make?
_________________________________________________________________________________________
6 Write an expression to represent the total daily wages paid to employees if Toni schedules D workers for the day shift,
and E workers for the evening shift? Total daily wages = _______________________________________
Answering the following questions will help you to understand what is meant by a constraint.
Constraints 7 Toni must have at least workers scheduled from noon to 4 p.m.; therefore, D _ _______.
restrictions on the values of 8 Toni must have at least workers scheduled from 8 p.m. to midnight, so E _
________. one or more of the decision 9 Write an inequality to show the minimum number of workers needed
variables
from 4 p.m. to 8 p.m.: Hint: Both day and evening shifts are working.
__________________________________.
These inequalities represent restrictions on the decision variables D and E. These restrictions are called constraints.
The optimal solution is just the best solution to a particular problem. In this case, the values of D and E which satisfy all of the constraints and
minimize the total daily wages paid to employees is the optimal solution. You may recall that the objective function, total daily wages = 40D +
48E, defines this cost, where D represents the number of employees working the day shift, and E represents the number of employees working
the evening shift. So how do we find the optimal solution for this problem? In other words, what is the lowest possible total daily wages that still
meets all of the constraints?
First, we need to find all of the values of the decision variables D and E which satisfy all three of the constraints:
One way to do this is to graph each inequality on the same coordinate system. We need to
decide which variable to plot on each axis. Suppose we agree to graph D on the horizontal axis
and E on the vertical axis. On a sheet of your own graph paper, graph each of the three
2
Workforce Planning at Pizza p's
inequalities above and lightly shade the region(s) of the coordinate system containing all of the Feasible Region: the set of all points
satisfying all three inequalities. points which satisfy all of the constraints
The portion of the graph which you shaded is called the feasible region. The feasible region
contains all of the points which could be the optimal solution, because they satisfy all of the
constraints.
10 How many points lie in the feasible region? _________________________________
11 Write the coordinates of three points that lie in the feasible region. Include one point that lies on the boundary of the
feasible region. ( , ); ( , ); ( , ) Also mark and label the points you choose on your graph.
13 Does the point (6,8) lie in the feasible region? ______Why or why not? _________________________________ The Search for
Optimality - Finding the Best Schedule:
Now that we know the location of all points satisfying the constraints (the feasible region), we can begin to look for the optimal solution. The
optimal solution must be one of the points in the feasible region. But which point? Let's begin by considering a point that we know is feasible.
The point (9,10) lies in the feasible region.
If there are 9 day employees and 10 evening employees, then we can use the objective function to find the total daily wages of these employees:
Total daily wages = 40 D + 48 E = 40(9) + 48(10) = 840.
15 Find the total daily wages for each of the three points in the feasible region which you identified in # 11.
17 Are there any points in the feasible region that produce total daily wages lower than $840? _______________
19 What were the total daily wages for that point? ____________________
To help find the optimal solution, we will use the graph of the line 40D + 48 E = 840. Add the graph of this equation to your graph of the feasible
region, and label it line l. Next, using your answer from #18, add the graph of
40 D + 48 E = your lowest total daily wages to the previous graph and label it line m.
Check with two of your neighbors to see if they have a similar result. (Recall that parallel lines have the same slope.)
Now compare the structure of these two equations:
Angelina used the point (12,9) to generate total daily wages of $912.
21 What equation did she use to determine these total daily wages? ______________________________________
Michael used the point (5,5) to compute total daily wages of $440. Add the graph of Michael's line to your graph
25 Could Michael's line contain the optimal solution? ________ Why or why not? ______________________________
On your graph, try to draw the line that represents the optimal solution.
Remember that the "optimal line" will intersect the feasible region, yet Optimal Solution: the set of values of the decision have
the lowest possible total daily wages. Notice that any other line variables which satisfies all of the constraints and
parallel to the optimal line which has achieves the goal of minimizing (or maximizing) the lower total daily wages fails to intersect the
objective function
feasible region, while
any other line parallel to the optimal line which intersects the feasible region has higher total daily wages.
The optimal solution occurs at the point where the optimal line intersects the feasible region. In this case, that point has the coordinates (8,8).
4
Workforce Planning at Pizza p's
Mathematics for Decision Making in Industry and Government - A Public Awareness Project of
INFORMS