MPEN 584 Lesson 2
MPEN 584 Lesson 2
(ii). City planners may need to decide where to build new fire stations in
order to efficiently serve their citizens.
Suita Inc manufactures four products, requiring time on two machines and two
types of labor (skilled and unskilled). The amount of machine time and labor (in
hours) needed to produce a unit of each product and the sales prices in dollars per
unit of each product are given in the following table:
Each month, 700 hours are available on machine 1 and 500 hours on machine 2.
Each month, Suita Inc can purchase up to 600 hours of skilled labor at $8 per hour
and up to 650 hours of unskilled labor at $6 per hour. Determine how much of each
product it should produce each month and how much labor to purchase in order to
maximize its profit (i.e. revenue from sales minus labor costs).
Formulation: variables, objective function, constraints
Objective Function
Constraints
Initialization
Relaxation
Example
Consider the following graph, and find the shortest
path using the bellman ford algorithm.
Solution:
Initially, the distance of each vertex will be
infinity from the source vertex and source-
to-source distance value would be zero. So,
considering A to be source vertex