modeling for sustainability - tu dresdenst.inf.tu-dresden.de/mrt18/slides/mrt18-keynote... ·...

24
WORKSHOP MODELS@RUNTIME @ MODELS, OCTOBER, 2018 An earlier version of this talk is available at http://goo.gl/ksGq4N MODELING FOR SUSTAINABILITY Or How to Make Smart CPS Smarter? BENOIT COMBEMALE PROFESSOR, UNIV. TOULOUSE & INRIA, FRANCE HTTP://COMBEMALE.FR [email protected] @BCOMBEMALE

Upload: others

Post on 03-Jun-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

WORKSHOP MODELS@RUNTIME @ MODELS, OCTOBER, 2018

An earlier version of this talk is available at http://goo.gl/ksGq4N

MODELING FOR SUSTAINABILITYOr How to Make Smart CPS Smarter?

BENOIT COMBEMALEPROFESSOR, UNIV. TOULOUSE, FRANCE

HTTP://COMBEMALE.FR [email protected]@BCOMBEMALE

BENOIT COMBEMALEPROFESSOR, UNIV. TOULOUSE & INRIA, FRANCE

HTTP://COMBEMALE.FR [email protected]@BCOMBEMALE

Page 2: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Complex Software-Intensive Systems

Software intensive systems

▸Multi-engineering approach▸Domain-specific modeling▸High variability and customization ▸ Software as integration layer▸Openness and dynamicity

Modeling for SustainabilityBenoit Combemale @ MRT 2018 2

Page 3: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Aerodynamics

Authorities

Avionics

SafetyRegulations

Airlines

PropulsionSystem

MechanicalStructure

EnvironmentalImpact

NavigationCommunications

Human-Machine

Interaction

3

Multipleconcerns, stakeholders,

tools and methods

Page 4: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

4

Aerodynamics

Authorities

Avionics

SafetyRegulations

Airlines

PropulsionSystem

MechanicalStructure

EnvironmentalImpact

NavigationCommunications

Human-Machine

Interaction

Heterogeneous Modeling

Page 5: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Model-Driven Engineering

Distribution

« Service Provider Manager »

Notification Alternate Manager

« Recovery Block Manager »

ComplaintRecovery Block

Manager

« Service Provider

Manager »

Notification Manager

« Service Provider Manager »

Complaint Alternate Manager

« Service Provider

Manager »

Complaint Manager

« Acceptance Test Manager »

Notification Acceptance Test

Manager

« Acceptance Test Manager »

Complaint Acceptance Test

Manager

« Recovery Block Manager »

NotificationRecovery Block

Manager

« Client »

User Citizen Manager

Fault tolerance Roles

ActivitiesViews

Contexts

Security

Functional behavior

Bookstate : StringUser

borrow

return

deliver

setDamaged

reserve

Use case

PlatformModel Design

ModelCode Model

Change one Aspect and Automatically Re-Weave:From Software Product Lines…..to Dynamically Adaptive Systems

J. Whittle, J. Hutchinson, and M. Rouncefield, “The State of Practice in Model-Driven Engineering,” IEEE Software, vol. 31, no. 3, 2014, pp. 79–85.

"Perhaps surprisingly, the majority of MDE examples in our study followed domain-specific modeling paradigms"

Modeling for SustainabilityBenoit Combemale @ MRT 2018 5

Page 6: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

From Software Systems

▸software design models for functionaland non-functional properties

Engineers

System Models

Software

Modeling for SustainabilityBenoit Combemale @ MRT 2018 13

Page 7: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

To Cyber-Physical Systems

▸multi-engineering design modelsfor global system properties

▸models @ runtime (i.e., includedinto the control loop) for dynamicadaptations

Engineers

System Models Cyber-PhysicalSystem

sensors actuators

Physical System

Software

<<controls>><<senses>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 14

Page 8: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

To Smart Cyber-Physical Systems

▸ analysis models (incl. large-scale simulation, constraint solver) of the surrounding contextrelated to global phenomena (e.g. physical, economical, and social laws)

▸ predictive models (predictive techniques fromAI, machine learning, SBSE, fuzzy logic)

▸ user models (incl., general public/communitypreferences) and regulations (political laws)

Engineers

System Models SmartCyber-Physical System

Context

sensors actuators

Physical System

Software

<<controls>><<senses>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 15

Page 9: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

What about Scientific Modeling?

