SlideShare a Scribd company logo
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

More Related Content

PDF
Local Optimal Polarization of Piezoelectric Material
Fabian Wein
 
PDF
A Comparative Study of Acoustic Echo Cancellation Algorithms in Sparse Impuls...
IJERA Editor
 
PDF
Modified Vortex Search Algorithm for Real Parameter Optimization
csandit
 
PDF
FPDE presentation
Divyansh Verma
 
DOCX
Method of weighted residuals
Jasim Almuhandis
 
PDF
Design and analysis of ra sort
ijfcstjournal
 
PDF
Conformal field theories and three point functions
Subham Dutta Chowdhury
 
PDF
GENETIC ALGORITHM FOR FUNCTION APPROXIMATION: AN EXPERIMENTAL INVESTIGATION
ijaia
 
Local Optimal Polarization of Piezoelectric Material
Fabian Wein
 
A Comparative Study of Acoustic Echo Cancellation Algorithms in Sparse Impuls...
IJERA Editor
 
Modified Vortex Search Algorithm for Real Parameter Optimization
csandit
 
FPDE presentation
Divyansh Verma
 
Method of weighted residuals
Jasim Almuhandis
 
Design and analysis of ra sort
ijfcstjournal
 
Conformal field theories and three point functions
Subham Dutta Chowdhury
 
GENETIC ALGORITHM FOR FUNCTION APPROXIMATION: AN EXPERIMENTAL INVESTIGATION
ijaia
 

Viewers also liked (18)

PDF
Quotes That Help You Accomplish the Impossible
Nutryst
 
PPT
Digital Forensics: The next 10 years
Al Imran, CISA
 
PPT
18182582 kpt5033 kuliah5
souqaboufirkhah
 
PPTX
TBMU#29 ブログと他メディアとの連携
Tomaki Maeda
 
PDF
product catalog
Hendra M
 
DOCX
Doc1
Nicolas Ramirez
 
PPTX
TBMU#24 Design
Tomaki Maeda
 
PPT
Artempresa en IEco de Clarín
Artempresa
 
PPTX
Best 25 kitchen interior designs
badar masbadar
 
PPT
Sales management 1
ankitsengar
 
PDF
Price Is Right 2009 Etech
plarval
 
PDF
Diagram atau Denah Gambar Teknik Listrik
Rizky Arya
 
PPT
Bangla OCR
Al Imran, CISA
 
PDF
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
habipolman
 
PPTX
Trabajo info (1)
Penelope Pereira
 
PPT
презентация3
Nik929
 
PDF
Naomi Bergstresser_Slide Presentation
Naomi Bergstresser
 
Quotes That Help You Accomplish the Impossible
Nutryst
 
Digital Forensics: The next 10 years
Al Imran, CISA
 
18182582 kpt5033 kuliah5
souqaboufirkhah
 
TBMU#29 ブログと他メディアとの連携
Tomaki Maeda
 
product catalog
Hendra M
 
TBMU#24 Design
Tomaki Maeda
 
Artempresa en IEco de Clarín
Artempresa
 
Best 25 kitchen interior designs
badar masbadar
 
Sales management 1
ankitsengar
 
Price Is Right 2009 Etech
plarval
 
Diagram atau Denah Gambar Teknik Listrik
Rizky Arya
 
Bangla OCR
Al Imran, CISA
 
TUGAS PRAKTIKUM GAMBAR TEKNIK LISTRIK
habipolman
 
Trabajo info (1)
Penelope Pereira
 
презентация3
Nik929
 
Naomi Bergstresser_Slide Presentation
Naomi Bergstresser
 
Ad

Similar to Symbolic Transformations of Dynamic Optimization Problems (20)

PPTX
Optimica Compiler Toolkit - Overview
Modelon
 
PPT
lecture.ppt
FathiShokry
 
PDF
Post-optimal analysis of LPP
RAVI PRASAD K.J.
 
PDF
Modulation Strategies for Dynamical Systems - Part 1
LukasHuber12
 
PPT
aaoczc2252
Perumal_Gopi42
 
PDF
Chapter 4 Duality & sensitivity analysis hand out last .pdf
Tsegay Berhe
 
PDF
A Factor Graph Approach To Constrained Optimization
Wendy Berg
 
PDF
Chapter 4 Duality & sensitivity analysis.pdf
Tsegay Berhe
 
PDF
(Ebook) Two-Degree-of-Freedom Control Systems: The Youla Parameterization App...
bernycimenko
 
PPT
LP.ppt
RahulShah109289
 
PDF
Modern Control System (BE)
PRABHAHARAN429
 
PPTX
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
SAJJAD KHUDHUR ABBAS
 
DOCX
Chapter 4Optimization Manifesto OurMission and Our Unif.docx
christinemaritza
 
