SlideShare a Scribd company logo
1 of 33
CHE 536
ENGINEERING OPTIMIZATION
COURSE POLICIES AND
OUTLINE
Prof. Shi-Shang Jang
Chemical Engineering Department
National Tsing-Hua University
Hsinchu
Feb. 2011
Instructor: Prof. Shi-Shang Jang
 Class Meeting: Every Thursday, 2:00-5:00
 Classroom: Rm#221, Chem. Engng. Buldg.
 Textbook : P. Venkataraman, Applied Optimization with MATLAB
Programming. Wiley-Interscience, 2001
 References:
 Reklaitis, Ravindran and Ragsdell, Engineering Optimization, Methods
and Applications, .Wiley, 1983.
 Vanderplaats, G.N., Numerical Optimization Techniques for Engineering
Design with Applications, McGraw-Hill International , 1993.
 Optimization of Chemical Processes, 2nd Ed., Edgar, Himmelblau and
Lasdon, McGraw-Hill, Boston, 2001
 Course Objective:
 To learn problem formulation of optimization.
 To realize the algorithms of numerical methods of optimization.
 To know the applications of numerical optimization.
Policies
 Homework Policy: Biweekly (computer
programming) homework, due at next
week class meeting. No late homework
will be accepted.
 Grading Policy:Homework :30%,
Midterm Exam: 35%, Term project: 35%
 Lecture Notes:
http://pie.che.nthu.edu.tw/
Course Outline
 Course Orientation 2/24
 Introduction and Single Variable Optimization 3/3, 3/10
 Unconstrained Optimization 3/17, 3/24
 Linear Programming 3/31, 4/7
 Theoretical Concepts of Nonlinear Programming 4/14, 4/21
 Midterm Exam 4/28
 Generalized Reduced Gradient Approach 5/5,12,19
 Successive Quadratic Programming 5/26, 6/2
 Final Project Presentation 6/9
Chapter 1. INTRODUCTION
Why optimized?
 Improve the process to realize
maximum system potential;
 Attain improved designs;
maximize profits; reduce cost of
productions.
Essential features of optimization
problem
 An objective function is defined which needs to be
either maximized or minimized. The objective function
may be technical or economic. Examples of economic
objective are profits, costs of production etc..
Technical objective may be the yield from the reactor
that needs to be maximized, minimum size of an
equipment etc.. Technical objectives are ultimately
related to economics.
 Underdetermined system: If all the design variables
are fixed. There is no optimization. Thus one or more
variables is relaxed and the system becomes an
underdetermined system which has at least in
principle infinite number of solutions.
Essential features of optimization
problem- Continued
 Competing influences: In most of the optimization
problems, there would be some set of variables which
has opposite influence on the objective function. Such
competing influences require some balancing and
hence result in typical optimization problems.
 Restrictions: Usually the optimization is done keeping
certain restrictions or constraints. Thus, the amount of
row material may be fixed or there may be other
design restrictions. Hence in most problems the
absolute minimum or maximum is not needed but a
restricted optimum i.e. the best possible in the given
condition
Problem Statements
 T
n
x
x
x ,
,
, 2
1 

