Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with...
Transcript of Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with...
![Page 1: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/1.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
OMOPTIM PRESENTATIONLinköping, February 6th 2012
![Page 2: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/2.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
WHAT IS OMOPTIM ?
![Page 3: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/3.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
What OMOptim intends to be ?
Optimization platform designed to :– Facilitate algorithms development– Share optimization functions– Apply optimization easily and efficiently
End‐user oriented
![Page 4: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/4.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Two main users
Hubert Thieriot – OMOptim Presentation 4
Academics
A platform to developand test optimizationmethods
Academics
A platform to developand test optimizationmethods
Industrial
A user‐friendly tool to perform processoptimizations
Industrial
A user‐friendly tool to perform processoptimizations
![Page 5: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/5.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Applications
Design optimizationParameters optimizationComponents selection (beta)
Sensitivity analysisOptimal controlHybrid systems
Planned Optimization Methods
Evolution strategies (e.g. genetic algorithms)Gradient based methods (e.g. SQP)Relaxation techniquesHybrid algorithms
![Page 6: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/6.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
STATIC PARAMETERSOPTIMIZATION
What OMOptim can do ?
![Page 7: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/7.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
e.g. Optimization of heat‐pump parametersC
onde
nser
Compressor
CompressorEvaporator
Valve
Valve
Heat-Exchanger
P
P
A
Freedom
•pressure levels
• heat-exchanger area
• Parameters are static : constant during one simulation
• Simulation can still be dynamic
• Objective functions can consider evolution
![Page 8: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/8.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
STRUCTURE OPTIMIZATIONWhat OMOptim can do ?
![Page 9: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/9.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Cooling
Heating
Drying
Cooling
Heating’ Heating’’
Drying’
• Introduction of alternative options
• Optimal choice
Structure optimization
![Page 10: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/10.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
WHICH OBJECTIVES ?What OMOptim can do ?
![Page 11: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/11.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Multi‐objectives
Pareto criteria allows several objectives simultaneouslyInvestment cost
Operational cost
![Page 12: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/12.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Scanning variables
e.g.• minimize total energy consumption over the four seasons• minimize standard deviation of temperature related to
mass flow
Configuration A
Simulation 1 Simulation 2 Simulation 3 Simulation 4
Scanning function A Scanning function B
Objective A Objective B
![Page 13: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/13.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
PROJECTS
![Page 14: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/14.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Two energy related projects
EDOP
- Integration of modelization and optimization
‐ Dynamic optimal control of startup and load cycles
EDOP
- Integration of modelization and optimization
‐ Dynamic optimal control of startup and load cycles
CERES
-Identify best energy paths withinindustrial processes
- Design optimization
CERES
-Identify best energy paths withinindustrial processes
- Design optimization
![Page 15: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/15.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
OPTIMIZATION ALGORITHMS
![Page 16: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/16.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
• Many simulations required• Model as a Black‐box
Meta‐heuristics
• Require jacobiansGradient based
• cf. EDOP projectRelaxation techniques
…
![Page 17: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/17.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Meta‐heuristic algorithms implemented
• Evolutionary strategies (SPEA2, NSGA2)• Particle Swarm Optimization• Simulated Annealing
![Page 18: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/18.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
PLUGIN FUNCTIONALITY
![Page 19: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/19.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Plugin
‐ Allows to implement specific functionalities‐ Dynamically/Statically linked
OMOptim
MyPlugin
MyPlugin
![Page 20: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/20.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Energy integration pluginCERES project
• Increase heat recovery within processes• Select best fitted utilities• Build heat exchangers network
![Page 21: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/21.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Energy integration - example
Steam
Energy integrationalgorithms
Chaudière 1
MILP solvers
![Page 22: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/22.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Plugin
‐ Why not a NMPC plugin ?‐ Parameter identification
![Page 23: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/23.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
FUTURE DEVELOPMENTS
![Page 24: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/24.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
First developments
• FMI compliance• Parallelization• Gradient based methods
![Page 25: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/25.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Applications
Design optimizationContinuous parametersComponents selection (beta)
Sensitivity analysisOptimal controlHybrid systems
Planned Optimization Methods
Evolution strategies (e.g. genetic algorithms)Gradient based methods (e.g. SQP)Relaxation techniquesHybrid algorithms
![Page 26: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/26.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
DEMONSTRATION
![Page 27: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/27.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
INTERESTED IN ?
![Page 28: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/28.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
• Website– www.openmodelica.org
• Source codehttps://openmodelica.org/svn/OpenModelica/trunk/OMOptim/
• Mailhubert.thieriot@mines‐paristech.fr
![Page 29: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/29.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
THANKS FOR YOUR ATTENTION
![Page 30: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/30.jpg)
Model structure Model VariablesOptimized parameters
Optimized Objectives
![Page 31: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/31.jpg)
Problems
Solved problemsResult plot Export result data .csv
![Page 32: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/32.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Top‐levelconceptualviewofOMOptimanditsinterfaces
![Page 33: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/33.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
To be done …
• Finalize OMOptim structure
• Strengthen link Simulation – Optimization– Derivative information– Structural change– Parallelization
• Organize sharability of optimization functions
![Page 34: Linköping, February 6th 2012 OMOPTIM PRESENTATION...OMOptim – Model-based optimization with OpenModelica Hubert Thieriot OMOPTIM PRESENTATION Linköping, February 6th 2012](https://reader033.fdocuments.in/reader033/viewer/2022042020/5e774b4c5dafc13bb679aa52/html5/thumbnails/34.jpg)
OMOptim – Model-based optimization with OpenModelicaHubert Thieriot
Open Modelica
Corba
Open Modelica, Dymola,
…
OMOptim Optimization
Simulation
Reading Writing
Modelica model
•Heuristic•Linear programming
C++, QtC++,External libs
Reading/ modifyingvariables
Reading/ modifying
model structure
Files