PDF
Dennis j e, schnabel b numerical methods for unconstrained optimization and n...
Bruno Rush
 
PDF
65487681 60444264-engineering-optimization-theory-and-practice-4th-edition
Ashish Arora
 
PPT
Duality
Sachin MK
 
PPTX
Concept of Duality
SubhamSatpathy2
 
PDF
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
Sean Meyn
 
PPT
STate Space Analysis
Hussain K
 
PDF
Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
Belinda Marchand
 
Optimica Compiler Toolkit - Overview
Modelon
 
lecture.ppt
FathiShokry
 
Post-optimal analysis of LPP
RAVI PRASAD K.J.
 
Modulation Strategies for Dynamical Systems - Part 1
LukasHuber12
 
aaoczc2252
Perumal_Gopi42
 
Chapter 4 Duality & sensitivity analysis hand out last .pdf
Tsegay Berhe
 
A Factor Graph Approach To Constrained Optimization
Wendy Berg
 
Chapter 4 Duality & sensitivity analysis.pdf
Tsegay Berhe
 
(Ebook) Two-Degree-of-Freedom Control Systems: The Youla Parameterization App...
bernycimenko
 
Modern Control System (BE)
PRABHAHARAN429
 
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
SAJJAD KHUDHUR ABBAS
 
Chapter 4Optimization Manifesto OurMission and Our Unif.docx
christinemaritza
 
Dennis j e, schnabel b numerical methods for unconstrained optimization and n...
Bruno Rush
 
65487681 60444264-engineering-optimization-theory-and-practice-4th-edition
Ashish Arora
 
Duality
Sachin MK
 
Concept of Duality
SubhamSatpathy2
 
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
Sean Meyn
 
STate Space Analysis
Hussain K
 
Discrete Nonlinear Optimal Control of S/C Formations Near The L1 and L2 poi...
Belinda Marchand
 
Ad

More from Modelon (20)

PPTX
Vehicle Dynamics Library - Overview
Modelon
 
PPTX
Vapor Cycle Library - Overview
Modelon
 
PPTX
Thermal Power Library - Overview
Modelon
 
PPTX
Pneumatics Library - Overview
Modelon
 
PPTX
Liquid Cooling Library - Overview
Modelon
 
PPTX
Jet Propulsion Library - Overview
Modelon
 
PPTX
Heat Exchanger Library - Overview
Modelon
 
PPTX
Hydro Power Library - Overview
Modelon
 
PPTX
Hydraulics Library - Overview
Modelon
 
PPTX
Fuel System Library Overview
Modelon
 
PPTX
Fuel Cell Library - Overview
Modelon
 
PPTX
Electric Power Library - Overview
Modelon
 
PPTX
Electrification Library - Overview
Modelon
 
PPTX
Engine Dynamics Library - Overview
Modelon
 
PPTX
Environmental Control Library - Overview
Modelon
 
PPTX
Aircraft Dynamics Library - Overview
Modelon
 
PPTX
Air Conditioning Library - Overview
Modelon
 
PDF
Fuel System Library - Overview
Modelon
 
PPTX
FMI Composer Overview
Modelon
 
PPTX
Model Testing Toolkit - Overview
Modelon
 
Vehicle Dynamics Library - Overview
Modelon
 
Vapor Cycle Library - Overview
Modelon
 
Thermal Power Library - Overview
Modelon
 
Pneumatics Library - Overview
Modelon
 
Liquid Cooling Library - Overview
Modelon
 
Jet Propulsion Library - Overview
Modelon
 
Heat Exchanger Library - Overview
Modelon
 
Hydro Power Library - Overview
Modelon
 
Hydraulics Library - Overview
Modelon
 
Fuel System Library Overview
Modelon
 
Fuel Cell Library - Overview
Modelon
 
Electric Power Library - Overview
Modelon
 
Electrification Library - Overview
Modelon
 
Engine Dynamics Library - Overview
Modelon
 
Environmental Control Library - Overview
Modelon
 
Aircraft Dynamics Library - Overview
Modelon
 
Air Conditioning Library - Overview
Modelon
 
Fuel System Library - Overview
Modelon
 
FMI Composer Overview
Modelon
 
Model Testing Toolkit - Overview
Modelon
 

Recently uploaded (20)

PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPTX
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
Introduction to Data Science: data science process
ShivarkarSandip
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PPT
Ppt for engineering students application on field effect
lakshmi.ec
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Inventory management chapter in automation and robotics.
atisht0104
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
Information Retrieval and Extraction - Module 7
premSankar19
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Introduction to Data Science: data science process
ShivarkarSandip
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
Ppt for engineering students application on field effect
lakshmi.ec
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 

Symbolic Transformations 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