x
Given a design vector
An objective function f(x)
A set of equality constraints g(x)=0
A set of inequality constraints, h(x)0
The general problem formulation:
 
 
0
)
(
0
.
.
min


x
h
x
g
x
x
t
s
f
Examples- An Inspector Problem
(Linear Programming):
 Assume that it is desired to hire some inspectors for
monitoring a production line. A total amount of 1800
species of products are manufactured every day (8
working hours), while two grades of inspectors can be
found. Maximum, 8 grade A inspector and 10 grade B
inspector are available from the job market. Grade A
inspectors can check 25 species/hour, with an
accuracy of 98 percent. Grade B inspectors can
check 15 species/hour, with an accuracy of 95 percent.
The wage of a grade A inspector is $4.00/hour, and
the wage of a grade B inspector is $3.00/hour. What
is the optimum policy for hiring the inspectors?
Problem Formulation
 Assume that the x1 grade A inspectors x2 grade B
inspects are hired, then
 total cost to be minimized
 48 x1 +38  x2 +2580.022 x1 +1580.052
 x2
=40 x1 +36 x2
 manufacturing constraint
 258 x1 +158 x2 1,800 200 x1 +120 x2 1,800
 no. of inspectors available:
 0 x1 8
 0 x2 10
The Graphical Solution
40X
1 +36X
2 =Z=600
40X
1 +36X
2 =Z=500
X2=10
X
1
=8
B(8,10)
(8,5/3)
Z=380
5
X
1
+
3
X
2
=
4
5
C(3,10)
15
10
5
5 10
Example – optimal pipe diameter
 In a chemical plant, the cost of pipes, their fittings, and pumping
are important investment cost. Consider a design of a pipeline L
feet long that should carry fluid at the rate of Q gpm. The
selection of economic pipe diameter D(in.) is based on minimizing
the annual cost of pipe, pump, and pumping. Suppose the annual
cost of a pipeline with a standard carbon steel pipe and a motor-
driven centrifugal pump can be expressed as:
68
.
4
68
.
2
9
5
3
8
925
.
0
2
/
1
5
.
1
10
92
.
1
10
4
.
4
102
)
(
6
.
61
)
(
25
.
3
245
.
0
45
.
0
D
LQ
D
LQ
hp
where
hp
hp
LD
L
f











Formulate the appropriate single-variable optimization problem for
designing a pipe of length 1000ft with a fluid rate of 20gpm. The
diameter of the pipe should be between 0.25 to 6 in.
The MATLAB Code for Process
Design Example
 d=linspace(0.25,6);
 l=1000;q=20;
 for i=1:100
 hp=4.4e-
8*(l*q^3)/d(i)^5 +
1.92e-9*(l*q^2.68)
/(d(i)^4.68);
 f(i)=0.45*l+0.245*l*d(
i)^1.5+3.25*hp^0.5+
61.6*hp^0.925+102;
 end
cost
diameter
Examples- A Chemical Reactor
Design Problem
C
B
A
k
k 2
1


RT
E
RT
E
e
k
k
e
k
k
/
20
2
/
10
1
2
1




B
C
B
A
B
A
A
C
k
dt
dC
C
k
C
k
dt
dC
C
k
dt
dC
2
2
1
1





Material Balances:
     
J
B
A
P T
T
UA
V
C
k
H
V
C
k
H
dt
dT
VC 






 2
2
1
1

Energy Balances:
Examples- A Chemical Reactor
Design Problem - Continued
 Problem: Assume that C0, TJ, tf can be
designed, it is our objective to find good
settings such that CB(tf) can be
maximized
Special Types of NLP problems
 Unconstrained optimization
 In here, neither equality nor inequality constraint
exists
 Linear Programming (LP)
 In here, all the objective function and constraints
are linear functions to x.
 
x
x
f
min
 
0
,
,
1
0
.
.
max
1
2
2
1
1











i
n
i
j
i
ij
n
n
T
x
m
j
b
x
a
t
s
x
c
x
c
x
c
f


x
c
x
x
Special Types of NLP problems -
Continued
 Quadratic Programming (QP)
 
0
,
,
1
0
.
.
max
1
1
0









i
n
i
j
i
ij
x
m
j
b
x
a
t
s
a
f

Qx
x
x
a
x T
x
In here, only the objective function is quadratic,
but the constraints are linear
Special Types of NLP problems -
Continued
 Optimization with respect to a
continuous variable (Calculus of
Variation)
 


b
a
dt
x
x
t
F
y '
,
,
Find x(t) such that
is minimized
Special Types of NLP problems -
Continued
 Dynamic Programming (DP)
Here, xi represents the state of the system in the ith
stage and ui is some decision variable, i.e. some decision
taken at the ith stage. The values of xi and ui determine uniquely xi+1:
 
i
u
x
f
x i
i
i ,
,
1 

Here, it is assumed that x0 is known, when the state of the system
changes from xi to xi+1, there is an improvement or degradation in
an objective function as cost or profit. Let this be J=f(xi,ui,i) , then the
cumulative profit over N stages is:
 



N
i
i
i
C i
u
x
J
J
1
,
,
Special Types of NLP problems -
Continued
 Integer Programming (IP):
 Some of the variables are constrained to take integer
values.
As x0 is fixed the magnitude of the cumulative profit
is determined only by the various decisions taken ui (i=0 to N-1).
Hence Jc is to be optimized with respect to ui.
Now, constraints may be imposed on xi and ui.
This constitutes a dynamic programming (DP)
The Iterative Optimization
Procedure – A Basic Idea
 Optimization is basically performed in a
fashion of iterative optimization. We give
an initial point x0, and a direction s, and
then perform the following line search:
where * is the optimal point for the
objective function and satisfies all the
constraints. Then we start from x1 and
find the other direction s’, and perform a
new line search until the optimum is
reached.
s
x
x *
0
1 


Terminology
 Contour plot
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
2.5
3
0.1
0.1
0
.
1
0.1
0.1
0
.1
0.2 0.2
0
.
2
0.2
0
.
2
0.3
0
.
3
0.3
0.3
0.4
0.4
0.4
0
.
4
0.5
0.5
0.5
0.6
0.6
0.7
0
.7
0.8
Terminology - Continued
 Global optimum v.s. Local optimum
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
2.5
3
-
6
-4
-2
-2
0
0
0
0
2
2
2
2
2
2
2
4
4
4
6
6
local
minimum
local
minimum
Terminology - Continued
 Convex v.s. Concave functions
 A function (x) is called convex over the domain R
if for all x1, x2R, and 0<<1, then
 If the inequality holds, the function is called strictly
convex. A concave function is a function that
cannot have a value smaller than that obtained by
a linear approximation.
       
1 2 1 2
1 1
x x x x
     
    
 
 
Terminology - Continued
 Unimodal function
 If the function increases up to a maximum then
decreases for all other values, it is called a
unimodal function
 Gradient and Hessian of a function
 Gradient of a function f(x) is defined by a column
vector of the first partial derivatives of f(x) with
respect to each variables x1 to xn evaluated at
some x
 Hessian matrix of f(x) is defined as the symmetric
square matrix of second partial derivatives
Terminology - Continued
 Feasible Regions-
 Region of search.
 The region bounded by the inequality and equality
constraints.
 Convex region of search (not convex
function):
 A convex region is one region such that a line
joining any two points lying in the region.
Appendix – Mesh and Contour
 3-dimensional plot and contour plot are
important to demonstrate the optimality
of a function
 Internal functions of MATLAB:
mesh(x,y,z) and meshgrid are useful in
this case
Function MeshGrid
 To Produce two arrays containing duplicates
of its inputs so that all combinations of its
inputs are considered.
xtest=1:5;
ytest=6:9;
[xx,yy]=meshgrid(xtest,ytest)
xx =
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
yy =
6 6 6 6 6
7 7 7 7 7
8 8 8 8 8
9 9 9 9 9
Mesh plot of function z=x^2+y^2
 for i=1:100
 for j=1:100
 z(i,j)=xx(i,j)^2+yy(i,j)^
2;
 end
 end
 mesh(xx,yy,z)
Contour plot of function z=x^2+y^2
 contour(xx,yy,z)
Himmelblau’s Function
 function y=himmel(x1,x2)
 y=(x1*x1+x2-11)^2+(x1+x2*x2-7)^2;
 x1=linspace(-5,5,21);
 x2=linspace(-5,5,21);
 for i=1:21
 for j=1:21
 zz(i,j)=himmel(x1(i),x2(j));
 end
 end;
 mesh(x1,x2,zz);
3-dimensional Plot
-10
-5
0
5
10
-10
-5
0
5
10
0
500
1000
1500
2000
2500
Contour Plot contour(x1,x2,zz)
-6
-4
-2
0
2
4
6
-6 -4 -2 0 2 4 6

More Related Content

Similar to CH1.ppt

Industrial plant optimization in reduced dimensional spaces
Industrial plant optimization in reduced dimensional spacesIndustrial plant optimization in reduced dimensional spaces
Industrial plant optimization in reduced dimensional spacesCapstone
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game TheoryPurnima Pandit
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 012013901097
 
Cad based shape optimization
Cad based shape optimizationCad based shape optimization
Cad based shape optimizationAbhay Gore
 
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATIONECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATIONMln Phaneendra
 
PF_MAO_2010_Souam
PF_MAO_2010_SouamPF_MAO_2010_Souam
PF_MAO_2010_SouamMDO_Lab
 
Lecture-30-Optimization.pptx
Lecture-30-Optimization.pptxLecture-30-Optimization.pptx
Lecture-30-Optimization.pptxAnushaDesai4
 
linearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxlinearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxKOUSHIkPIPPLE
 
Chapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfChapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfTsegay Berhe
 
OR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptxOR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptxssuserf19f3e
 
PSO and Its application in Engineering
PSO and Its application in EngineeringPSO and Its application in Engineering
PSO and Its application in EngineeringPrince Jain
 
Convex optmization in communications
Convex optmization in communicationsConvex optmization in communications
Convex optmization in communicationsDeepshika Reddy
 
Vcs slides on or 2014
Vcs slides on or 2014Vcs slides on or 2014
Vcs slides on or 2014Shakti Ranjan
 
CP3_SDM_2010_Souma
CP3_SDM_2010_SoumaCP3_SDM_2010_Souma
CP3_SDM_2010_SoumaMDO_Lab
 

Similar to CH1.ppt (20)

Ch02.ppt
Ch02.pptCh02.ppt
Ch02.ppt
 
Reference 1
Reference 1Reference 1
Reference 1
 
Industrial plant optimization in reduced dimensional spaces
Industrial plant optimization in reduced dimensional spacesIndustrial plant optimization in reduced dimensional spaces
Industrial plant optimization in reduced dimensional spaces
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
 
Cad based shape optimization
Cad based shape optimizationCad based shape optimization
Cad based shape optimization
 
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATIONECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
 
PF_MAO_2010_Souam
PF_MAO_2010_SouamPF_MAO_2010_Souam
PF_MAO_2010_Souam
 
Operations Research - Introduction
Operations Research - IntroductionOperations Research - Introduction
Operations Research - Introduction
 
Lecture-30-Optimization.pptx
Lecture-30-Optimization.pptxLecture-30-Optimization.pptx
Lecture-30-Optimization.pptx
 
linearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxlinearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptx
 
Chapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfChapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdf
 
Lp (2)
Lp (2)Lp (2)
Lp (2)
 
OR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptxOR-I_Lecture_Note_01.pptx
OR-I_Lecture_Note_01.pptx
 
PSO and Its application in Engineering
PSO and Its application in EngineeringPSO and Its application in Engineering
PSO and Its application in Engineering
 
Convex optmization in communications
Convex optmization in communicationsConvex optmization in communications
Convex optmization in communications
 
Math
MathMath
Math
 
Vcs slides on or 2014
Vcs slides on or 2014Vcs slides on or 2014
Vcs slides on or 2014
 
CP3_SDM_2010_Souma
CP3_SDM_2010_SoumaCP3_SDM_2010_Souma
CP3_SDM_2010_Souma
 
linear programming
linear programming linear programming
linear programming
 

More from FathiShokry

Lecture 4 Ammonia Production.ppt
Lecture 4  Ammonia Production.pptLecture 4  Ammonia Production.ppt
Lecture 4 Ammonia Production.pptFathiShokry
 
lec 2 dr. marwa.ppsx
lec 2 dr. marwa.ppsxlec 2 dr. marwa.ppsx
lec 2 dr. marwa.ppsxFathiShokry
 
Lect 1 PE 200.pptx
Lect 1 PE 200.pptxLect 1 PE 200.pptx
Lect 1 PE 200.pptxFathiShokry
 
Lecture 10 (1).pptx
Lecture 10 (1).pptxLecture 10 (1).pptx
Lecture 10 (1).pptxFathiShokry
 
lec. 3 dr,marwa.pptx
lec. 3 dr,marwa.pptxlec. 3 dr,marwa.pptx
lec. 3 dr,marwa.pptxFathiShokry
 
Lecture 2 summary.pdf
Lecture 2 summary.pdfLecture 2 summary.pdf
Lecture 2 summary.pdfFathiShokry
 
Hysys Course 2022.ppt
Hysys Course 2022.pptHysys Course 2022.ppt
Hysys Course 2022.pptFathiShokry
 
Intrduction to Simulation.ppt
Intrduction to Simulation.pptIntrduction to Simulation.ppt
Intrduction to Simulation.pptFathiShokry
 
Material selection and design - No audio.pptx
Material selection and design - No audio.pptxMaterial selection and design - No audio.pptx
Material selection and design - No audio.pptxFathiShokry
 
Chapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.ppt
Chapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.pptChapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.ppt
Chapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.pptFathiShokry
 

More from FathiShokry (17)

Lecture 4 Ammonia Production.ppt
Lecture 4  Ammonia Production.pptLecture 4  Ammonia Production.ppt
Lecture 4 Ammonia Production.ppt
 
lec 2 dr. marwa.ppsx
lec 2 dr. marwa.ppsxlec 2 dr. marwa.ppsx
lec 2 dr. marwa.ppsx
 
Lect 1 PE 200.pptx
Lect 1 PE 200.pptxLect 1 PE 200.pptx
Lect 1 PE 200.pptx
 
Lecture 10 (1).pptx
Lecture 10 (1).pptxLecture 10 (1).pptx
Lecture 10 (1).pptx
 
Lect 5.pptx
Lect 5.pptxLect 5.pptx
Lect 5.pptx
 
lec. 3 dr,marwa.pptx
lec. 3 dr,marwa.pptxlec. 3 dr,marwa.pptx
lec. 3 dr,marwa.pptx
 
2.pptx
2.pptx2.pptx
2.pptx
 
1.pptx
1.pptx1.pptx
1.pptx
 
summary 1.pptx
summary 1.pptxsummary 1.pptx
summary 1.pptx
 
Lecture 2 summary.pdf
Lecture 2 summary.pdfLecture 2 summary.pdf
Lecture 2 summary.pdf
 
Hysys Course 2022.ppt
Hysys Course 2022.pptHysys Course 2022.ppt
Hysys Course 2022.ppt
 
Intrduction to Simulation.ppt
Intrduction to Simulation.pptIntrduction to Simulation.ppt
Intrduction to Simulation.ppt
 
combustion.pptx
combustion.pptxcombustion.pptx
combustion.pptx
 
lect 2.pptx
lect 2.pptxlect 2.pptx
lect 2.pptx
 
Material selection and design - No audio.pptx
Material selection and design - No audio.pptxMaterial selection and design - No audio.pptx
Material selection and design - No audio.pptx
 
Chapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.ppt
Chapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.pptChapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.ppt
Chapter3-Engine Cyclesشرح محاضرة الاسبوع التاسع.ppt
 
base.pdf
base.pdfbase.pdf
base.pdf
 

Recently uploaded

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 

Recently uploaded (20)

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 

CH1.ppt

  • 1. CHE 536 ENGINEERING OPTIMIZATION COURSE POLICIES AND OUTLINE Prof. Shi-Shang Jang Chemical Engineering Department National Tsing-Hua University Hsinchu Feb. 2011
  • 2. Instructor: Prof. Shi-Shang Jang  Class Meeting: Every Thursday, 2:00-5:00  Classroom: Rm#221, Chem. Engng. Buldg.  Textbook : P. Venkataraman, Applied Optimization with MATLAB Programming. Wiley-Interscience, 2001  References:  Reklaitis, Ravindran and Ragsdell, Engineering Optimization, Methods and Applications, .Wiley, 1983.  Vanderplaats, G.N., Numerical Optimization Techniques for Engineering Design with Applications, McGraw-Hill International , 1993.  Optimization of Chemical Processes, 2nd Ed., Edgar, Himmelblau and Lasdon, McGraw-Hill, Boston, 2001  Course Objective:  To learn problem formulation of optimization.  To realize the algorithms of numerical methods of optimization.  To know the applications of numerical optimization.
  • 3. Policies  Homework Policy: Biweekly (computer programming) homework, due at next week class meeting. No late homework will be accepted.  Grading Policy:Homework :30%, Midterm Exam: 35%, Term project: 35%  Lecture Notes: http://pie.che.nthu.edu.tw/
  • 4. Course Outline  Course Orientation 2/24  Introduction and Single Variable Optimization 3/3, 3/10  Unconstrained Optimization 3/17, 3/24  Linear Programming 3/31, 4/7  Theoretical Concepts of Nonlinear Programming 4/14, 4/21  Midterm Exam 4/28  Generalized Reduced Gradient Approach 5/5,12,19  Successive Quadratic Programming 5/26, 6/2  Final Project Presentation 6/9
  • 5. Chapter 1. INTRODUCTION Why optimized?  Improve the process to realize maximum system potential;  Attain improved designs; maximize profits; reduce cost of productions.
  • 6. Essential features of optimization problem  An objective function is defined which needs to be either maximized or minimized. The objective function may be technical or economic. Examples of economic objective are profits, costs of production etc.. Technical objective may be the yield from the reactor that needs to be maximized, minimum size of an equipment etc.. Technical objectives are ultimately related to economics.  Underdetermined system: If all the design variables are fixed. There is no optimization. Thus one or more variables is relaxed and the system becomes an underdetermined system which has at least in principle infinite number of solutions.
  • 7. Essential features of optimization problem- Continued  Competing influences: In most of the optimization problems, there would be some set of variables which has opposite influence on the objective function. Such competing influences require some balancing and hence result in typical optimization problems.  Restrictions: Usually the optimization is done keeping certain restrictions or constraints. Thus, the amount of row material may be fixed or there may be other design restrictions. Hence in most problems the absolute minimum or maximum is not needed but a restricted optimum i.e. the best possible in the given condition
  • 8. Problem Statements  T n x x x , , , 2 1   x Given a design vector An objective function f(x) A set of equality constraints g(x)=0 A set of inequality constraints, h(x)0 The general problem formulation:     0 ) ( 0 . . min   x h x g x x t s f
  • 9. Examples- An Inspector Problem (Linear Programming):  Assume that it is desired to hire some inspectors for monitoring a production line. A total amount of 1800 species of products are manufactured every day (8 working hours), while two grades of inspectors can be found. Maximum, 8 grade A inspector and 10 grade B inspector are available from the job market. Grade A inspectors can check 25 species/hour, with an accuracy of 98 percent. Grade B inspectors can check 15 species/hour, with an accuracy of 95 percent. The wage of a grade A inspector is $4.00/hour, and the wage of a grade B inspector is $3.00/hour. What is the optimum policy for hiring the inspectors?
  • 10. Problem Formulation  Assume that the x1 grade A inspectors x2 grade B inspects are hired, then  total cost to be minimized  48 x1 +38  x2 +2580.022 x1 +1580.052  x2 =40 x1 +36 x2  manufacturing constraint  258 x1 +158 x2 1,800 200 x1 +120 x2 1,800  no. of inspectors available:  0 x1 8  0 x2 10
  • 11. The Graphical Solution 40X 1 +36X 2 =Z=600 40X 1 +36X 2 =Z=500 X2=10 X 1 =8 B(8,10) (8,5/3) Z=380 5 X 1 + 3 X 2 = 4 5 C(3,10) 15 10 5 5 10
  • 12. Example – optimal pipe diameter  In a chemical plant, the cost of pipes, their fittings, and pumping are important investment cost. Consider a design of a pipeline L feet long that should carry fluid at the rate of Q gpm. The selection of economic pipe diameter D(in.) is based on minimizing the annual cost of pipe, pump, and pumping. Suppose the annual cost of a pipeline with a standard carbon steel pipe and a motor- driven centrifugal pump can be expressed as: 68 . 4 68 . 2 9 5 3 8 925 . 0 2 / 1 5 . 1 10 92 . 1 10 4 . 4 102 ) ( 6 . 61 ) ( 25 . 3 245 . 0 45 . 0 D LQ D LQ hp where hp hp LD L f            Formulate the appropriate single-variable optimization problem for designing a pipe of length 1000ft with a fluid rate of 20gpm. The diameter of the pipe should be between 0.25 to 6 in.
  • 13. The MATLAB Code for Process Design Example  d=linspace(0.25,6);  l=1000;q=20;  for i=1:100  hp=4.4e- 8*(l*q^3)/d(i)^5 + 1.92e-9*(l*q^2.68) /(d(i)^4.68);  f(i)=0.45*l+0.245*l*d( i)^1.5+3.25*hp^0.5+ 61.6*hp^0.925+102;  end cost diameter
  • 14. Examples- A Chemical Reactor Design Problem C B A k k 2 1   RT E RT E e k k e k k / 20 2 / 10 1 2 1     B C B A B A A C k dt dC C k C k dt dC C k dt dC 2 2 1 1      Material Balances:       J B A P T T UA V C k H V C k H dt dT VC         2 2 1 1  Energy Balances:
  • 15. Examples- A Chemical Reactor Design Problem - Continued  Problem: Assume that C0, TJ, tf can be designed, it is our objective to find good settings such that CB(tf) can be maximized
  • 16. Special Types of NLP problems  Unconstrained optimization  In here, neither equality nor inequality constraint exists  Linear Programming (LP)  In here, all the objective function and constraints are linear functions to x.   x x f min   0 , , 1 0 . . max 1 2 2 1 1            i n i j i ij n n T x m j b x a t s x c x c x c f   x c x x
  • 17. Special Types of NLP problems - Continued  Quadratic Programming (QP)   0 , , 1 0 . . max 1 1 0          i n i j i ij x m j b x a t s a f  Qx x x a x T x In here, only the objective function is quadratic, but the constraints are linear
  • 18. Special Types of NLP problems - Continued  Optimization with respect to a continuous variable (Calculus of Variation)     b a dt x x t F y ' , , Find x(t) such that is minimized
  • 19. Special Types of NLP problems - Continued  Dynamic Programming (DP) Here, xi represents the state of the system in the ith stage and ui is some decision variable, i.e. some decision taken at the ith stage. The values of xi and ui determine uniquely xi+1:   i u x f x i i i , , 1   Here, it is assumed that x0 is known, when the state of the system changes from xi to xi+1, there is an improvement or degradation in an objective function as cost or profit. Let this be J=f(xi,ui,i) , then the cumulative profit over N stages is:      N i i i C i u x J J 1 , ,
  • 20. Special Types of NLP problems - Continued  Integer Programming (IP):  Some of the variables are constrained to take integer values. As x0 is fixed the magnitude of the cumulative profit is determined only by the various decisions taken ui (i=0 to N-1). Hence Jc is to be optimized with respect to ui. Now, constraints may be imposed on xi and ui. This constitutes a dynamic programming (DP)
  • 21. The Iterative Optimization Procedure – A Basic Idea  Optimization is basically performed in a fashion of iterative optimization. We give an initial point x0, and a direction s, and then perform the following line search: where * is the optimal point for the objective function and satisfies all the constraints. Then we start from x1 and find the other direction s’, and perform a new line search until the optimum is reached. s x x * 0 1   
  • 22. Terminology  Contour plot -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 3 0.1 0.1 0 . 1 0.1 0.1 0 .1 0.2 0.2 0 . 2 0.2 0 . 2 0.3 0 . 3 0.3 0.3 0.4 0.4 0.4 0 . 4 0.5 0.5 0.5 0.6 0.6 0.7 0 .7 0.8
  • 23. Terminology - Continued  Global optimum v.s. Local optimum -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 3 - 6 -4 -2 -2 0 0 0 0 2 2 2 2 2 2 2 4 4 4 6 6 local minimum local minimum
  • 24. Terminology - Continued  Convex v.s. Concave functions  A function (x) is called convex over the domain R if for all x1, x2R, and 0<<1, then  If the inequality holds, the function is called strictly convex. A concave function is a function that cannot have a value smaller than that obtained by a linear approximation.         1 2 1 2 1 1 x x x x               
  • 25. Terminology - Continued  Unimodal function  If the function increases up to a maximum then decreases for all other values, it is called a unimodal function  Gradient and Hessian of a function  Gradient of a function f(x) is defined by a column vector of the first partial derivatives of f(x) with respect to each variables x1 to xn evaluated at some x  Hessian matrix of f(x) is defined as the symmetric square matrix of second partial derivatives
  • 26. Terminology - Continued  Feasible Regions-  Region of search.  The region bounded by the inequality and equality constraints.  Convex region of search (not convex function):  A convex region is one region such that a line joining any two points lying in the region.
  • 27. Appendix – Mesh and Contour  3-dimensional plot and contour plot are important to demonstrate the optimality of a function  Internal functions of MATLAB: mesh(x,y,z) and meshgrid are useful in this case
  • 28. Function MeshGrid  To Produce two arrays containing duplicates of its inputs so that all combinations of its inputs are considered. xtest=1:5; ytest=6:9; [xx,yy]=meshgrid(xtest,ytest) xx = 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 yy = 6 6 6 6 6 7 7 7 7 7 8 8 8 8 8 9 9 9 9 9
  • 29. Mesh plot of function z=x^2+y^2  for i=1:100  for j=1:100  z(i,j)=xx(i,j)^2+yy(i,j)^ 2;  end  end  mesh(xx,yy,z)
  • 30. Contour plot of function z=x^2+y^2  contour(xx,yy,z)
  • 31. Himmelblau’s Function  function y=himmel(x1,x2)  y=(x1*x1+x2-11)^2+(x1+x2*x2-7)^2;  x1=linspace(-5,5,21);  x2=linspace(-5,5,21);  for i=1:21  for j=1:21  zz(i,j)=himmel(x1(i),x2(j));  end  end;  mesh(x1,x2,zz);