▸Models (computational and data-intensive sciences) for analyzing and understanding physical phenomena

Context

Heuristics-Laws

Scientists

Physical Laws (economic, environmental, social)

Modeling for SustainabilityBenoit Combemale @ MRT 2018 16

Page 10: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Simulator

Context

SimulationProcesses

Heuristics-Laws

Scientists

Physical Laws (economic, environmental, social)

<<represents>>

What about Scientific Modeling?

▸ Simulators for tradeoff analysis, what-if scenarios, analysis of alternatives and adaptations to environmental changes, etc.

Modeling for SustainabilityBenoit Combemale @ MRT 2018 17

Page 11: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Towards Unifying Modeling Foundations

▸ Convergence of engineering and scientific models▸ Prescriptive requires descriptive models▸ Descriptive requires prescriptive models

▸ Grand Challenge: a modeling framework to support the integration of data from sensors, open data, laws, regulations, scientific models (computational and data-intensive sciences), engineering models and preferences.

▸ Domain-specific languages (DSLs) for socio-technical coordination▸ to engage engineers, scientists, decision makers, communities and the general public▸ to integrate analysis/predictive/user models into the control loop of smart CPS

Modeling for SustainabilityBenoit Combemale @ MRT 2018 18

Page 12: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Sustainability Systems

▸ Sustainability systems are smart-CPS managing resource production, transport and consumption for the sake of sustainability

▸ Ex: smart grids, smart city/home/farming, etc.

▸ Sustainability systems

▸ must balance trade-offs between the social, technological, economic, and environmental pillars of sustainability

▸ involve complex decision-making with heterogeneous analysis models, and large volumes of disparate data varying in temporal scale and modality

Modeling for SustainabilityBenoit Combemale @ MRT 2018 19

Page 13: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

MDE for Sustainability Systems▸ Scientific models are used to understand sustainability concerns and

evaluate alternatives (what-if/for scenarios)

▸ Engineering models are used to support the development and runtime adaptation of sustainability systems.

How to integrate engineering and scientific models in a synergistic fashion to support informed decisions, broader engagement, and dynamic adaptation in sustainability systems?

Modeling for SustainabilityB. Combemale, B. Cheng, A. Moreira, J.-M. Bruel, J. Gray

In MiSE @ ICSE , 2016

Modeling for SustainabilityBenoit Combemale @ MRT 2018 20

Page 14: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

The Sustainability Evaluation ExperienceR (SEER)▸Smart Cyber-Physical Systems

Sustainability System(e.g., smart farm)

