Chapter 6 - Optimization and Its Applications in Chemical Engineering
Chapter 6 - Optimization and Its Applications in Chemical Engineering
operations
nonconvex.
A 2-D constrained minimum.
min f x1 3 x2 4
2 2
subject to
x1 0
x2 0
5 x1 x2 0
2.5 x1 x2 0
min f x1 2 x2 2
2 2
subject to
x1 0
x2 0
5 x1 x2 0
2.5 x1 x2 0
Optimization Programming Languages
• GAMS - General Algebraic Modeling System
• LINDO - Widely used in business applications
• AMPL - A Mathematical Programming
Language
• Others: MPL, ILOG
• Excel – Solver
• MATLAB
• MathCAD
• Mathematica
• Maple
• Others
2. General Formulation of
Optimization Problems
Problem Structure
1. Objective Function: It is usually formulated
on the basis of economic criterion, e.g.
profit, cost, energy and yield, etc., as a
function of key variables of the system under
study.
2. Process Model: It is used to describe the
interrelations of the key variables, which are
represented with equality and inequality
constraints.
EXAMPLE OF OBJECTIVE FUNCTION:
OPTIMUM THICKNESS OF INSULATION
Example of Objective Function –
Optimum Thickness of Insulation
Objective
function
Key variable
Essential Features of Optimization
Problems
1. At least one objective function, usually an
economic model;
2. Equality and inequality constraints.
subject to
h( x ) 0 Equality constraints
g( x ) 0 Inequality constraints
where
x x1 x2 x n
T
T
h( x ) h1 x1 , x2 ,, xn h2 x1 , x2 ,, xn hme x1 , x2 ,, xn
T
g( x ) g1 x1 , x2 ,, xn g 2 x1 , x2 ,, xn g mi x1 , x2 ,, xn
mi me n me
Economic Objective Function
Objective function
= annual profit
= annual income
- annual operating costs
- annualized capital costs
EXAMPLE OF OBJECTIVE FUNCTION:
OPTIMUM THICKNESS OF INSULATION
rate of heat loss
1
Q UAT AT
x / k 1 / hc
energy savings
Q0 Q Q ( x 0) Q ( x )
AT
hc AT Eq. (b)
x / k 1 / hc
cost of installed insulation per
unit area
Cins C0 C1 x
Let r be the fraction of the installed cost to be paid each year to
the bank. Let the value of the heat lost from the pipe be H,
($/106kJ). Let Y be the number of hours per year of operation.
Then:
The annualized capital cost is: r(Co+ C1x)A
The objective function to be maximized is the annual profit,
which is the annual saving less the annualized capital cost:
Eq. (c)
Tham khảo file kèm theo “Chuong 6 (Supporting Document) -
Tinh toan kinh te.pptx” về cách tính toán, xác định hệ số r
3. Basic Mathematical
Concepts in Optimization
Problems
What is a Function?
– Unimodal:
ƒ(x) is unimodal on the interval if and only if it
is monotonic on either side of the single optimal point x*
in the interval.
Unimodality is an extremely important functional
property used in optimization.
A monotonic increasing function A monotonic decreasing function
An unimodal function
Optimality Criteria
• Local and global optimum
Identification of Single-Variable Optima
• For finding local minima (maxima)
AND
Stationary points x = 0, 1, 2, 3
-Local minimum
-Local maximum
-Local minimum
At x = 0 - Inflection point
Continuity of a Function
A function f ( x ) is continous at a point x0
if
(a) f ( x0 ) exists
(b) lim f ( x) exists
x x0
(c) lim f ( x ) f ( x0 )
x x0
Z 150 x1 175 x2
(400 T2 ) (T4 T1 )
Q2 U 2 A2 (Tln )2 U 2 A2 (Ta lg )2 U 2 A2
2
Q2 wC Cp (T2 T1 ) wC pH (400 T4 )
C (400 T2 ) (400 T1 T2 T1 )
wC (T2 T1 ) U 2 A2
p
2
(400 T2 ) (400 T2 )
Or : wC Cp (T2 T1 ) U 2 A2 U 2 A2 (400 T2 )
2
T4 400 T1 T2
Energy balance for heat exchanger 3:
Min( A1 A2 A3 )
wC Cp (T1 100) wC Cp (T2 T1 ) wC Cp (500 T2 )
Min
U (300 T ) U (400 T ) U 3100
1 1 2 2
Subjected to constrained:
(temperature difference in shell and
300 T1 20 tube heat exchangers is at least 20 oF =
400 T2 20 11 oC)
Residence time for CSTR and PFR are given by: