SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Symbolic Transformations of
Dynamic Optimization Problems
Fredrik Magnusson
Karl Berntorp, Björn Olofsson, and Johan Åkesson
Department of Automatic Control
Faculty of Engineering
Lund University, Sweden
March 12, 2014
Introduction
Optimization problems involving differential-algebraic
equation (DAE) systems traditionally solved retaining DAE
Consider instead symbolically transforming the DAE into
an ODE before solving the problem
Will discuss how and why, and present case studies
1 / 17
Dynamic optimization
Optimal control
Design optimization
Parameter estimation
State estimation
In practice quite different problems, but solution techniques can
be very similar.
2 / 17
JModelica.org
Developed in Lund, Sweden at Modelon AB and Lund
University
Targets both simulation and optimization
Optimica for optimization formulations
3 / 17
System dynamics notation
System dynamics modeled by a differential algebraic equation
(DAE) system of the form
F(t, ˙x(t),x(t), y(t),u(t), p) = 0.
t ∈ [t0,tf ] is time (endpoints free or fixed, but always finite)
x is vector of state variables
y is vector of algebraic variables
u is vector of control variables
p is vector of free parameters
DAE system is assumed to be of index one
4 / 17
Objective function and constraints
We want to minimize
tf
t0
L(τ, ˙x(τ),x(τ), y(τ),u(τ), p)dτ
while satisfying the DAE system and the constraints
he(t, ˙x(t),x(t), y(t),u(t), p) = 0,
hi(t, ˙x(t),x(t), y(t),u(t), p) ≤ 0,
∀t ∈ [t0,tf ].
5 / 17
Dynamic optimization problem
The result is the DAE-constrained optimization problem
minimize
tf
t0
L(τ, ˙x(τ),x(τ), y(τ),u(τ), p)dτ,
with respect to t0,tf , ˙x(t),x(t), y(t),u(t), p,
subject to F(t, ˙x(t),x(t), y(t),u(t), p) = 0,
x(t0) = 0,
he(t, ˙x(t),x(t), y(t),u(t), p) = 0,
hi(t, ˙x(t),x(t), y(t),u(t), p) ≤ 0,
∀t ∈ [t0,tf ].
6 / 17
Symbolic transformation
Instead of solving the DAE-constrained optimization
problem, transform it to an ODE-constrained problem
before solving
Achieved by eliminating algebraic variables through
causalization
Main benefit is reduced number of equations and variables
Main drawback is increased equation complexity
7 / 17
Dynamic optimization problem
The result is the
ODE
DAE-constrained optimization problem
minimize
tf
t0
L(τ, ˙x(τ),x(τ), y(τ),u(τ), p)dτ,
with respect to t0,tf , ˙x(t),x(t), y(t),u(t), p,
subject to F(t, ˙x,x, y,u, p) = 0, ˙x = f (t,x,u, p),
x(t0) = 0,
he(t, ˙x(t),x(t), y(t),u(t), p) = 0,
hi(t, ˙x(t),x(t), y(t),u(t), p) ≤ 0,
∀t ∈ [t0,tf ].
8 / 17
Causalization
Main step is DAE causalization
Permute variables and equations to get a block-lower
triangular (BLT) form of the DAE incidence matrix:
˙x1 y3 y1 ˙x2 y2
F2 ∗ 0 0 0 0
F4 ∗ ∗ ∗ 0 0
F1 0 ∗ ∗ 0 0
F5 0 0 ∗ ∗ 0
F3 ∗ ∗ 0 ∗ ∗
Solve for ˙x and y, symbolically or iteratively
9 / 17
Causalization cont.
We assume that all equation systems can be solved
symbolically (no algebraic loops)
The result is functions f and such that
˙x = f (t,x,u, p),
y = (t,x,u, p).
f is used to replace the DAE with an ODE
is inlined to eliminate y
10 / 17
Method properties
Less optimization variables, more complex expressions
Less sparse system, but minor issue when using e.g. local
collocation to solve optimization problem
Robustness with respect to trivial algebraic equation
modifications
Generalization is to only eliminate the algebraic variables
which can be solved for symbolically
11 / 17
Benchmark
Comparison of solving the original and transformed
problem using direct local collocation
Two case studies: optimal vehicle trajectory generation
and power plant startup
12 / 17
Vehicle trajectory generation
Generate trajectories minimizing duration of hairpin turn
Two chassis models: double and single track (DT & ST)
Two tire force models: friction ellipse and weighting
functions (FE & WF)
4 different models. Most complex has 21 states, 56
algebraic variables and 3 control variables.
Atypical Modelica model; flat implementation
13 / 17
Power plant startup
Optimize startup of combined cycle power plant
Model has 10 states, 128 algebraic variables and 1 control
variable.
Control variable is steam turbine load
Typical Modelica model; component-based
14 / 17
Results
Problem Sol. time [s] Iter. Nbr. of var.
ST–FE
DAE 10.6 112 20880
ODE 5.0 83 15017
ST–WF
DAE 17.6 102 25390
ODE 5.1 77 15017
DT–FE
DAE 152.2 303 39661
ODE 46.0 151 23425
DT–WF
DAE 229.6 364 48681
ODE 116.4 322 23425
CCPP
DAE 5.4 109 23574
ODE 1.4 79 3771
15 / 17
Conclusion
The transformation drastically reduces the size of the
problem
Reduced solution time, between 2 and 4 times for
considered cases
Especially useful for models involving a lot of simple
equations, as is typical for Modelica models
Seems to be beneficial also for atypical Modelica models,
despite lack of attention outside of the Modelica community
16 / 17
The end
Thank you for listening!
The End
17 / 17

Weitere ähnliche Inhalte

Andere mochten auch

Quotes That Help You Accomplish the Impossible
Quotes That Help You Accomplish the ImpossibleQuotes That Help You Accomplish the Impossible
Quotes That Help You Accomplish the ImpossibleNutryst
 
Digital Forensics: The next 10 years
Digital Forensics: The next 10 yearsDigital Forensics: The next 10 years
Digital Forensics: The next 10 yearsAl Imran, CISA
 
18182582 kpt5033 kuliah5
18182582 kpt5033 kuliah518182582 kpt5033 kuliah5
18182582 kpt5033 kuliah5souqaboufirkhah
 
TBMU#29 ブログと他メディアとの連携
TBMU#29 ブログと他メディアとの連携TBMU#29 ブログと他メディアとの連携
TBMU#29 ブログと他メディアとの連携Tomaki Maeda
 
product catalog
product catalogproduct catalog
product catalogHendra M
 
Artempresa en IEco de Clarín
Artempresa en IEco de ClarínArtempresa en IEco de Clarín
Artempresa en IEco de ClarínArtempresa
 
Best 25 kitchen interior designs
Best 25 kitchen interior designsBest 25 kitchen interior designs
Best 25 kitchen interior designsbadar masbadar
 
Sales management 1
Sales management 1Sales management 1
Sales management 1ankitsengar
 
Price Is Right 2009 Etech
Price Is Right 2009 EtechPrice Is Right 2009 Etech
Price Is Right 2009 Etechplarval
 
Diagram atau Denah Gambar Teknik Listrik
Diagram atau Denah Gambar Teknik ListrikDiagram atau Denah Gambar Teknik Listrik
Diagram atau Denah Gambar Teknik ListrikRizky Arya
 
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIKTUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIKhabipolman
 
презентация3
презентация3презентация3
презентация3Nik929
 
Naomi Bergstresser_Slide Presentation
Naomi Bergstresser_Slide PresentationNaomi Bergstresser_Slide Presentation
Naomi Bergstresser_Slide PresentationNaomi Bergstresser
 

Andere mochten auch (18)

Quotes That Help You Accomplish the Impossible
Quotes That Help You Accomplish the ImpossibleQuotes That Help You Accomplish the Impossible
Quotes That Help You Accomplish the Impossible
 
Digital Forensics: The next 10 years
Digital Forensics: The next 10 yearsDigital Forensics: The next 10 years
Digital Forensics: The next 10 years
 
Bab1 2
Bab1 2Bab1 2
Bab1 2
 
18182582 kpt5033 kuliah5
18182582 kpt5033 kuliah518182582 kpt5033 kuliah5
18182582 kpt5033 kuliah5
 
TBMU#29 ブログと他メディアとの連携
TBMU#29 ブログと他メディアとの連携TBMU#29 ブログと他メディアとの連携
TBMU#29 ブログと他メディアとの連携
 
product catalog
product catalogproduct catalog
product catalog
 
Doc1
Doc1Doc1
Doc1
 
TBMU#24 Design
TBMU#24 DesignTBMU#24 Design
TBMU#24 Design
 
Artempresa en IEco de Clarín
Artempresa en IEco de ClarínArtempresa en IEco de Clarín
Artempresa en IEco de Clarín
 
Best 25 kitchen interior designs
Best 25 kitchen interior designsBest 25 kitchen interior designs
Best 25 kitchen interior designs
 
Sales management 1
Sales management 1Sales management 1
Sales management 1
 
Price Is Right 2009 Etech
Price Is Right 2009 EtechPrice Is Right 2009 Etech
Price Is Right 2009 Etech
 
Diagram atau Denah Gambar Teknik Listrik
Diagram atau Denah Gambar Teknik ListrikDiagram atau Denah Gambar Teknik Listrik
Diagram atau Denah Gambar Teknik Listrik
 
Bangla OCR
Bangla OCRBangla OCR
Bangla OCR
 
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIKTUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
 
Trabajo info (1)
Trabajo info (1)Trabajo info (1)
Trabajo info (1)
 
презентация3
презентация3презентация3
презентация3
 
Naomi Bergstresser_Slide Presentation
Naomi Bergstresser_Slide PresentationNaomi Bergstresser_Slide Presentation
Naomi Bergstresser_Slide Presentation
 

Ähnlich wie Symbolic Transformations Reduce Size and Solve Time of Dynamic Optimization Problems

Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...
Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...
Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...IOSR Journals
 
from_data_to_differential_equations.ppt
from_data_to_differential_equations.pptfrom_data_to_differential_equations.ppt
from_data_to_differential_equations.pptashutoshvb1
 
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...IJERA Editor
 
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...theijes
 
transformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañotransformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañoluis506251
 
Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Chyi-Tsong Chen
 
A Numerical Method For Friction Problems With Multiple Contacts
A Numerical Method For Friction Problems With Multiple ContactsA Numerical Method For Friction Problems With Multiple Contacts
A Numerical Method For Friction Problems With Multiple ContactsJoshua Gorinson
 
Dynamic Economic Dispatch Assessment Using Particle Swarm Optimization Technique
Dynamic Economic Dispatch Assessment Using Particle Swarm Optimization TechniqueDynamic Economic Dispatch Assessment Using Particle Swarm Optimization Technique
Dynamic Economic Dispatch Assessment Using Particle Swarm Optimization TechniquejournalBEEI
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Chyi-Tsong Chen
 
Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...
Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...
Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...Power System Operation
 
Sampling-Based Planning Algorithms for Multi-Objective Missions
Sampling-Based Planning Algorithms for Multi-Objective MissionsSampling-Based Planning Algorithms for Multi-Objective Missions
Sampling-Based Planning Algorithms for Multi-Objective MissionsMd Mahbubur Rahman
 
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfDeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfSean Meyn
 
Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...
Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...
Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...IJERA Editor
 

Ähnlich wie Symbolic Transformations Reduce Size and Solve Time of Dynamic Optimization Problems (20)

Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...
Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...
Adomian Decomposition Method for Certain Space-Time Fractional Partial Differ...
 
Ep 5512 lecture-02
Ep 5512 lecture-02Ep 5512 lecture-02
Ep 5512 lecture-02
 
from_data_to_differential_equations.ppt
from_data_to_differential_equations.pptfrom_data_to_differential_equations.ppt
from_data_to_differential_equations.ppt
 
Laplace
LaplaceLaplace
Laplace
 
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
 
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
 
transformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañotransformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eaño
 
Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 04 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
A Numerical Method For Friction Problems With Multiple Contacts
A Numerical Method For Friction Problems With Multiple ContactsA Numerical Method For Friction Problems With Multiple Contacts
A Numerical Method For Friction Problems With Multiple Contacts
 
Dynamic Economic Dispatch Assessment Using Particle Swarm Optimization Technique
Dynamic Economic Dispatch Assessment Using Particle Swarm Optimization TechniqueDynamic Economic Dispatch Assessment Using Particle Swarm Optimization Technique
Dynamic Economic Dispatch Assessment Using Particle Swarm Optimization Technique
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
presentation1.pdf
presentation1.pdfpresentation1.pdf
presentation1.pdf
 
Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...
Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...
Parallel-in-Time Object-Oriented Electromagnetic Transient Simulation of Powe...
 
