efficient cross-gramian-based state and parameter reduction

26
Efficient Cross-Gramian-Based State and Parameter Reduction Christian Himpe ([email protected]) Mario Ohlberger ([email protected]) WWU Münster Institute for Computational and Applied Mathematics WCCM XI/ECCM V/ECFD VI 24.07.14

Upload: gramian

Post on 19-Jun-2015

112 views

Category:

Science


2 download

DESCRIPTION

held at WCCM XI / ECCM V / ECFD VI, 2014

TRANSCRIPT

Page 1: Efficient Cross-Gramian-Based State and Parameter Reduction

Efficient Cross-Gramian-BasedState and Parameter Reduction

Christian Himpe ([email protected])Mario Ohlberger ([email protected])

WWU MünsterInstitute for Computational and Applied Mathematics

WCCM XI/ECCM V/ECFD VI24.07.14

Page 2: Efficient Cross-Gramian-Based State and Parameter Reduction

Application

We do:Model Order ReductionParameter Identification / Sensitivity AnalysisCombined Reduction

for:Brain Connectivity ModelsNetwork Models(Discretized) Partial Differential Equations

Page 3: Efficient Cross-Gramian-Based State and Parameter Reduction

Control Systems

Linear Control System:

x = Ax + Buy = Cx

x(0) = x0

Input / Control: u ∈ RM

State: x ∈ RN

Output: y ∈ RO

System Matrix: A ∈ RN×N

Input Matrix: B ∈ RN×M

Output Matrix: C ∈ RO×N

Page 4: Efficient Cross-Gramian-Based State and Parameter Reduction

Model Order Reduction

Original System:

x = Ax + Buy = Cx

x(0) = x0

Have:dim(x)� 1dim(u)� dim(x)

dim(y)� dim(x)

Reduced Order System:

˙x = Ax + Bu

y = C xx(0) = x0

Want:dim(x)� dim(x)

‖y − y‖ � 1

Page 5: Efficient Cross-Gramian-Based State and Parameter Reduction

Controllability & Observability [Moore’81]

Controllability:

Controllability Operator:

C(u) :=

∫ ∞0

eAtBu(t)dt

Controllability Gramian:

WC := CC∗

=

∫ ∞0

eAtBBT eAT tdt

⇔ AWC + WCAT = −BBT

Observability:

Observability Operator:

O(x0) := CeAtx0

Observability Gramian:

WO := O∗O

=

∫ ∞0

eAT tCTCeAtdt

⇔ ATWO + WOA = −CTC

→ Balanced Truncation

Page 6: Efficient Cross-Gramian-Based State and Parameter Reduction

Cross Gramian [Fernando & Nicholson’83]

Cross Gramian:

WX := CO =

∫ ∞0

eAtBCeAtdt ⇔ AX + XA = −BC

→ Approximate Balancing

System must be square:

dim(B) = dim(CT ).

If system is symmetric, thus

CeAB = (CeAB)T ,

Abs of the eigenvalues of WX equal the Hankel singular values,

W 2X = WCWO .

SISO systems are always symmetric:

CeAB ∈ R .

Page 7: Efficient Cross-Gramian-Based State and Parameter Reduction

Controllability-Based Cross Gramian [Fernando & Nicholson’85]

Controllability Gramian:

WC := CC∗ =

∫ ∞0

eAtBBT eAT tdt

Adjoint Augmented System:(xx∗

)=

(A 00 AT

)(xx∗

)+

(B

CT

)u′

Controllability Gramian of Adjoint Augmented System:

W+C =

(WC WXW T

X WO

)

Page 8: Efficient Cross-Gramian-Based State and Parameter Reduction

Cross-Gramian-Based State Reduction

Cross Gramian:

WX :=

∫ ∞0

eAtBCeAtdt

Direct Truncation:

WXSVD= UDV T

σ1 > σ2 > . . . > σk � σk+1 > . . . > σN

→ U =(U1 U2

)(State-)Reduced System:

A = UT1 AU1

B = UT1 B

C = CU1

x0 = UT1 x0

Page 9: Efficient Cross-Gramian-Based State and Parameter Reduction

Empirical Gramians [Lall’99]

System Gramians:

WC =

∫ ∞0

