Modeling_Simulation_Lecture9
Modeling_Simulation_Lecture9
Ali M. Sahlodin
Department of Chemical Engineering
AmirKabir University of Technology
1397 S.H
BDF Solvers
Variable order, variable step size
Different differentiation methods
Finite differences
Symbolic differentiation
Automatic differentiation
1
12/7/2020
What is sensitivity?
Partial derivatives of functions w.r.t. parameters
Why is it needed?
For optimization: (gradient-based) optimization
algorithms need to know when the derivatives
become zero.
f ( p)
df *
(p ) 0
dp
p*
Copyright © Ali M. Sahlodin, Dept. of Chemical Engineering, AmirKabir Univ. of Tech. 4
2
12/7/2020
≈F(P*+ΔP)
P* P*+ΔP
How much would the reactor yield change if the reaction volume
changed by 5%?
dJ
Desired: sensitivity (p) at a certain parameter
dp
value
3
12/7/2020
Integrate ODEs
t ; p) f (t , x(t; p), p)
x(
J (p) (x(t f );p)
x(t0 ; p) h(p)
4
12/7/2020
Advantages
Easy to implement and calculate.
Mathematical dynamic model is not needed.
5
12/7/2020
Perturbation value
Too small: accuracy affected by
rounding errors
Too big:
Accuracy affected by truncation Model not
errors valid here
6
12/7/2020
f(x, x,p,
t) = 0 f x x p j f x x p j f p j = 0