B-G-3
B-G-3B-G-3
B-G-3
 
Sampling-Based Planning Algorithms for Multi-Objective Missions
Sampling-Based Planning Algorithms for Multi-Objective MissionsSampling-Based Planning Algorithms for Multi-Objective Missions
Sampling-Based Planning Algorithms for Multi-Objective Missions
 
02_AJMS_297_21.pdf
02_AJMS_297_21.pdf02_AJMS_297_21.pdf
02_AJMS_297_21.pdf
 
Intro to modelling_wur
Intro to modelling_wurIntro to modelling_wur
Intro to modelling_wur
 
Fluid Mechanics in CFD Perspective
Fluid Mechanics in CFD PerspectiveFluid Mechanics in CFD Perspective
Fluid Mechanics in CFD Perspective
 
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfDeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
 
Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...
Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...
Stochastic Analysis of Van der Pol OscillatorModel Using Wiener HermiteExpans...
 

Mehr von Modelon

Vehicle Dynamics Library - Overview
Vehicle Dynamics Library - OverviewVehicle Dynamics Library - Overview
Vehicle Dynamics Library - OverviewModelon
 
Vapor Cycle Library - Overview
Vapor Cycle Library - OverviewVapor Cycle Library - Overview
Vapor Cycle Library - OverviewModelon
 
Thermal Power Library - Overview
Thermal Power Library - OverviewThermal Power Library - Overview
Thermal Power Library - OverviewModelon
 
Pneumatics Library - Overview
Pneumatics Library - OverviewPneumatics Library - Overview
Pneumatics Library - OverviewModelon
 
Liquid Cooling Library - Overview
Liquid Cooling Library - OverviewLiquid Cooling Library - Overview
Liquid Cooling Library - OverviewModelon
 
Jet Propulsion Library - Overview
Jet Propulsion Library - OverviewJet Propulsion Library - Overview
Jet Propulsion Library - OverviewModelon
 
Heat Exchanger Library - Overview
Heat Exchanger Library - OverviewHeat Exchanger Library - Overview
Heat Exchanger Library - OverviewModelon
 
Hydro Power Library - Overview
Hydro Power Library - OverviewHydro Power Library - Overview
Hydro Power Library - OverviewModelon
 
Hydraulics Library - Overview
Hydraulics Library - OverviewHydraulics Library - Overview
Hydraulics Library - OverviewModelon
 
Fuel System Library Overview
Fuel System Library OverviewFuel System Library Overview
Fuel System Library OverviewModelon
 
Fuel Cell Library - Overview
Fuel Cell Library - OverviewFuel Cell Library - Overview
Fuel Cell Library - OverviewModelon
 
Electric Power Library - Overview
Electric Power Library - OverviewElectric Power Library - Overview
Electric Power Library - OverviewModelon
 
Electrification Library - Overview
Electrification Library - OverviewElectrification Library - Overview
Electrification Library - OverviewModelon
 
Engine Dynamics Library - Overview
Engine Dynamics Library - OverviewEngine Dynamics Library - Overview
Engine Dynamics Library - OverviewModelon
 
Environmental Control Library - Overview
Environmental Control Library - OverviewEnvironmental Control Library - Overview
Environmental Control Library - OverviewModelon
 
Aircraft Dynamics Library - Overview
Aircraft Dynamics Library - OverviewAircraft Dynamics Library - Overview
Aircraft Dynamics Library - OverviewModelon
 
Air Conditioning Library - Overview
Air Conditioning Library - OverviewAir Conditioning Library - Overview
Air Conditioning Library - OverviewModelon
 
Fuel System Library - Overview
Fuel System Library - OverviewFuel System Library - Overview
Fuel System Library - OverviewModelon
 
FMI Composer Overview
FMI Composer OverviewFMI Composer Overview
FMI Composer OverviewModelon
 
Model Testing Toolkit - Overview
Model Testing Toolkit - OverviewModel Testing Toolkit - Overview
Model Testing Toolkit - OverviewModelon
 

Mehr von Modelon (20)