eAtB(eAtB)Tdt

WO =

∫ ∞0

eAT tCT (eAT tCT )Tdt

Empirical Gramians:

WC =

∫ ∞0

x(t)x(t)Tdt

WO =

∫ ∞0

x∗(t)x∗(t)Tdt

Note:Empirical computations (of impulse responses).Equal to classic gramians for linear systems.Extend to nonlinear systems.

Page 10: Efficient Cross-Gramian-Based State and Parameter Reduction

Empirical Cross Gramian

Cross Gramian:

WX :=

∫ ∞0

eAtBCeAtdt

=

∫ ∞0

eAtB(eAT tCT )Tdt

Empirical Cross Gramian:

WY =

∫ ∞0

x(t)x∗(t)Tdt

Page 11: Efficient Cross-Gramian-Based State and Parameter Reduction

(Nonlinear) Empirical Cross Gramian [H. & Ohlberger’14]

Analytic Cross Gramian

WX =

∫ ∞0

eAtBCeAtdt

(Linear) Empirical Cross Gramian

WY =

∫ T

0x(t)x∗(t)Tdt

(Nonlinear) Empirical Cross Gramian

W ′X =

1|Qu||Ru|m|Qx ||Rx |

|Qu |∑h=1

|Ru |∑i=1

m∑j=1

|Qx |∑k=1

|Rx |∑l=1

1chdk

∫ ∞0

TlΨhijkl(t)TT

l dt,

Ψhijklab (t) = f T

b TTk (xhij(t)− x)eT

i STh (ykla(t)− y)

For linear systems: WX = WY = W ′X

Page 12: Efficient Cross-Gramian-Based State and Parameter Reduction

Balanced Gains [Kabamba’85],[Davidson’86]

Impulse Response Norm:

‖y‖22 =

∫ ∞0

y(t)y(t)Tdt

=

∫ ∞0

CeAtB(CeAtB)Tdt =

∫ ∞0

CeAtBBT eAT tCTdt

= tr(CWCCT ) = tr(BTWOB)SISO only!

= tr(CWXB)

Balanced Gains:

tr(CWXB)SVD= tr(C (UDV ) B)

Bal.≈ tr((CU) D (UTB)) = tr(CDB)

=∑

i

|ci bi |σi =∑

i

di , Resort1 based on di .

1with Quicksort this is only of complexity O(n log n).

Page 13: Efficient Cross-Gramian-Based State and Parameter Reduction

Numerical Experiment

Model:2-D Heat EquationUnit-Square DomainFinite Difference DiscretizationImpulse InputLeft-Side: Inflow / InputRight-Side: Outflow / OutputVarying diffusion coefficients in every node

→ δ↗→

↘→↗

Σ →

Page 14: Efficient Cross-Gramian-Based State and Parameter Reduction

State + Output

State over Time 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

0.5

1

1.5

2

2.5

3x 10

−3

Time

Outp

ut

Page 15: Efficient Cross-Gramian-Based State and Parameter Reduction

emgr - Empirical Gramian Framework

Gramians:Empirical Controllability GramianEmpirical Observability GramianEmpirical Cross GramianEmpirical Linear Cross GramianEmpirical Sensitivity GramianEmpirical Identifiability GramianEmpirical Joint Gramian

Features:Uniform InterfaceCompatible with MATLAB & OCTAVE (& FREEMAT)Vectorized & ParallelizableOpen-Source licensed

More info at: http://gramian.de

Page 16: Efficient Cross-Gramian-Based State and Parameter Reduction

Numerical Results (Cross Gramians)

1 2 3 4 5 6 7 8 9 10 11 1210

−3

10−2

10−1

100

State Dimension

Rela

tive L

2 O

utp

ut E

rror

W

X

WY

Offline Time [s]:

WX : 23.9

WY : 0.5

Page 17: Efficient Cross-Gramian-Based State and Parameter Reduction

Numerical Results (Resorting)

1 2 3 4 5 6 7 8 9 10 11 1210

−3

10−2

10−1

100

State Dimension

Rela

tive L

2 O

utp

ut E

rror

W

X

WY(RESORT)

Offline Time [s]:

WX : 23.9

W ResortY : 0.6

Page 18: Efficient Cross-Gramian-Based State and Parameter Reduction

Control Systems (Revisited)

Parametrized Linear Control System:

x = A(θ)x + Buy = Cx

x(0) = x0

Input: u ∈ RM

State: x ∈ RN

Output: y ∈ RO

Parameters θ ∈ RP

System Matrix: A(θ) ∈ RN×N

Input Matrix: B ∈ RN×M

Output Matrix: C ∈ RO×N

Page 19: Efficient Cross-Gramian-Based State and Parameter Reduction

Model Order Reduction (Revisited)

Original System:

x = A(θ)x + Buy = Cx

x(0) = x0

Have:dim(x)� 1dim(θ)� 1

Reduced Order System:

˙x = A(θ)x + Bu

y = C xx(0) = x0

Want:dim(x)� dim(x)

dim(θ)� dim(θ)

‖y − y‖ � 1

Page 20: Efficient Cross-Gramian-Based State and Parameter Reduction

Cross-Gramian-Based Parameter Identification [H. & Ohlberger’14]

Parameter Augmented System:(xθ

)=

(A 00 0

)(xθ

)+

(B0

)u

y =(C 0

)(xθ

)(

x(0)θ(0)

)=

(x0θ0

)Joint Gramian: (Cross Gramian of Parameter Augmented System)

WJ =

(WX WM0 0

)Cross-Identifiability Gramian: (Schur Complement of SymmetricPart of Joint Gramian)

WI := −12WM(WX + W T

X )−1W TM

Page 21: Efficient Cross-Gramian-Based State and Parameter Reduction

Cross-Gramian-Based Parameter Reduction

Cross-Identifiability Gramian:

WI := −12WM(WX + W T

X )−1W TM

Direct Truncation:

WISVD= UDV T

σ1 > σ2 > . . . > σk � σk+1 > . . . > σN

→ U =(U1 U2

)Reduced Parameters:

θ = U1θ

Page 22: Efficient Cross-Gramian-Based State and Parameter Reduction

Cross-Gramian-Based Combined Reduction

Combined State and Parameter Reduction:1 Compute Joint Gramian WJ

2 Compute from WJ the Cross-Identifiability Gramian WI

3 Compute SVD of Cross-Identifiability Gramian WI

4 “Balance” and Reduce Parameter Dimension5 Extract the Cross Gramian WX from WJ

6 Compute SVD of Cross Gramian WX

7 Balance and Reduce State Dimension

Remember:System has to be symmetric!Empirical Joint Gramian is just an Empirical Cross Gramian!

Page 23: Efficient Cross-Gramian-Based State and Parameter Reduction

Numerical Experiment

Model:2-D Heat EquationUnit-Square DomainFinite Difference DiscretizationImpulse InputLeft-Side: Inflow / InputRight-Side: Outflow / OutputParametrization: varying diffusion coefficients in every node

→ δ↗→

↘→↗

Σ →

Page 24: Efficient Cross-Gramian-Based State and Parameter Reduction

emgr - Empirical Gramian Framework

Gramians:Empirical Controllability GramianEmpirical Observability GramianEmpirical Cross GramianEmpirical Linear Cross GramianEmpirical Sensitivity GramianEmpirical Identifiability GramianEmpirical Joint Gramian

Features:Uniform InterfaceCompatible with MATLAB & OCTAVE (& FREEMAT)Vectorized & ParallelizableOpen-Source licensed

More info at: http://gramian.de

Page 25: Efficient Cross-Gramian-Based State and Parameter Reduction

Numerical Results (Combined Reduction)

10 20 30 40 50 6010

−4

10−3

10−2

10−1

100

State Dimension

Rela

tive L

2 O

utp

ut E

rror

W

X

WJ(COMBINED)

Offline Time [s]:

WX : 23.9

WJ : 27.5

Page 26: Efficient Cross-Gramian-Based State and Parameter Reduction

tl;dl

Can Do:Empirical Cross Gramian (for Linear & Nonlinear Systems)Empirical Joint Gramian (& Cross-Identifiability Gramian)

Want To:Parametric Controllability-Based Cross GramianNon-Symmetric Cross Gramian

Companion Code: http://j.mp/eccomas14

Thanks!