luaasascriptlanguageforindustrial ... · • user frontend in c++ or java, gis tools output...
TRANSCRIPT
![Page 1: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/1.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Lua as a script language for industrial process design and op2miza2on with
energy integra2on
Min-Jung Yoo Swiss federal institute of Technology
School of Engineering
![Page 2: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/2.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Agenda
• Background history – Previous work in Energy Integration and Optimisation
• Context of the work – Industrial project – Towards holistic “Simulation – Analysis – Optimisation”
of Industrial Processes • Taking advantage of Lua language • Sharing and collaborating with the community of
Lua • Closing remarks
![Page 3: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/3.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Backgroud History
• Previous work in “Osmose”
• Transferring from Matlab to Lua – Performance problems – License problems: public distribution
• Industries, academic institutions, research collaborations
![Page 4: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/4.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Background work (1) -‐ Issues • Industrial process/es or plant
– Energy efficiency ? • Heat recovery • Waste valorization
– Use of waste heat for district heating ?
Cooling requirement + inefficiency
![Page 5: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/5.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
• Rational use and conversion of energy in industrial energy systems
– Need for a systematic framework
• Thermo-environomic optimisation methodology • Systematic approach to design complex integrated
energy conversion systems – Computer-aided tool for process integration & optimization
Background work (2) -‐ Context
Process Resources
Technologies
Products Services
Process configuration &
integration Energy
efficiency Costs
Environmental impact
![Page 6: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/6.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
• Osmose (Matlab) - Platform for studying energy conversion systems
Background work (3) -‐ Methodology
Global problem
Mul2-‐objec2ve
op2misa2on
min fobj(x,z) h(x,z)=0 g(x,z)≤0
xiL≤xi ≤ xi
U
fobj(x,z)
Pareto set Obj1
Obj2
Physical model
Energy integra2on model (MILP resolu2on)
Economic model & LCA model
Model preprocessing
Model (external soAware)
Model post-‐processing
![Page 7: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/7.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
• Re-implementation in Lua – Another presentation in Lua Workshop 2014
with more detail • Extension to additional dimension: Holistic
approach including GIS functions, Environmental Impact Analysis, Database functions
Backgroud work (4) -‐ TransiDon
![Page 8: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/8.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Agenda
• Background history – Previous work in “Osmose” Matlab -> Lua – My research interests
• Context of the work – Industrial project – Towards a holistic approach to “Simulation – Analysis –
Optimisation” of Industrial Processes • Taking advantage from Lua • Sharing and collaborating with the community of
Lua • Closing remarks
![Page 9: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/9.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
• Adding more dimensions – Capable of covering generic issues in industrial
processes (by and large) – Supply Chain – Geographical notations – LCI (Lifecycle Inventory) & LCIA (Lifecycle
Impact Analysis) with the new version of Ecoinvent3 databases
New horizon: current and future work
![Page 10: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/10.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Context of the project
• PFE3 –Partly funded by the program SEED 2012 from the French National Agency for Research ANR in the frame of the Plate-Form(E)3 project – Industrial Project, consortium composed of several
French industries and academic institutions – Outcome – A tool for Energy Integration and
Optimization for generic simulation of industrial use cases
– Components for Energy System Modeling – Focused on territorial use – Manufacturing factories – Graphic User Interface running with Model libraries
![Page 11: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/11.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Context of the Work – The role of Osmose-‐Lua
• Backend system for Simulation – Analysis – Optimisation
• User Frontend in C++ or Java, GIS tools
(*) External API integration
Figure. OsmoseLua Global architecture
PFE3 GUI
Ol.Gate
Library of Energy Technology Generic Models – Natural Gas
Boiler, Biomethanation, Car, Waste Water treatment, Electricity Grid
OL Environnement Customer
Data
Description
Input: Tag/Value
Model Elements
Output
Model instantiation
Working Output
Model execution (simulation)
get
Instantiate
Tag values
Tag values run
analyse
optimise
Analyse of sensitivity (*)
Multi-Objective Optimisation (*)
Data transfer from User commands using XML
Model making
Runtime output data
OL.Observer : Pre & Post-run processing(*)
![Page 12: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/12.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Osmose-‐Lua extended arthitecture
Osmose-Lua Energy Technology Models and Integrated Optimization
Variables, Model Parameters, Simulation Results, Optimisation Report
LCIA Metadata for Impact Analysis (Different analysis methods)
Corresponding LCI (CO2 Emission, Other elements)
Generic Model: Utilities (Electricity, Gas, Biomass) Industrial Processes (Elec. generation, Heat transfer), Transportations
LuaSQL (SQLite3)
Geographic location (Longitude, Latitude) from GIS ‘Shapefile’
![Page 13: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/13.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Agenda
• About myself • Background history
– Previous work in “Osmose” Matlab -> Lua – My research interests
• Context of the work – Industrial project – Towards holistic “Simulation – Analysis – Optimisation”
of Industrial Processes • Taking advantage from Lua • Sharing and collaborating with the community of
Lua • Closing remarks
![Page 14: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/14.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Taking advantage of Lua…
• Adding new sub-systems, such as GIS data handler, LCI dataset integration and LCIA meta tables, to the existing Osmose-Lua – Such an API extension: Not always straight forward
• Which happens in general : Existing system was not designed to be extended in an unknown direction
![Page 15: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/15.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Lua ?! – Object orientaDon without ‘Class’
• With the help of flexibility in terms of structuring SW architecture – Allow us some relaxed ways of restructuring own
Object-Oriented Architecture
![Page 16: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/16.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Lua ?! : Table management flexibility
• The target system – characteristics – Must to handle many different types of data (model
parameters and simulation variable) and attributes in a flexible way
– Without using a particular spreadsheet or RDBMS – Already Lua allows to model database accessing in a
friendly manner
![Page 17: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/17.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
SubstanDal difficulDes
• Lua: language not very well known and not penetrated into our research society – Finding students and assistant in development – Promoting the project outcome
• Technical difficulties – Exploiting the resulting API on different machines /
several types of OS – Not always successful in providing a set of generally
installable & Executable API
![Page 18: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/18.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
What we are doing in parallel
• New course in Doctoral Student Programs – Specialized Field : “Energy” – Learning Lua and Osmose-Lua, – October..November, 2weeks intensive, 4 ETCS
• Technical support to Swiss and French industries – Promoting the approach
![Page 19: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/19.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Sharing and CommunicaDng with the Community of Lua • Result sharing • Academic staffs/students exchange • Creating other industrial projects
![Page 20: Luaasascriptlanguageforindustrial ... · • User Frontend in C++ or Java, GIS tools Output Customer Pre & M output (*) External API integration Figure. OsmoseLua Global architecture](https://reader034.vdocuments.site/reader034/viewer/2022042712/5f8b232d3fdad565b94a4887/html5/thumbnails/20.jpg)
MJ Yoo, EPFL/STI Copyright © 2014 Lua Workshop – Moscow, September 2014
Closing remarks
• We are happy to join the Lua community !