Vehicle Dynamics Library - Overview
Vehicle Dynamics Library - OverviewVehicle Dynamics Library - Overview
Vehicle Dynamics Library - Overview
 
Vapor Cycle Library - Overview
Vapor Cycle Library - OverviewVapor Cycle Library - Overview
Vapor Cycle Library - Overview
 
Thermal Power Library - Overview
Thermal Power Library - OverviewThermal Power Library - Overview
Thermal Power Library - Overview
 
Pneumatics Library - Overview
Pneumatics Library - OverviewPneumatics Library - Overview
Pneumatics Library - Overview
 
Liquid Cooling Library - Overview
Liquid Cooling Library - OverviewLiquid Cooling Library - Overview
Liquid Cooling Library - Overview
 
Jet Propulsion Library - Overview
Jet Propulsion Library - OverviewJet Propulsion Library - Overview
Jet Propulsion Library - Overview
 
Heat Exchanger Library - Overview
Heat Exchanger Library - OverviewHeat Exchanger Library - Overview
Heat Exchanger Library - Overview
 
Hydro Power Library - Overview
Hydro Power Library - OverviewHydro Power Library - Overview
Hydro Power Library - Overview
 
Hydraulics Library - Overview
Hydraulics Library - OverviewHydraulics Library - Overview
Hydraulics Library - Overview
 
Fuel System Library Overview
Fuel System Library OverviewFuel System Library Overview
Fuel System Library Overview
 
Fuel Cell Library - Overview
Fuel Cell Library - OverviewFuel Cell Library - Overview
Fuel Cell Library - Overview
 
Electric Power Library - Overview
Electric Power Library - OverviewElectric Power Library - Overview
Electric Power Library - Overview
 
Electrification Library - Overview
Electrification Library - OverviewElectrification Library - Overview
Electrification Library - Overview
 
Engine Dynamics Library - Overview
Engine Dynamics Library - OverviewEngine Dynamics Library - Overview
Engine Dynamics Library - Overview
 
Environmental Control Library - Overview
Environmental Control Library - OverviewEnvironmental Control Library - Overview
Environmental Control Library - Overview
 
Aircraft Dynamics Library - Overview
Aircraft Dynamics Library - OverviewAircraft Dynamics Library - Overview
Aircraft Dynamics Library - Overview
 
Air Conditioning Library - Overview
Air Conditioning Library - OverviewAir Conditioning Library - Overview
Air Conditioning Library - Overview
 
Fuel System Library - Overview
Fuel System Library - OverviewFuel System Library - Overview
Fuel System Library - Overview
 
FMI Composer Overview
FMI Composer OverviewFMI Composer Overview
FMI Composer Overview
 
Model Testing Toolkit - Overview
Model Testing Toolkit - OverviewModel Testing Toolkit - Overview
Model Testing Toolkit - Overview
 

Kürzlich hochgeladen

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 

