01 Intro Linier Programming
01 Intro Linier Programming
1. Optimization concepts
2. Linear programming
3. Simplex algorithm
4. Transportation and assignment problem
5. Network models
6. Integer programming
References
◉ Homework 20%
◉ Quiz 40%
◉ Final exam 40%
Introduction
Introduction to Modeling
Decision variables are the variables whose values under our control
and influence the performance of the system. It is always involved with
a trade off. The variables type can be continuous, discrete/integer,
binary.
Mary wants to find the cheapest diet in a such a way as to obtain all the
nutritional ingredients she needs per day. Her nutritional requirements
are 55 gr of protein per day and 400 mg of calcium per day. She can
obtain the nutrients from:
Name Serving Protein Calcium Serving Price
Size (gr) (mg)
Oatmeal 28 gr 4 2 3
Eggs 2 13 50 10
Milk 237 cc 8 120 8
Also, she can have at most 4 servings of oatmeal per day, 2 servings of
eggs per day, and 5 servings of milk per day.
Linear
Programming
Definitions
Subject to
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≤ 𝑏1 (constraint 1)
𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥𝑛 ≤ 𝑏2 (constraint 2)
…
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 ≤ 𝑏𝑚 (constraint m)
𝑥1 , 𝑥2 , … , 𝑥𝑛 ≥ 0
LP assumptions
1. Proportionality
The criterion and the constraints expand or contract proportionally
to the level of each activities
2. Additivity
The total contribution of all activities is identical to the sum of the
contribution for each activity individually
3. Certainty
Each parameter is known with certainty
4. Divisibility
Each decision variable is allowed to assume fractional values
Formulation: diet problem
Mary wants to find the cheapest diet in a such a way as to obtain all the
nutritional ingredients she needs per day. Her nutritional requirements
are 55 gr of protein per day and 400 mg of calcium per day. She can
obtain the nutrients from:
Name Serving Size Protein (gr) Calcium (mg) Serving Price
Oatmeal 28 gr 4 2 3
Eggs 2 13 50 10
Milk 237 cc 8 120 8
Also, she can have at most 4 servings of oatmeal per day, 2 servings of
eggs per day, and 5 servings of milk per day.
Formulation: blending problem
The feasible region for an LP is the set of all points that satisfies all
the LP’s constraints and sign restrictions.
min 𝑧 = 50 𝑥1 + 100𝑥2
Subject to
7𝑥1 + 2𝑥2 ≥ 28
2𝑥1 + 12𝑥2 ≥ 24
𝑥1 , 𝑥2 ≥ 0
Graphical solution - 2
max 𝑧 = 3 𝑥1 + 2𝑥2
Subject to
1 1
𝑥 + 60 𝑥2 ≤ 1
40 1
1 1
𝑥 + 50 𝑥2 ≤ 1
50 1
𝑥1 , 𝑥2 ≥ 0
Graphical solution - 3
max 𝑧 = 3 𝑥1 + 2𝑥2
Subject to
1 1
𝑥 + 60 𝑥2 ≤ 1
40 1
1 1
𝑥 + 50 𝑥2 ≤ 1
50 1
𝑥1 ≥ 30
𝑥2 ≥ 20
Graphical solution - 4
The LP is unbounded
max 𝑧 = 2𝑥1 − 𝑥2
Subject to
𝑥1 − 𝑥2 ≤ 1
2𝑥1 + 𝑥2 ≥ 6
𝑥1 , 𝑥2 ≥ 0
thankyou