23MT2004 MPTutorial Final
23MT2004 MPTutorial Final
tio
da
n
ou
TUTORIAL WORKBOOK
lF
23MT2004 - MATHEMATICAL PROGRAMMING
na
tio
uca
Ed
ah
ai
mh
ks
La
u
er
on
K
TUTORIAL WORKBOOK
n
tio
da
n
ou
lF
na
tio
ca
u
Ed
ah
STUDENT NAME
ai
REG.NO
m
YEAR
h
SEMESTER
ks
SECTION
La
FACULTY
u
er
on
K
Mathematical Programming
b In-Tutorial: The In-Tutorial section takes place during the actual Tutorial period. The
First hour of the Tutorial period can be used to resolve any problems the students might
have experienced. The intent is to give constructive feedback so that students leave the Tu-
torial hour with working and solving problems - a significant accomplishment on their part.
c Post-Tutorial: The last phase of each Tutorial is a homework assignment that is done fol-
lowing the Tutorial period. In the Post-Tutorial, students analyze the efficiency or utility of
n
tio
a given system call. Each Post-Tutorial exercise should take roughly 120 minutes to com-
plete.
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
3
2024-25 ODD SEMESTER TUTORIAL CONTINUOUS EVALUATION
SL.NO DATE TUTORIAL TITLE PRE- IN- POST- VIVA- TOTAL FACULTY
TUTORIAL TUTORIAL TUTORIAL VOCE (5M) (50M) SIGNA-
(10M) (20M) (15M) TURE
K
1 Formulation of LPP and Graphical Method
on
er
2 Simplex Method and Principle of Duality
u
La
3 Transportation Problem
ks
hm
4 Gomory’s Cut-plane Method
ai
ah
5 Branch and Bound Method
Ed
6 Dynamic Programming
uc
at
7 Quadratic Optimization using Wolfe’s method
io
na
lF
8 Quadratic Optimization using Beale’s Method
ou
9 Geometric Programming Problem
nd
at
10 Ant Colony Optimization (ACO)
io
n
11 Particle Swarm Optimization (PSO)
12 Genetic Algorithm
Contents
1 Formulation of LPP 7
1.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
o n
1.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ti
1.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
da
2 Solving LPP 23
un
2.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Fo
2.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
l
3 Transportation problem
na 43
io
3.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
t
3.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
ca
3.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
du
4 Gomory’s Method 53
E
4.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
ah
4.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
ai
hm
5.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
5.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
La
6 Dynamic Programming 71
u
6.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
er
6.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
on
6.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
K
7 Quadratic Optimization - I 79
7.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
8 Quadratic Optimization-II 83
8.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
8.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
8.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
5
Mathematical Programming CONTENTS
9 Geometric Programming 89
9.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
9.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
9.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
n
12 Genetic Algorithm 109
tio
12.1 PRE-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
da
12.2 IN-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
12.3 POST-TUTORIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
n
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
6
Tutorial 1
n
tio
da
Date of the Session: . . . . . . . . . . . . . . . . . .
n
ou
lF
Learning outcomes:
na
• Understanding the process of formulating a given problem in linear form.
tio
ca
• This requires defining the decision variables of the problem, establishing inter-relationship
u
• Understanding the process of solving a given LPP using graphs will be discussed.
ah
ai
1.1 PRE-TUTORIAL
h m
7
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
8
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
9
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
1.2 IN-TUTORIAL
1. A hotel has requested a manufacturer to produce pants and jackets for their boys. For
materials, the manufacturer has 750m2 of cotton textile and 1000m2 of silk. Every pair of
pants (1 unit) needs 2m2 of silk and 1m2 of cotton. Every jacket needs 1.5m2 of cotton and
1m2 of silk. The price of the pants is fixed at $50 and the jacket, $40. What is the number of
pants and jackets that the manufacturer must give to the hotel so that these items obtain a
maximum sale? Formulate the problem using mathematical modeling of LPP and define the
objective function?
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
10
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
2. A transport company has two types of trucks, Type A and Type B. Type A has refrigerated
capacity of 20m3 and a non-refrigerated capacity of 40m3 while Type B has refrigerated ca-
pacity of 30m3 and non-refrigerated capacity of 30m3 . A grocer needs to hire trucks for the
transport of 3000m3 of refrigerated stock and 4000m3 of non-refrigerated stock. The cost per
kilometer of a Type A is $30 and $40 for Type B. How many trucks of each type should the
grocer rent to achieve the minimum total cost? Formulate the problem using mathematical
modeling of LPP and define the objective function?
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
11
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
3. A hotel has requested a manufacturer to produce pillows and blankets for their room service.
For materials, the manufacturer has 750m2 of cotton textile and 1000m2 of silk. Every pillow
needs 2m2 of cotton and 1m2 of silk. Every blanket needs 2m2 of cotton and 5m2 of silk.
The price of the pillow is fixed at $5 and the blanket is fixed at $10.What is the number of
pillows and blankets that the manufacturer must give to the hotel so that these items obtain
a maximum sale? Formulate and Solve using Python.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
12
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
13
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
4. An Industry makes two items of P and Q by using two devices X and Y. Processing time
requires 50 hrs for item P on device X and 30 hrs requires on device Y. Processing time
requires 24 hrs for item Q on device X and 33 hrs requires on device Y. At starting of the
current week, 30 pieces of A and 90 pieces of B are available. Processing time that is available
on device X is predict to be 40 hrs and on device Y is predict to be 35 hrs. Demand for P
in the current week is predict to be 75 pieces and for Q is predict to be 95 pieces. Industry
policy is to maximize the combined sum of the pieces of P and the pieces of Q in stock at the
end of the week. Formulate the problem of deciding how much of each item to make in the
current week as a linear program. Obtain the solution using graphical method.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
14
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
Maximize: P = 7x + 12y
2x + 3y ≤ 6
3x + 7y ≤ 12
Solution:
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
15
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
n
tio
nda
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
16
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
1.3 POST-TUTORIAL
1. What are the Advantages of Linear Programming Problem?
Solution:
n
tio
da
2. Applications of Linear Programming.
n
Solution:
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
17
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
3. A company owns two flour mills viz. A and B, which have different production capacities
for high, medium and low-quality flour. The company has entered a contract to supply
flour to a firm every month with at least 8, 12 and 24 quintals of high, medium and low
quality respectively. It costs the company Rs.2000 and Rs.1500 per day to run mill A and B
respectively. On a day, Mill A produces 6, 2 and 4 quintals of high, medium and low-quality
flour, Mill B produces 2, 4 and 12 quintals of high, medium and low-quality flour respectively.
How many days per month should each mill be operated in order to meet the contract order
most economically? Formulate the LPP.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
18
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
4. An advertising company plans its advertising strategy in three different media- television,
radio and magazines. Following data have been obtained from market survey: The com-
pany wants to spend no more than Rs. 4,50,000 on advertising. Following are the set of
requirements that must be met:
n
tio
(a) At least 1 million exposures take place among female customers.
da
(b) Advertising on magazines be limited to Rs. 1,50,000.
n
(c) The number of advertising units on television and radio should each be between 5 and
ou
10.
19
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
n
tio
nda
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
20
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
5. A cabinet maker makes benches and desks. Each bench can be sold for a profit of $30 and
each desk for a profit of $10. The cabinetmaker can afford to spend up to 40 hrs per week
working and takes 6 hrs to make a bench and 3 hrs to make a desk. Customer demand
requires that he makes at least 3 times as many desks as benches. Benches take up 4 times as
much storage space as desks and there is room for at most four benches each week. Formulate
this problem as a linear programming problem and solve it graphically.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
21
Mathematical Programming TUTORIAL 1. FORMULATION OF LPP
n
tio
nda
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
22
Tutorial 2
n
tio
Date of the Session: . . . . . . . . . . . . . . . . . .
da
n
Learning outcomes:
ou
lF
• Understanding the key terms: feasible solution, feasible region and optimal solution.
na
tio
• Understanding the limitations of graphical method and introduce the Simplex algorithm.
u ca
decision variables.
ah
2.1 PRE-TUTORIAL
u
er
23
Mathematical Programming TUTORIAL 2. SOLVING LPP
2. What do you mean by feasible region, feasible solution and optimal solution?
n
tio
n da
ou
lF
na
tio
3. State the general rules for formulating a dual LPP from its primal?
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
24
Mathematical Programming TUTORIAL 2. SOLVING LPP
2.2 IN-TUTORIAL
1. Consider the following linear programming problem
Maximize: P = 7x + 12y
2x + 3y ≤ 6
3x + 7y ≤ 12
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
25
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
26
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
27
Mathematical Programming TUTORIAL 2. SOLVING LPP
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
m
3. State the dual for the following LPP and hence solve LPP.
h
ks
La
x1 , x2 ≥ 0
K
Solution:
28
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
29
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
30
Mathematical Programming TUTORIAL 2. SOLVING LPP
4. A XYZ company is hired by a retailer to transport goods from its store rooms in A and B
to its outlet stores in C and D. The XYZ company is contracted to deliver 30 vehicles each
month to deliver goods. The company determines that it will need to send at least 12 of the
vehicles to the ’C’ location and at least 13 vehicles to the ’D’ location. At least 15 vehicles
can come from the A storeroom and at least 20 vehicles can come from the ’B’. The truck
company wants to minimize the number of miles placed on its trucks. How many trucks
should the send out from each location and to which outlets should they send them?
A B
C 24 ml 31 ml
D 20 ml 38 ml
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
31
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
32
Mathematical Programming TUTORIAL 2. SOLVING LPP
2.3 POST-TUTORIAL
1. Solve LPP using the simplex method.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
33
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
34
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
35
Mathematical Programming TUTORIAL 2. SOLVING LPP
2. Find its dual and obtain the optimal solution for minimization problem.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
36
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
37
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
38
Mathematical Programming TUTORIAL 2. SOLVING LPP
3. A producer of Healthy food makes two important and secret ingredients that goes into their
human food, named as a Healthy Man and Common Man. Each kg of Healthy Man contains
300 g of vitamins, 400 g of protein, and 100 g of carbs. Each kg of common man contains 100
g of vitamins, 300 g of protein, and 200 g of carbs. Guidelines for minimum nutritional that
require a mixture made from these ingredients contain at least 900 g of vitamins, 2400 g of
protein, and 800 g of carbs. Healthy Man costs $2 per kg to produce and Common Man costs
$1.25 per kg to produce. Find the number of kgs of each ingredient that should be produced
in order to minimize cost. Obtain its Dual and solve.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
39
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
40
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
41
Mathematical Programming TUTORIAL 2. SOLVING LPP
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
42
Tutorial 3
Transportation problem
n
tio
Learning outcomes:
da
• Understanding the problem of transporting/shipping the commodities from the industry to
n
the destinations with the least possible cost while satisfying the supply and demand limits.
ou
lF
3.1 PRE-TUTORIAL na
1. List out different types of transportation methods.
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
43
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
2. List out the steps involved in solving the Transportation problem using North-West corner
rule?
n
tio
n da
ou
lF
na
3. List out the steps involved in solving the Transportation problem using Row Minimum
tio
method.
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
44
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
3.2 IN-TUTORIAL
1. Luminous lamps have three factories - F1, F2, and F3 with production capacity 30, 50,
and 20 units per week respectively. These units are to be shipped to four warehouses W1,
W2, W3, and W4 with requirement of 20, 40, 30, and 10 units per week respectively. The
transportation costs (in Rs.) per unit between factories and warehouses are given below.
Solve Transportation problem using NW corner rule.
Warehouse
Factory Supply
W1 W2 W3 W4
F1 1 2 1 4 30
F2 3 3 2 1 50
F3 4 2 5 9 20
Demand 20 40 30 10
n
Solution:
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
45
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
2. The Ushodaya departmental store has three plants located throughout a state with produc-
tion capacity 80, 60 and 70 kilo grams of rice. Each day the firm must furnish its four retail
shops R1, R2, R3, R4 with at least 40, 60, 50, and 60 gallons respectively. The transportation
costs (in Rs.) are given below. Solve Transportation problem using Row Minimum method.
Retailshop
Store Supply
1 2 3 4
1 3 5 7 6 80
2 2 5 8 2 60
3 3 6 9 2 70
Demand 40 60 50 60
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
46
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
47
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
3.3 POST-TUTORIAL
:
n
tio
HYD 45 30 60 30
CHE 30 90 20 20
da
Demand 5 20 40
n
ou
lF
Solution:
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
48
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
49
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
2. The distribution manager of a company needs to minimize global transport costs between a
set of three factories (supply points) S1, S2, and S3, and a set of four distributors (demand
points) D1, D2, D3, and D4. The following table shows the transportation cost from each
supply point to every demand point, the supply of the product at the supply points, and the
demand of the product at the demand points. Solve Transportation problem using Column
Minimum method in Linear Programming
F/D D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14 34
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
50
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
51
Mathematical Programming TUTORIAL 3. TRANSPORTATION PROBLEM
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
52
Tutorial 4
n
tio
Learning outcomes:
da
• If the optimal solution is integers, then problem is solved. Otherwise, add Gomory’s constraint
n
(cut) is added to optimal solution Now new problem is solved using dual simplex method The
ou
method terminates as soon as optimal solution become integers.
lF
na
4.1 PRE-TUTORIAL
tio
53
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
4.2 IN-TUTORIAL
1. Find solution using integer simplex method (Gomory’s cutting plane method)
MaximizeZ = x1 + x2
subject to
3x1 + 2x2 ≤ 5
x2 ≤ 2
and x1 , x2 are non-negative integers
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
54
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
55
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
56
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
4.3 POST-TUTORIAL
1. Consider the following linear integer programming problem
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
57
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
58
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
59
Mathematical Programming TUTORIAL 4. GOMORY’S METHOD
n
tio
da
n
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
60
Tutorial 5
n
tio
Learning outcomes:
da
• Understanding to do the process of solving branch and bound method.
n
ou
• Understanding to do the process of Gomory’s cutting plane method.
lF
na
5.1 PRE-TUTORIAL
tio
ca
61
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
5.2 IN-TUTORIAL
1. Discrete Optimization using Cutting Plane method Solve the integer programming problem
Where x1 , x2 , x3 ≥ 0 and integer. Get the optimal solution as an integer value using Gomory’s
cutting plane method.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
62
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
63
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
Solution:
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
64
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
65
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
66
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
5.3 POST-TUTORIAL
1. Explain Gomory’s method for solving an Integer Programming Problem and hence solve the
following,
Solution:
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
67
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
68
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
69
Mathematical Programming TUTORIAL 5. BRANCH AND BOUND METHOD
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
70
Tutorial 6
Dynamic Programming
n
tio
da
6.1 PRE-TUTORIAL
n
ou
lF
1. What is Dynamic Programming?
na
tio
u ca
Ed
ah
ai
h m
ks
La
71
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
6.2 IN-TUTORIAL
1. Maximize the profit for the 0/1 knapsack problem using dynamic programming when W=10:
Profit Weight
10 5
40 4
30 6
50 3
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
72
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
6.3 POST-TUTORIAL
1. Explain the concept of travelling salesman problem with real-time example
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
73
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
2. Given a set of cities and the distance between every pair of cities, the problem is to find the
shortest possible route that visits every city exactly once and returns to the starting point.
n
tio
Solution:
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
74
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
75
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
n
tio
nda
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
76
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
77
Mathematical Programming TUTORIAL 6. DYNAMIC PROGRAMMING
n
tio
nda
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
78
Tutorial 7
n
tio
Date of the Session: . . . . . . . . . . . . . . . . . .
da
Learning outcomes:
n
ou
• Understanding conic duality and finding the duality of given problem.
7.1 PRE-TUTORIAL
u
Ed
79
Mathematical Programming TUTORIAL 7. QUADRATIC OPTIMIZATION - I
7.2 IN-TUTORIAL
1. Use Wolfe’s method for solving quadratic programming problem.
Solution:
n
tio
n da
ou
lF
na
tio
uca
Ed
ah
ai
h m
ks
La
u
er
on
K
80
Mathematical Programming TUTORIAL 7. QUADRATIC OPTIMIZATION - I
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
81
Mathematical Programming TUTORIAL 7. QUADRATIC OPTIMIZATION - I
7.3 POST-TUTORIAL
1. Illustrate the complexity of the steps involved in Wolfe’s method.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
82
Tutorial 8
n
tio
Date of the Session: . . . . . . . . . . . . . . . . . .
da
Learning outcomes:
n
ou
lF
• Understanding Kuhn tucker conditions na
• Understanding the process of Beale’s method
tio
ca
8.1 PRE-TUTORIAL
u
Ed
83
Mathematical Programming TUTORIAL 8. QUADRATIC OPTIMIZATION-II
8.2 IN-TUTORIAL
1. Use Beale’s method for solving quadratic programming problem.
Solution:
n
tio
n da
ou
lF
na
tio
uca
Ed
ah
ai
h m
ks
La
u
er
on
K
84
Mathematical Programming TUTORIAL 8. QUADRATIC OPTIMIZATION-II
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
85
Mathematical Programming TUTORIAL 8. QUADRATIC OPTIMIZATION-II
8.3 POST-TUTORIAL
1. Compute the first iteration and identify the entering and leaving variables:
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
86
Mathematical Programming TUTORIAL 8. QUADRATIC OPTIMIZATION-II
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
87
Mathematical Programming TUTORIAL 8. QUADRATIC OPTIMIZATION-II
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
88
Tutorial 9
Geometric Programming
n
tio
Learning outcomes:
da
n
ou
1. Introduce Posynomials, and arithmetic mean - geometric mean inequality.
lF
na
tio
2. Teach optimization of posynomial objective functions using Geometric Programming.
u ca
Ed
9.1 PRE-TUTORIAL
u
er
89
Mathematical Programming TUTORIAL 9. GEOMETRIC PROGRAMMING
n
9.2 IN-TUTORIAL
tio
da
1. Determine the optimum pipe diameter which results in minimum first plus operating cost for
n
100 m of pipe. The objective function is to determine the optimum pipe diameter for highest
ou
discharge.
lF
32 ∗ 1012
y = 160D +
D5
na
tio
u ca
Ed
ah
ai
h m
ks
La
Solution:
u
er
on
K
90
Mathematical Programming TUTORIAL 9. GEOMETRIC PROGRAMMING
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
91
Mathematical Programming TUTORIAL 9. GEOMETRIC PROGRAMMING
9.3 POST-TUTORIAL
1. Using the concept of Geometric Programming
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
92
Mathematical Programming TUTORIAL 9. GEOMETRIC PROGRAMMING
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
93
Mathematical Programming TUTORIAL 9. GEOMETRIC PROGRAMMING
n
tio
nda
ou
lF
na
tio
uca
Ed
ah
ai
hm
ks
La
u
er
on
K
94
Tutorial 10
n
tio
Learning outcomes:
da
• Understanding different approaches for solving problems of Ant Colony Optimization (ACO)
n
ou
• Applying various approach to solve Ant Colony Optimization (ACO).
lF
na
10.1 PRE-TUTORIAL
tio
ca
95
Mathematical Programming TUTORIAL 10. ANT COLONY OPTIMIZATION
10.2 IN-TUTORIAL
1. An ANT is at a distance of 5m from the TREE 15m from CAR and 4m from a DOLL, the
distance between TREE and the CAR is 4m, CAR and DOLL is 1m, DOLL and TREE is
8m. Solve using Ant Colony Optimization to find the shortest route to travel through tree,
car and doll.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
96
Mathematical Programming TUTORIAL 10. ANT COLONY OPTIMIZATION
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
97
Mathematical Programming TUTORIAL 10. ANT COLONY OPTIMIZATION
10.3 POST-TUTORIAL
1. Minimize function using Ant colony optimization.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
98
Mathematical Programming TUTORIAL 10. ANT COLONY OPTIMIZATION
n
tio
da
n
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
99
Mathematical Programming TUTORIAL 10. ANT COLONY OPTIMIZATION
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
100
Tutorial 11
n
tio
Date of the Session: . . . . . . . . . . . . . . . . . .
da
Learning outcomes:
n
ou
lF
na
• Understanding the concept of Particle Swarm Optimization (PSO).
tio
ca
u
Ed
11.1 PRE-TUTORIAL
u
er
1. What is a particle swarm and their behavior under the PSO algorithm?
on
K
101
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
3. Write down the steps involved in solving the problem using particle swarm optimization?
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
102
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
11.2 IN-TUTORIAL
1. Find out the maximum of
Using the PSO algorithm. Use 9 particles with the initial positions x1 = −9.6, x2 = −6,
x3 = −2.6, x4 = −1.1, x5 = 0.6, x6 = 2.3, x7 = 2.8, x8 = 8.3, x9 = 10. Show the detailed
computations for iterations 1,2 and 3.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
103
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
104
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
105
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
106
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
11.3 POST-TUTORIAL
1. Use Particle Swarm Optimization technique (PSO), and solve the following problem .
x1 x2
1 -3 2
2 1 4
3 -2 -4
4 3 -2
n
tio
Solution:
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
107
Mathematical Programming TUTORIAL 11. PARTICLE SWARM OPTIMIZATION
n
tio
nda
ou
lF
na
tio
u ca
Ed
ah
ai
hm
ks
La
u
er
on
K
108
Tutorial 12
n
tio
Learning outcomes:
da
• Understanding the concept on simulated annealing.
n
ou
• Solving problems on simulated annealing.
lF
na
12.1 PRE-TUTORIAL
tio
1. Name and describe the main features of Genetic Algorithms (GA) and the also arrange the
ca
109
Mathematical Programming TUTORIAL 12. GENETIC ALGORITHM
2. Suppose a genetic algorithm uses chromosomes of the form x = abcdef gh with a fixed length
of eight genes. Each gene can be any digit between 0 and 9. Let the fitness of individual x
be calculated as:
f (x) = (a + b) − (c + d) + (e + f ) − (g + h) and let the initial population consist of four
individuals with the following chromosomes:
x1 = 6 5 4 1 3 5 3 2
x2 = 8 7 1 2 6 6 0 1
x3 = 2 3 9 2 1 2 8 5
x4 = 4 1 8 5 2 0 9 4
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
110
Mathematical Programming TUTORIAL 12. GENETIC ALGORITHM
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
111
Mathematical Programming TUTORIAL 12. GENETIC ALGORITHM
12.2 IN-TUTORIAL
1. Maximize the value of the function
f (x) = −x2 + 2x
over the range of real numbers 0 to 2, with initial population 111010, 01010, 10101, 00101
with random numbers 0.3, 0.2, 1.3, 0.9. Crossover point can be taken randomly.
Solution:
n
tio
n da
ou
lF
na
tio
uca
Ed
ah
ai
h m
ks
La
u
er
on
K
112
Mathematical Programming TUTORIAL 12. GENETIC ALGORITHM
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
113
Mathematical Programming TUTORIAL 12. GENETIC ALGORITHM
12.3 POST-TUTORIAL
1. Let us assume there are 10 objects (1 to 10 ) and 6 labels ( A to F) with the initial state as
follows: initial state =1:’A’, 2: ‘B’, 3:’A’, 4:’B’, 5:’C’, 6:’B’, 7:’A’, 8:’None’, 9:’None’, 10:’None’
Here objects 1 to 7 are labeled while 8 to 9 are not. Solve the problem by using simulated
annealing algorithm.
Solution:
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
h m
ks
La
u
er
on
K
114
Mathematical Programming TUTORIAL 12. GENETIC ALGORITHM
n
tio
n da
ou
lF
na
tio
u ca
Ed
ah
ai
mh
ks
La
u
er
on
K
115