Kürzlich hochgeladen (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

Symbolic Transformations Reduce Size and Solve Time of Dynamic Optimization Problems

  • 1. Symbolic Transformations of Dynamic Optimization Problems Fredrik Magnusson Karl Berntorp, Björn Olofsson, and Johan Åkesson Department of Automatic Control Faculty of Engineering Lund University, Sweden March 12, 2014
  • 2. Introduction Optimization problems involving differential-algebraic equation (DAE) systems traditionally solved retaining DAE Consider instead symbolically transforming the DAE into an ODE before solving the problem Will discuss how and why, and present case studies 1 / 17
  • 3. Dynamic optimization Optimal control Design optimization Parameter estimation State estimation In practice quite different problems, but solution techniques can be very similar. 2 / 17
  • 4. JModelica.org Developed in Lund, Sweden at Modelon AB and Lund University Targets both simulation and optimization Optimica for optimization formulations 3 / 17
  • 5. System dynamics notation System dynamics modeled by a differential algebraic equation (DAE) system of the form F(t, ˙x(t),x(t), y(t),u(t), p) = 0. t ∈ [t0,tf ] is time (endpoints free or fixed, but always finite) x is vector of state variables y is vector of algebraic variables u is vector of control variables p is vector of free parameters DAE system is assumed to be of index one 4 / 17
  • 6. Objective function and constraints We want to minimize tf t0 L(τ, ˙x(τ),x(τ), y(τ),u(τ), p)dτ while satisfying the DAE system and the constraints he(t, ˙x(t),x(t), y(t),u(t), p) = 0, hi(t, ˙x(t),x(t), y(t),u(t), p) ≤ 0, ∀t ∈ [t0,tf ]. 5 / 17
  • 7. Dynamic optimization problem The result is the DAE-constrained optimization problem minimize tf t0 L(τ, ˙x(τ),x(τ), y(τ),u(τ), p)dτ, with respect to t0,tf , ˙x(t),x(t), y(t),u(t), p, subject to F(t, ˙x(t),x(t), y(t),u(t), p) = 0, x(t0) = 0, he(t, ˙x(t),x(t), y(t),u(t), p) = 0, hi(t, ˙x(t),x(t), y(t),u(t), p) ≤ 0, ∀t ∈ [t0,tf ]. 6 / 17
  • 8. Symbolic transformation Instead of solving the DAE-constrained optimization problem, transform it to an ODE-constrained problem before solving Achieved by eliminating algebraic variables through causalization Main benefit is reduced number of equations and variables Main drawback is increased equation complexity 7 / 17
  • 9. Dynamic optimization problem The result is the ODE DAE-constrained optimization problem minimize tf t0 L(τ, ˙x(τ),x(τ), y(τ),u(τ), p)dτ, with respect to t0,tf , ˙x(t),x(t), y(t),u(t), p, subject to F(t, ˙x,x, y,u, p) = 0, ˙x = f (t,x,u, p), x(t0) = 0, he(t, ˙x(t),x(t), y(t),u(t), p) = 0, hi(t, ˙x(t),x(t), y(t),u(t), p) ≤ 0, ∀t ∈ [t0,tf ]. 8 / 17
  • 10. Causalization Main step is DAE causalization Permute variables and equations to get a block-lower triangular (BLT) form of the DAE incidence matrix: ˙x1 y3 y1 ˙x2 y2 F2 ∗ 0 0 0 0 F4 ∗ ∗ ∗ 0 0 F1 0 ∗ ∗ 0 0 F5 0 0 ∗ ∗ 0 F3 ∗ ∗ 0 ∗ ∗ Solve for ˙x and y, symbolically or iteratively 9 / 17
  • 11. Causalization cont. We assume that all equation systems can be solved symbolically (no algebraic loops) The result is functions f and such that ˙x = f (t,x,u, p), y = (t,x,u, p). f is used to replace the DAE with an ODE is inlined to eliminate y 10 / 17
  • 12. Method properties Less optimization variables, more complex expressions Less sparse system, but minor issue when using e.g. local collocation to solve optimization problem Robustness with respect to trivial algebraic equation modifications Generalization is to only eliminate the algebraic variables which can be solved for symbolically 11 / 17
  • 13. Benchmark Comparison of solving the original and transformed problem using direct local collocation Two case studies: optimal vehicle trajectory generation and power plant startup 12 / 17
  • 14. Vehicle trajectory generation Generate trajectories minimizing duration of hairpin turn Two chassis models: double and single track (DT & ST) Two tire force models: friction ellipse and weighting functions (FE & WF) 4 different models. Most complex has 21 states, 56 algebraic variables and 3 control variables. Atypical Modelica model; flat implementation 13 / 17
  • 15. Power plant startup Optimize startup of combined cycle power plant Model has 10 states, 128 algebraic variables and 1 control variable. Control variable is steam turbine load Typical Modelica model; component-based 14 / 17
  • 16. Results Problem Sol. time [s] Iter. Nbr. of var. ST–FE DAE 10.6 112 20880 ODE 5.0 83 15017 ST–WF DAE 17.6 102 25390 ODE 5.1 77 15017 DT–FE DAE 152.2 303 39661 ODE 46.0 151 23425 DT–WF DAE 229.6 364 48681 ODE 116.4 322 23425 CCPP DAE 5.4 109 23574 ODE 1.4 79 3771 15 / 17
  • 17. Conclusion The transformation drastically reduces the size of the problem Reduced solution time, between 2 and 4 times for considered cases Especially useful for models involving a lot of simple equations, as is typical for Modelica models Seems to be beneficial also for atypical Modelica models, despite lack of attention outside of the Modelica community 16 / 17
  • 18. The end Thank you for listening! The End 17 / 17