Modeling_Simulation_Lecture23
Modeling_Simulation_Lecture23
Ali M. Sahlodin
Department of Chemical Engineering
AmirKabir University of Technology
1397 S.H
1
9/22/2021
Line search
Obtain the optimal step length
1
x ( k 1) x ( k ) J ( x ( k ) ) f ( x(k ) ) 0 1
2
9/22/2021
Solution times
3
9/22/2021
4
9/22/2021
Pros
Easy modeling (problem formulation)
Customizable solvers for each block (e.g.,
columns)
Easy troubleshooting
Established software available
Cons
Efficiency/convergence issues in case of many
recycles and large interactions
Inefficient/unreliable for optimization (why?)
5
9/22/2021
x k 1 x k k d k
J k d k f ( xk )
6
9/22/2021
f1( x1,..., xn ) 0
M
f ( x ,..., x ) 0
n 1 n
7
9/22/2021
f1 : x1x2 x3 0
f 2 : x22 10 0
f3 : 2 x1 x3 0
8
9/22/2021
Advantages
State-of-the-art optimization algorithms
Systematic reduction of residuals to zero
Ability to handle bounds on variable
Facilitate convergence
Handle multiple steady-state solutions
Copyright © Ali M. Sahlodin, Dept. of Chemical Engineering, AmirKabir Univ. of Tech. 17
Initialization
Good initial guesses being the biggest challenge
Typically an SM solution required.
Derivatives
Analytical differentiation is possible!
But not always
User-defined subroutines (black boxes)
unsupported blocks
Property packages/flash calculations (sometimes available)
9
9/22/2021
Pros
Suitable for highly interactive processes (many recycles
and design blocks)
Suitable for optimization and model calibration
Cons
is harder to troubleshoot
Needs more expertise
Needs good initial guess (solving very large system)
10
9/22/2021
Formulation I
Tear all streams
2( N C 2) N CS N d Eqs
11
9/22/2021
Formulation II
Eliminate unnecessary eqs
Formulation III
Only tear a subset of streams
12