(

Context

sensors actuators

Production/Consumption

System (e.g. farm)

Software

<<controls>><<senses>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 21

Page 15: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

The Sustainability Evaluation ExperienceR (SEER)▸ Based on informed decisions▸with environmental, social and economic laws▸with open data

Heuristics-Laws

Scientists

Open DataScientific Models / Physical Laws (economic, environmental, social)

SEER

Sustainability System(e.g., smart farm)

(

Context

sensors actuators

Production/Consumption

System (e.g. farm)

Software

<<controls>><<senses>><<supplement

field data>>

<<feed>>

<<integrate>>

<<explore model relations (tradeoff,

impact and conflict)>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 22

Page 16: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

The Sustainability Evaluation ExperienceR (SEER)▸ Providing a broader engagement▸with "what-if" scenarios for general public and policy makers

Heuristics-Laws

Scientists

Open Data

General Public(e.g., individuals) Policy Makers

(e.g., mayor)

MEEs("what-if" scenarios)

Scientific Models / Physical Laws (economic, environmental, social)

SEER

Sustainability System(e.g., smart farm)

(

Context

sensors actuators

Production/Consumption

System (e.g. farm)

Software

<<controls>><<senses>>Communities(e.g., farmers)

<<supplementfield data>>

<<provide configuration, preferences, questions>>

<<present possible future and variable indicators>>

<<feed>>

<<integrate>>

<<explore model relations (tradeoff,

impact and conflict)>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 23

Page 17: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

The Sustainability Evaluation ExperienceR (SEER)▸ Supporting automatic adaptation▸ for dynamically adaptable systems

Heuristics-Laws

Scientists

Open Data

General Public(e.g., individuals) Policy Makers

(e.g., mayor)

MEEs("what-if" scenarios)

Scientific Models / Physical Laws (economic, environmental, social)

SEER

Sustainability System(e.g., smart farm)

(

Context

sensors actuators

Production/Consumption

System (e.g. farm)

Software

<<controls>><<senses>>Communities(e.g., farmers)

<<adapt>>

<<supplementfield data>>

<<provide configuration, preferences, questions>>

<<present possible future and variable indicators>>

<<feed>>

<<integrate>>

<<explore model relations (tradeoff,

impact and conflict)>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 24

Page 18: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

The Sustainability Evaluation ExperienceR (SEER)▸Application to health, farming system, smart grid…

Heuristics-Laws

Scientists

Open Data

General Public(e.g., individuals) Policy Makers

(e.g., mayor)

MEEs("what-if" scenarios)

Scientific Models / Physical Laws (economic, environmental, social)

SEER

Sustainability System(e.g., smart farm)

(

Context

sensors actuators

Production/Consumption

System (e.g. farm)

Software

<<controls>><<senses>>Communities(e.g., farmers)

<<adapt>>

<<supplementfield data>>

<<provide configuration, preferences, questions>>

<<present possible future and variable indicators>>

<<feed>>

<<integrate>>

<<explore model relations (tradeoff,

impact and conflict)>>

Modeling for SustainabilityBenoit Combemale @ MRT 2018 25

Page 19: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

The Sustainability Evaluation ExperienceR (SEER)

Heuristics-Laws

Scientists

Open Data

General Public(e.g., individuals) Policy Makers

(e.g., mayor)

MEEs("what-if" scenarios)

Scientific Models / Physical Laws (economic, environmental, social)

SEER

Sustainability System(e.g., smart farm)

(

Context

sensors actuators

Production/Consumption

System (e.g. farm)

Software

<<controls>><<senses>>Communities(e.g., farmers)

<<adapt>>

<<supplementfield data>>

<<provide configuration, preferences, questions>>

<<present possible future and variable indicators>>

<<feed>>

<<integrate>>

<<explore model relations (tradeoff,

impact and conflict)>>

Farmers

Agronomist

IrrigationSystem

in collaboration with

MDE in Practice for Computational ScienceJean-Michel Bruel, Benoit Combemale, Ileana Ober, Hélène RaynalIn International Conference on Computational Science (ICCS), 2015

Modeling for SustainabilityBenoit Combemale @ MRT 2018 26

Page 20: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

FARMING SYSTEM MODELING

- 27

https://github.com/gemoc/farmingmodeling

Page 21: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

- 28

WATER FLOOD PREDICTION

in collaboration with

Page 22: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Take Away Messages

▸ From MDE to SLE▸ Language workbenches support DS(M)L development

▸ On the globalization of modeling languages▸ Integrate heterogeneous models representing different engineering concerns▸ Language interfaces to support structural and behavioral relationships

between domains (i.e., DSLs)

▸ From software systems to smart CPS▸ Interactions with the physical world limited to (i.e., fixed, in closed world)

control laws and data from the sensors▸ What about the broader context in which the system involves?

▸ Physical / social / economic laws ▸ Predictive models▸ Regulations, user preferences

Modeling for SustainabilityBenoit Combemale @ MRT 2018 29

Page 23: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Conclusion

▸ Integration of scientific models in the control loop of smart CPS is key to provide more informed decisions, a broader engagement, and eventually relevant runtimereconfigurations

▸SEER is a particular instantiation of such a vision for sustainability systems

Modeling for SustainabilityBenoit Combemale @ MRT 2018 30

Page 24: MODELING FOR SUSTAINABILITY - TU Dresdenst.inf.tu-dresden.de/MRT18/slides/mrt18-keynote... · 2018-10-15 · adaptation of sustainability systems. How to integrate engineering and

Open Challenges

▸ Diversity/complexity of DSL relationships▸ Far beyond structural/behavioral alignment, refinement, decomposition▸ Separation of concerns vs. Zoom-in/Zoom-out

▸ Live and collaborative (meta)modeling▸ Minimize the round trip between the DSL specification, the model, and its

application (interpretation/compilation)▸ Model experiencing environments (MEEs): what-if/for scenarios, trade-off

analysis, design-space exploration

▸ Integration of analysis and predictive models into DSL semantics▸ Towards unpredictable languages

▸ Specify the correctness envelope to avoid over-specification▸ Identify plastic computation zones▸ Vary the execution flow of the program

Modeling for SustainabilityBenoit Combemale @ MRT 2018 31