MITESD 77S10 Lec09
MITESD 77S10 Lec09
Olivier de Weck
Karen Willcox
1 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Today‟s Topics
1.8
25
1.6 3. 3.2
5 3.
5
4
1.4 3.1
1.2
x2
1
3.1
3.2
3.5
5
5
0.8
4
3.1
5
0.6 3.25 3.2
3.5
J 1 0.4 4 3.5
1 2 5
4
x1 x1 x2 0.2
J 0
J 1 0 0.5 1 1.5 2
1 x1
x3
x2 J=3 x o
1 1 1
T
x1
Gradient vector points to larger values of J
5 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Other Gradient-Related Quantities
• Jacobian: Matrix of derivatives of multiple functions
w.r.t. vector of variables
J1 J2 Jz
J1 x1 x1 x1
J1 J2 Jz
J2
J J x2 x2 x2
J1 J2 Jz
Jz
xn xn xn
zx1 nxz
• Hessian: Matrix of second-order derivatives
2 2 2
J J J
x12 x1 x2 x1 xn
2 2 2
J J J
2J
H x2 x1 x22 x2 xn nxn
2 2 2
J J J
xn x1 xn x2 xn2
» syms x1 x2
» J=x1+x2+1/(x1*x2);
» dJdx1=diff(J,x1)
dJdx1 =1-1/x1^2/x2
» dJdx2=diff(J,x2)
dJdx2 = 1-1/x1/x2^2 difference operator
o 1 x1
true, analytical x 1 x
1
sensitivity x1
o
x11 - x1
13 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Finite Differences (V)
f xo x 2 f xo f xo x
f ''( xo )
x2 f x x
x
xo- x xo xo+ x
Gradient Error
-6
6 10
J 5 Rounding
4
3
Errors ~ 1/ x
-7
2 10
1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-8
x1 10 -9 -8 -7 -6
10 10 10 10
Perturbation Step Size x1
Choice of x is critical
15 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Perturbation Size x Choice
theoretical function
• Error Analysis (Gill et al. 1981)
1/ 2
x A f - Forward difference
1/ 3 A
x A f - Central difference
xo
• Machine Precision ~ x
computed
values
Step size q
xk xk 10 q-# of digits of machine
at k-th iteration Precision for real numbers
Im[ f ( x0 + iΔx)]
step
p
f ' ( x0 ) ≈
Δx
• Second order accurate
• Can use very small step sizes e.g. Δx ≈ 10 −20
– Doesn’t have rounding error, since it doesn’t perform
subtraction
• Limited application areas
– Code must be able to handle complex step values
J.R.R.A. Martins, I.M. Kroo and J.J. Alonso, An automated method for
sensitivity analysis using complex variables, AIAA Paper 2000-0689,
Jan 2000
R du R
u dx x
1
du R R
dx u x
21 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Adjoint Methods
1
dJ J J du J J R R
• We have
dx x u dx x u u x
1 T λT
• Now define J R
λ
u u
Design Variable
R
L
tornado chart
0 0.5 1 1.5 2 2.5
30 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Realistic Example: Spacecraft
NASA Nexus Spacecraft Concept
J2= Centroid Jitter on Focal Plane [RSS LOS]
60
40 1 pixel
T=5 sec
Centroid Y [ m]
Z 20
X
Y
0
14.97 m
Finite Element -20
Model
-40
0 1 2
Requirement: J2,req=5 m
meters -60
-60 -40 -20 0 20 40 60
Centroid X [ m]
Image by MIT OpenCourseWare. Simulation
Spacecraft
CAD model
“x”-domain “J”-domain
What are the design variables that are “drivers”
of system performance ?
31 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Graphical Representation
J1: Norm Sensitivities: RMMS WFE J2: Norm Sensitivities: RSS LOS
Graphical Representation of
Ru Ru
Us Us
Jacobian evaluated at design
Ud Ud xo, normalized for comparison.
disturbance
fc fc
variables
Qc Qc J1 J2
Tst Tst
Srg Srg Ru Ru
Sst Sst x0
Tgs Tgs
J
m_SM m_SM
Jo
Design Variables
K_yPM K_yPM
J1 J2
K_rISO K_rISO K cf K cf
variables
structural
m_bus m_bus
K_zpet K_zpet J1: RMMS WFE most sensitive to:
t_sp t_sp Ru - upper wheel speed limit [RPM]
I_ss I_ss
Sst - star tracker noise 1 [asec]
I_propt I_propt
zeta zeta
K_rISO - isolator joint stiffness [Nm/rad]
K_zpet - deploy petal stiffness [N/m]
variables variables
lambda lambda
control optics
Ro Ro
QE QE
J2: RSS LOS most sensitive to:
Mgs Mgs Ud - dynamic wheel imbalance [gcm2]
fca fca K_rISO - isolator joint stiffness [Nm/rad]
Kc analytical Kc zeta - proportional damping ratio [-]
finite difference
Kcf Kcf Mgs - guide star magnitude [mag]
-0.5 0 0.5 1 1.5 -0.5 0 0.5 1 1.5 Kcf - FSM controller gain [-]
x /J * J / x xo /J2,o * J2 / x
o 1,o 1
32 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Parameters
Parameters p are the fixed assumptions.
How sensitive is the optimal solution x* with respect
to fixed parameters ?
Optimal solution:
Example:
x* =[ R=106.1m, L=0m, N=17 cows]T
“Dairy Farm” sample problem
Fixed parameters:
cow
Parameters:
cow
N f=100$/m - Cost of fence
R
n=2000$/cow - Cost of a single cow
cow
m=2$/liter - Market price of milk
dJ J
JT x
dp p
dJ (first-order
J p
dp approximation)
x x p
j j p 0
j
p j M
j
g j ( x *)
p for all j not
T
g j ( x *) x active at x*
hk (x* ) h j (x* ) 0, j k
• Differentiating w.r.t
dx* dx*
hk 1 hj 0, j k
d d
41 © Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox
Engineering Systems Division and Dept. of Aeronautics and Astronautics
Lagrange Multiplier Interpretation
• How does the objective function change?
dJ dx*
J
d d
• Using KKT conditions:
dJ dx* dx*
j hj j hj k
d j d j d
Reading
Papalambros – Section 8.2 Computing Derivatives
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.