Professional Documents
Culture Documents
• Examples
h 1(x1,x 2,……,xN)=0
h 2(x1,x 2,……,xN)=0
h E(x1,x 2,……,xN)=0
Feasibility
Any vector (or point) which
satisfies all the constraints
Inequality of the optimization program
Constraints is called a feasible vector
(or a feasible point)
The set of all feasible points
is called feasibility region
or feasibility domain
Equality
Constraints
Any optimal solution
must lie within the
feasibility region!
Optimization Basics
• Classification of Optimization Problems
– Linear Programs (LP’s)
• A mathematical program is linear if
min 3x + 6y2
s.t. 5x + xy ≥ 0
– Integer Programming
• Optimization programs in which ALL the variables must assume integer values. The most commonly used integer variables are the zero/one binary integer variables.
• Integer variables are often used as decision variables, e.g. to choose between two reactor types.
• Can be solved as individual LP’s by fixing the integer variables, thus a global optimum can be identified.
• Can be solved as individual NLP’s by fixing the integer variables, but depending on the nature of the NLP’s it may not be possible to find a global optimum.
Optimization Basics
• Formulation of Optimization Problems
– Step 1
• Determine the quantity to be optimized and express it as a mathematical function (this is your objective function)
• Doing so also serves to define variables to be optimized (input variables or optimization variables)
– Step 2
• Identify all stipulated requirements, restrictions, and limitations, and express them mathematically. These requirements constitute the constraints
– Step 3
• Express any hidden conditions. Such conditions are not stipulated explicitly in the problem, but are apparent from the physical situation, e.g. non-negativity constraints
Optimization Example
• Hydrogen Sulfide Scrubbing
– Two variable grades of MEA.
– First grade consists of 80 weight% MEA and 20% weight water. Its cost is 80 cent/kg.
– Second grade consists of 68 weight% MEA and 32 weight% water. Its cost is 60 cent/kg.
– It is desired to mix the two grades so as to obtain an MEA solution that contains no more than 25 weight% water.
– What is the optimal mixing ratio of the two grades which will minimize the cost of MEA solution (per kg)?
Optimization Example
• Hydrogen Sulfide Scrubbing (Cont’d)
Grade 1
x1 kg
0.80 MEA, 0.20 water Variables (Basis 1 kg solution)
1 kg MEA solution
80 cents/kg
MIXER
water content 25 wt. %
x1 Amount of grade 1 (kg)
Grade 2 x2 Amount of grade 2 (kg)
x2 kg
0.68 MEA, 0.32 water z Cost of 1 kg solution (cents)
60 cents/kg
Optimization Example
• Hydrogen Sulfide Scrubbing (Cont’d)
– Feasibility region
• The set of points (x1, x2) satisfying all the constraints, including the non-negativity conditions.
• Constraint on water content 0.20x1 + 0.32x2 ≤ 0.25
x2
x1
Optimization Example
• Hydrogen Sulfide Scrubbing (Cont’d)
– Feasibility region
• Non-negativity constraints x1 0 , x2 0
x2
x2
x1
x1
Optimization Example
• Hydrogen Sulfide Scrubbing (Cont’d)
– Feasibility region
• Mass balance constraint x1 + x2 = 1
x2
x2
x2
0.2
0 x1
+ 0.3
2 x2
= 0.2
5
x1 x1
x1
Optimization Example
• Hydrogen Sulfide Scrubbing (Cont’d)
– Feasibility region
x2
Feasibility region
0.2
0x
1+
0.3
is this heavy line
2x
2=
0.2
5
x2
x1
+x
Optimal Point
2=
1 Intersection between
0.2
0x
1+ z = 75 x1 + x2 = 1
0.3
2x
2=
0.2 and
5
x1
x2
+x
2=
1
0.2
0x
1+
z* = 71.6
0.3
2x
2=
0.2
Optimal
5
point
x2* = 0.42
x1
x1* = 0.58
More Optimization Examples
• Lab Experiment
– Determine the kinetics of a certain reaction by mixing two species, A and B. The cost of raw materials A and B are 2 and 3 $/kg, respectively.
OC = 4(x1)2 + 5(x2)2
– The total cost of raw materials for the experiment should be exactly $6. Minimize the operating cost!
More Optimization Examples
• Coal Conversion Plant
– What are the optimal production rates of gaseous and liquid fuels that maximize the net profit of the plant?
x2
10
x1 = 4
3x1 + 2x2 = 18
8
6 2x2 = 12
0 x1
0 2 4 6 8
More Optimization Examples
• Coal Conversion Plant (Cont’d)
– Graphical solution
x2 x2
10 10
x1 = 4
3x1 + 2x2 = 18
8 8
Z = 36 = 3x1 + 5x2
6 2x2 = 12 6
Z = 20 = 3x1 + 5x2
4 4
Z = 10 = 3x1 + 5x2
2 2
0 x1 0 x1
0 2 4 6 8 0 2 4 6 8
More Optimization Examples
• Methanol Delivery
– Supply methanol for three Methyl acetate plants located in towns A, B, and C
2 3 0 8
3 11 6 15
4 7 1 9
More Optimization Examples
– The problem is to assign the people to the jobs so as to minimize the total cost of completing all the jobs.
– We can assign integer variables to describe whether a certain person does a certain job or not
Mixed Integer Programs
• The Assignment Problem (Cont’d)
– The event of person j doing job i is designated Xij
– Since exactly one person will do job i, and each person at most can do one job, we get:
m n
min C ij X ij
i 1 j 1
n m
X
j 1
ij 1 , i 1,...., m X
i 1
ij 1 , j 1,...., n
Mixed Integer Programs
• Plant Layout – An Assignment Problem
– Four new reactors R1, R2, R3 and R4 are to be installed in a chemical plant
– Four vacant spaces 1, 2, 3 and 4 are available
– Cost of assigning reactor i to space j (in $1000) is
R2 13 12 12 17
R3 14 15 10 14
R4 17 13 11 16
Mixed Integer Programs
• Plant Layout (Cont’d)
– Let Xij denote the existence (or absence) of reactor i in space j, i.e. if Xij =1 then reactor i exists in space j
– Objective functionmin Z = 15X11 + 11X12 + 13X13 + 15X14 + 13X21 + 12X22 + 12X23 + 17X24 +14X31 + 15X32 + 10X33 + 14X34
+ 17X41 + 13X42 + 11X43 + 16X44
Mixed Integer Programs
• Plant Layout (Cont’d)
– Constraints
• Each space must be assigned to one and only one reactor
Reactor R1 in space 2
Reactor R2 in space 1
Reactor R3 in space 4
Reactor R4 in space 3
– Minimum cost
Cost = 11 + 13 + 14 + 11 = $49,000
Mixed Integer Programs
Thank You