SlideShare une entreprise Scribd logo
1  sur  39
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
CSP(M): Constraint Satisfaction Problem over
Models
Ákos Horváth and
Dániel Varró
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
2
Outline
Introduction
CSP(M) Conclusion
Solving
CSP(M)
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Eight Queens Problem
Place 8 queens on a checkboard without captures
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Constraint Satisfaction Problem
B8
0,1
A8
0,1
D8
0,1
C8
0,1
F8
0,1
E8
0,1
H8
0,1
G8
0,1
C7
0,1
B7
0,1
E7
0,1
D7
0,1
G7
0,1
F7
0,1
A7
0,1
H7
0,1
B6
0,1
A6
0,1
D6
0,1
C6
0,1
F6
0,1
E6
0,1
H6
0,1
G6
0,1
C5
0,1
B5
0,1
E5
0,1
D5
0,1
G5
0,1
F5
0,1
A5
0,1
H5
0,1
B4
0,1
A4
0,1
D4
0,1
C4
0,1
F4
0,1
E4
0,1
H4
0,1
G4
0,1
C3
0,1
B3
0,1
E3
0,1
D3
0,1
G3
0,1
F3
0,1
A3
0,1
H3
0,1
B2
0,1
A2
0,1
D2
0,1
C2
0,1
F2
0,1
E2
0,1
H2
0,1
G2
0,1
C1
0,1
B1
0,1
E1
0,1
D1
0,1
G1
0,1
F1
0,1
A1
0,1
H1
0,1
Constraint:
∑Ai=1
Variable
Domain
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Labeling
Place first
queen:
A8 = 1
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Constraint Propagation
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Deduce
consequences
A7=0
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Labeling
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Place next
queen
D6=1
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Constraint Propagation
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0 0
0
0
0
0
0
0
0
0
Deduce
consequence
B6=0
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Labeling + Propagation
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0 0
00
0
0
Cannot place
Queen on E-file

Backtracking to
last decision
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Backtracking
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0 0
0
0
0
0
0
0
0
0
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Labeling + Propagation
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0
0
0
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Labeling + Propagation
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0 0 0
0
0
If you are
smarter, you
can see this is
in wrong place

Backjumping
to preceding
state
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP: Backjumping
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Continues with
labeling…
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Extensions: Dynamic variables
0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
I5
0,1
I6
0,1
I3
0,1
I4
0,1
I2
0,1
Introducing new
variables while
solving
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Extensions: Complex labeling
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
How many
queens can you
place without
captures?
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Extensions: Complex labeling
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Extensions: Complex labeling
0
0
0
0
0
0
0
0
0
0
0 0
0
0
0
0
0
0
0
0
0
0
Placing a new queen
invalidates effects of
previous constraint
propagation
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Challenges for CSP over Models
Dynamic variables
Dynamic constraint management
Native representation for (graph) models
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
19
Outline
Introduction
CSP(M) Conclusion
Solving
CSP(M)
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
CSP(M)
Described by (M0,C,G,L)
− M0 initial model (typed graph)
− C set of global constraints (graph patterns)
− G set of goals (graph patterns)
− L set of labeling rules (GT rules)
Goal
− Find a model Ms which satisfies all global
constraints and goals.
●One model
●All model
●Optimal model
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Integrated modular avionics (IMA) system
 Composed of
− Jobs; Simple Job ,Critical Job
− Partitions; compose of jobs
− Modules; host partitions
− Cabinets; storage of modules
● Max 2
 Task
− Allocate predefined Jobs on predefined Partitions using
minimal number of Modules
Running Example
1 1
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Running Example: Constraints
Partition  one criticality level
Critical job’s redundant instances on different
Partitions and Modules
Free memory of partition can not be less than
zero
●Attribute constraint
1
1 1
1
12
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
CSP(M): Goal and Global Constraint
Graph pattern
Satisfied
− Negative
●No matching
− Positive
●At least one
matching
− Cardinality
●|matching| =
Cardinality
criticalInstanceonSameModule(Job)
J1: JobInstance
Job: CriticalJob
j1: instances
J2: JobInstance
M1: Module
j2: instances
pr1: partitions
jb1: jobs
P1: Partition P1: Partition
jb2: jobs
pr2 : partitions
partitionwithoutModule(P)
P: Partition
M1: Module NEG
p1:partition
s
Global Constraint
Goal
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
CSP(M): Goal and Global Constraint
Graph pattern
Satisfied
− Negative
●No matching
− Positive
●At least one
matching
− Cardinality
●|matching| =
Cardinality
criticalInstanceonSameModule(Job)
J1: JobInstance
Job: CriticalJob
j1: instances
J2: JobInstance
M1: Module
j2: instances
pr1: partitions
jb1: jobs
P1: Partition P1: Partition
jb2: jobs
pr2 : partitions
partitionwithoutModule(P)
P: Partition
M1: Module NEG
p1:partition
s
Global Constraint
Goal
No Critical Job
instance pair on the
same Module
No Partition
without Module
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
CSP(M): Labeling Rule by GT
 GT rule
 Applicability
− precondition matches
to model
 Priority
− Precedence relation
 Execution mode
− Choose (one random)
− Forall (all matchings) M1:Module
allocatePartition(P)
P: Partition
M2: Module
NEG
p1: partitions{NEW}
p2: partitions
createModule()
M : Module
{NEW}
 Dynamic models
− Element
creation/deletion
Labeling Rule
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
26
Outline
Introduction
CSP(M) Conclusion
Solving
CSP(M)
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP(M)
Current State
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP(M)
allocatePartition
Next state
Transition
New Elements
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP(M)
allocatePartition
Solution:
Satisfies goals and
global constraint
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Solving CSP(M)
allocatePartition
createModule
allocateModule
Goals not satisfied
Global Constraint
violated 
backtracks
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Implementation over VIATRA2
Incremental constraint evaluation by
incremental pattern matching
− Cached matchings
− Incrementally updated
Simple state space representation
Typed graph comparison
− DSMDiFF
Backtracking
− Transaction on atomic manipulation operations
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Search Strategies
− Simple Backtracking
− Random Backjumping
− Guided travelsal by Petri-net abstraction
 Constraint optimization
− Look-ahead patterns
− Exception priority
 Evaluation
− On average computer (Core duo 1.8 GHz, 2 GB of memory)
− Common industrial problem 51 jobs, 7 partitions and 4
cabinets,
● In average first solution in ~120 sec
Optimizations
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Search Strategies
− Simple Backtracking
− Random Backjumping
− Guided travelsal by Petri-net abstraction
 Constraint optimization
− Look-ahead patterns
− Exception priority
 Evaluation
− On average computer (Core duo 1.8 GHz, 2 GB of memory)
− Common industrial problem 51 jobs, 7 partitions and 4
cabinets,
● In average first solution in ~120 sec
Optimizations
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Search Strategies
− Simple Backtracking
− Random Backjumping
− Guided travelsal by Petri-net abstraction
 Constraint optimization
− Look-ahead patterns
− Exception priority
 Evaluation
− On average computer (Core duo 1.8 GHz, 2 GB of memory)
− Common industrial problem 51 jobs, 7 partitions and 4
cabinets,
● In average first solution in ~120 sec
Optimizations
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Search Strategies
− Simple Backtracking
− Random Backjumping
− Guided travelsal by Petri-net abstraction
 Constraint optimization
− Look-ahead patterns
− Exception priority
 Evaluation
− On average computer (Core duo 1.8 GHz, 2 GB of memory)
− Common industrial problem 51 jobs, 7 partitions and 4
cabinets,
● In average first solution in ~120 sec
Optimizations
Restriction on the
number of rule
applications
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Search Strategies
− Simple Backtracking
− Random Backjumping
− Guided travelsal by Petri-net abstraction
 Constraint optimization
− Look-ahead patterns
− Exception priority
 Evaluation
− On average computer (Core duo 1.8 GHz, 2 GB of memory)
− Common industrial problem 51 jobs, 7 partitions and 4
cabinets,
● In average first solution in ~120 sec
Optimizations
Same Global
Constraint fails
Merge Global constraint
into Labeling rule
precondition
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
 Search Strategies
− Simple Backtracking
− Random Backjumping
− Guided travelsal by Petri-net abstraction
 Constraint optimization
− Look-ahead patterns
− Exception priority
 Evaluation
− On average computer (Core duo 1.8 GHz, 2 GB of memory)
− Common industrial problem 51 jobs, 7 partitions and 4
cabinets,
● In average first solution in ~120 sec
Optimizations
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
38
Outline
Introduction
CSP(M) Conclusion
Solving
CSP(M)
Budapest University of Technology and Economics
Fault-tolerant Systems Research Group
Conclusion
 Summary
− General definition of constraint problems over models
● Labeling rules by GT rules
● Goals and constraints by GT patterns
● Dynamic variables
− Implementation over VIATRA2
● Constraint propagation using incremental pattern matching
● Dynamically add/remove constraints and labeling rules
 Future work
− Compact state space representation
● Model differentials
● Symbolic state representation
● State comparison
− Automatic look-ahead pattern detection (critical pair
analysis)
− Comparison with Alloy and Korat

Contenu connexe

Similaire à CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design space exploration)

Don't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptxDon't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptx
Förderverein Technische Fakultät
 
Madaari : Ordering For The Monkeys
Madaari : Ordering For The MonkeysMadaari : Ordering For The Monkeys
Madaari : Ordering For The Monkeys
J On The Beach
 
LNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine LearningLNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine Learning
butest
 

Similaire à CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design space exploration) (20)

AIRS2016
AIRS2016AIRS2016
AIRS2016
 
2022 03 22_蔡煒俊_u-net_convolutional_networks_for_biomedical_image_segmentation
2022 03 22_蔡煒俊_u-net_convolutional_networks_for_biomedical_image_segmentation2022 03 22_蔡煒俊_u-net_convolutional_networks_for_biomedical_image_segmentation
2022 03 22_蔡煒俊_u-net_convolutional_networks_for_biomedical_image_segmentation
 
Ontology-based data access: why it is so cool!
Ontology-based data access: why it is so cool!Ontology-based data access: why it is so cool!
Ontology-based data access: why it is so cool!
 
Don't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptxDon't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptx
 
CSC446: Pattern Recognition (LN6)
CSC446: Pattern Recognition (LN6)CSC446: Pattern Recognition (LN6)
CSC446: Pattern Recognition (LN6)
 
It Does What You Say, Not What You Mean: Lessons From A Decade of Program Repair
It Does What You Say, Not What You Mean: Lessons From A Decade of Program RepairIt Does What You Say, Not What You Mean: Lessons From A Decade of Program Repair
It Does What You Say, Not What You Mean: Lessons From A Decade of Program Repair
 
Effective data pre-processing for AutoML
Effective data pre-processing for AutoMLEffective data pre-processing for AutoML
Effective data pre-processing for AutoML
 
ML基本からResNetまで
ML基本からResNetまでML基本からResNetまで
ML基本からResNetまで
 
Comprehensive acquisition management methodology rev6
Comprehensive acquisition  management methodology   rev6Comprehensive acquisition  management methodology   rev6
Comprehensive acquisition management methodology rev6
 
Evo star2012 Robot Base Disturbance Optimization with Compact Differential Ev...
Evo star2012 Robot Base Disturbance Optimization with Compact Differential Ev...Evo star2012 Robot Base Disturbance Optimization with Compact Differential Ev...
Evo star2012 Robot Base Disturbance Optimization with Compact Differential Ev...
 
Madaari : Ordering For The Monkeys
Madaari : Ordering For The MonkeysMadaari : Ordering For The Monkeys
Madaari : Ordering For The Monkeys
 
Hardware-Assisted Malware Analysis
Hardware-Assisted Malware AnalysisHardware-Assisted Malware Analysis
Hardware-Assisted Malware Analysis
 
Weight watcher Bay Area ACM Feb 28, 2022
Weight watcher Bay Area ACM Feb 28, 2022 Weight watcher Bay Area ACM Feb 28, 2022
Weight watcher Bay Area ACM Feb 28, 2022
 
MS Thesis
MS ThesisMS Thesis
MS Thesis
 
MS Thesis
MS ThesisMS Thesis
MS Thesis
 
Application of deep learning for automatic classification of fracture surface...
Application of deep learning for automatic classification of fracture surface...Application of deep learning for automatic classification of fracture surface...
Application of deep learning for automatic classification of fracture surface...
 
ictir2016
ictir2016ictir2016
ictir2016
 
An approach to model reduction of logistic networks based on ranking
An approach to model reduction of logistic networks based on rankingAn approach to model reduction of logistic networks based on ranking
An approach to model reduction of logistic networks based on ranking
 
Troubleshooting Deep Neural Networks - Full Stack Deep Learning
Troubleshooting Deep Neural Networks - Full Stack Deep LearningTroubleshooting Deep Neural Networks - Full Stack Deep Learning
Troubleshooting Deep Neural Networks - Full Stack Deep Learning
 
LNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine LearningLNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine Learning
 

Plus de Ákos Horváth

Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...
Ákos Horváth
 
V for visualization: VIATRA finally goes graphical thanks to Sirius!
V for visualization: VIATRA finally goes graphical thanks to Sirius!V for visualization: VIATRA finally goes graphical thanks to Sirius!
V for visualization: VIATRA finally goes graphical thanks to Sirius!
Ákos Horváth
 
EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...
EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...
EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...
Ákos Horváth
 

Plus de Ákos Horváth (20)

Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...
 
Natural Language Understanding of Systems Engineering Artifacts
Natural Language Understanding of Systems Engineering ArtifactsNatural Language Understanding of Systems Engineering Artifacts
Natural Language Understanding of Systems Engineering Artifacts
 
IoT Meetup Budapest - The Open-CPS approach
IoT Meetup Budapest - The Open-CPS approachIoT Meetup Budapest - The Open-CPS approach
IoT Meetup Budapest - The Open-CPS approach
 
Multi-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approach
Multi-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approachMulti-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approach
Multi-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approach
 
V for visualization: VIATRA finally goes graphical thanks to Sirius!
V for visualization: VIATRA finally goes graphical thanks to Sirius!V for visualization: VIATRA finally goes graphical thanks to Sirius!
V for visualization: VIATRA finally goes graphical thanks to Sirius!
 
DemoCamp Budapest 2016 - Introdcution
DemoCamp Budapest 2016 - IntrodcutionDemoCamp Budapest 2016 - Introdcution
DemoCamp Budapest 2016 - Introdcution
 
Incremental model compiler for executable UML
Incremental model compiler for executable UMLIncremental model compiler for executable UML
Incremental model compiler for executable UML
 
MoDeS3 - Model-based Demonstrator for Smart and Safe Systems
MoDeS3 - Model-based Demonstrator for Smart and Safe SystemsMoDeS3 - Model-based Demonstrator for Smart and Safe Systems
MoDeS3 - Model-based Demonstrator for Smart and Safe Systems
 
Incremental Queries and Transformations for Engineering Critical Systems
Incremental Queries and Transformations for Engineering Critical SystemsIncremental Queries and Transformations for Engineering Critical Systems
Incremental Queries and Transformations for Engineering Critical Systems
 
EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...
EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...
EMF-IncQuery: Blazing-fast reaction time even for very large diagrams (Sirius...
 
Local search-based pattern matching features in EMF-IncQuery
Local search-based pattern matching features in EMF-IncQueryLocal search-based pattern matching features in EMF-IncQuery
Local search-based pattern matching features in EMF-IncQuery
 
VIATRA 3: A reactive model transformation platform
VIATRA 3: A reactive model transformation platformVIATRA 3: A reactive model transformation platform
VIATRA 3: A reactive model transformation platform
 
Model visualization made easy: Incremental query-driven views in modeling tools
Model visualization made easy: Incremental query-driven views in modeling toolsModel visualization made easy: Incremental query-driven views in modeling tools
Model visualization made easy: Incremental query-driven views in modeling tools
 
Szoftverfejlesztés a repülőgépiparban
Szoftverfejlesztés a repülőgépiparbanSzoftverfejlesztés a repülőgépiparban
Szoftverfejlesztés a repülőgépiparban
 
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...
 
Software Development for Safety Critical Systems
Software Development for Safety Critical SystemsSoftware Development for Safety Critical Systems
Software Development for Safety Critical Systems
 
Incremental Model Queries for Model-Dirven Software Engineering
Incremental Model Queries for Model-Dirven Software EngineeringIncremental Model Queries for Model-Dirven Software Engineering
Incremental Model Queries for Model-Dirven Software Engineering
 
Model-Driven Development of ARINC 653 Configuration tables
Model-Driven Development of ARINC 653 Configuration tablesModel-Driven Development of ARINC 653 Configuration tables
Model-Driven Development of ARINC 653 Configuration tables
 
Hardware-Software allocation specification of IMA systems for early simulation
Hardware-Software allocation specification of IMA systems for early simulationHardware-Software allocation specification of IMA systems for early simulation
Hardware-Software allocation specification of IMA systems for early simulation
 
IncQuery gets Sirius: faster and better diagrams
IncQuery gets Sirius: faster and better diagramsIncQuery gets Sirius: faster and better diagrams
IncQuery gets Sirius: faster and better diagrams
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
levieagacer
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 
biology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGYbiology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGY
1301aanya
 

Dernier (20)

Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspects
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
 
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICEPATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Velocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptVelocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.ppt
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
pumpkin fruit fly, water melon fruit fly, cucumber fruit fly
pumpkin fruit fly, water melon fruit fly, cucumber fruit flypumpkin fruit fly, water melon fruit fly, cucumber fruit fly
pumpkin fruit fly, water melon fruit fly, cucumber fruit fly
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Stages in the normal growth curve
Stages in the normal growth curveStages in the normal growth curve
Stages in the normal growth curve
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
 
biology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGYbiology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGY
 

CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design space exploration)

  • 1. Budapest University of Technology and Economics Fault-tolerant Systems Research Group CSP(M): Constraint Satisfaction Problem over Models Ákos Horváth and Dániel Varró
  • 2. Budapest University of Technology and Economics Fault-tolerant Systems Research Group 2 Outline Introduction CSP(M) Conclusion Solving CSP(M)
  • 3. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Eight Queens Problem Place 8 queens on a checkboard without captures
  • 4. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Constraint Satisfaction Problem B8 0,1 A8 0,1 D8 0,1 C8 0,1 F8 0,1 E8 0,1 H8 0,1 G8 0,1 C7 0,1 B7 0,1 E7 0,1 D7 0,1 G7 0,1 F7 0,1 A7 0,1 H7 0,1 B6 0,1 A6 0,1 D6 0,1 C6 0,1 F6 0,1 E6 0,1 H6 0,1 G6 0,1 C5 0,1 B5 0,1 E5 0,1 D5 0,1 G5 0,1 F5 0,1 A5 0,1 H5 0,1 B4 0,1 A4 0,1 D4 0,1 C4 0,1 F4 0,1 E4 0,1 H4 0,1 G4 0,1 C3 0,1 B3 0,1 E3 0,1 D3 0,1 G3 0,1 F3 0,1 A3 0,1 H3 0,1 B2 0,1 A2 0,1 D2 0,1 C2 0,1 F2 0,1 E2 0,1 H2 0,1 G2 0,1 C1 0,1 B1 0,1 E1 0,1 D1 0,1 G1 0,1 F1 0,1 A1 0,1 H1 0,1 Constraint: ∑Ai=1 Variable Domain
  • 5. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Labeling Place first queen: A8 = 1
  • 6. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Constraint Propagation 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Deduce consequences A7=0
  • 7. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Labeling 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Place next queen D6=1
  • 8. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Constraint Propagation 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Deduce consequence B6=0
  • 9. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Labeling + Propagation 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 Cannot place Queen on E-file  Backtracking to last decision
  • 10. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Backtracking 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 11. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Labeling + Propagation 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 12. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Labeling + Propagation 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 If you are smarter, you can see this is in wrong place  Backjumping to preceding state
  • 13. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP: Backjumping 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Continues with labeling…
  • 14. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Extensions: Dynamic variables 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I5 0,1 I6 0,1 I3 0,1 I4 0,1 I2 0,1 Introducing new variables while solving
  • 15. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Extensions: Complex labeling 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 How many queens can you place without captures?
  • 16. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Extensions: Complex labeling 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 17. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Extensions: Complex labeling 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Placing a new queen invalidates effects of previous constraint propagation
  • 18. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Challenges for CSP over Models Dynamic variables Dynamic constraint management Native representation for (graph) models
  • 19. Budapest University of Technology and Economics Fault-tolerant Systems Research Group 19 Outline Introduction CSP(M) Conclusion Solving CSP(M)
  • 20. Budapest University of Technology and Economics Fault-tolerant Systems Research Group CSP(M) Described by (M0,C,G,L) − M0 initial model (typed graph) − C set of global constraints (graph patterns) − G set of goals (graph patterns) − L set of labeling rules (GT rules) Goal − Find a model Ms which satisfies all global constraints and goals. ●One model ●All model ●Optimal model
  • 21. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Integrated modular avionics (IMA) system  Composed of − Jobs; Simple Job ,Critical Job − Partitions; compose of jobs − Modules; host partitions − Cabinets; storage of modules ● Max 2  Task − Allocate predefined Jobs on predefined Partitions using minimal number of Modules Running Example 1 1
  • 22. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Running Example: Constraints Partition  one criticality level Critical job’s redundant instances on different Partitions and Modules Free memory of partition can not be less than zero ●Attribute constraint 1 1 1 1 12
  • 23. Budapest University of Technology and Economics Fault-tolerant Systems Research Group CSP(M): Goal and Global Constraint Graph pattern Satisfied − Negative ●No matching − Positive ●At least one matching − Cardinality ●|matching| = Cardinality criticalInstanceonSameModule(Job) J1: JobInstance Job: CriticalJob j1: instances J2: JobInstance M1: Module j2: instances pr1: partitions jb1: jobs P1: Partition P1: Partition jb2: jobs pr2 : partitions partitionwithoutModule(P) P: Partition M1: Module NEG p1:partition s Global Constraint Goal
  • 24. Budapest University of Technology and Economics Fault-tolerant Systems Research Group CSP(M): Goal and Global Constraint Graph pattern Satisfied − Negative ●No matching − Positive ●At least one matching − Cardinality ●|matching| = Cardinality criticalInstanceonSameModule(Job) J1: JobInstance Job: CriticalJob j1: instances J2: JobInstance M1: Module j2: instances pr1: partitions jb1: jobs P1: Partition P1: Partition jb2: jobs pr2 : partitions partitionwithoutModule(P) P: Partition M1: Module NEG p1:partition s Global Constraint Goal No Critical Job instance pair on the same Module No Partition without Module
  • 25. Budapest University of Technology and Economics Fault-tolerant Systems Research Group CSP(M): Labeling Rule by GT  GT rule  Applicability − precondition matches to model  Priority − Precedence relation  Execution mode − Choose (one random) − Forall (all matchings) M1:Module allocatePartition(P) P: Partition M2: Module NEG p1: partitions{NEW} p2: partitions createModule() M : Module {NEW}  Dynamic models − Element creation/deletion Labeling Rule
  • 26. Budapest University of Technology and Economics Fault-tolerant Systems Research Group 26 Outline Introduction CSP(M) Conclusion Solving CSP(M)
  • 27. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP(M) Current State
  • 28. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP(M) allocatePartition Next state Transition New Elements
  • 29. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP(M) allocatePartition Solution: Satisfies goals and global constraint
  • 30. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Solving CSP(M) allocatePartition createModule allocateModule Goals not satisfied Global Constraint violated  backtracks
  • 31. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Implementation over VIATRA2 Incremental constraint evaluation by incremental pattern matching − Cached matchings − Incrementally updated Simple state space representation Typed graph comparison − DSMDiFF Backtracking − Transaction on atomic manipulation operations
  • 32. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Search Strategies − Simple Backtracking − Random Backjumping − Guided travelsal by Petri-net abstraction  Constraint optimization − Look-ahead patterns − Exception priority  Evaluation − On average computer (Core duo 1.8 GHz, 2 GB of memory) − Common industrial problem 51 jobs, 7 partitions and 4 cabinets, ● In average first solution in ~120 sec Optimizations
  • 33. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Search Strategies − Simple Backtracking − Random Backjumping − Guided travelsal by Petri-net abstraction  Constraint optimization − Look-ahead patterns − Exception priority  Evaluation − On average computer (Core duo 1.8 GHz, 2 GB of memory) − Common industrial problem 51 jobs, 7 partitions and 4 cabinets, ● In average first solution in ~120 sec Optimizations
  • 34. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Search Strategies − Simple Backtracking − Random Backjumping − Guided travelsal by Petri-net abstraction  Constraint optimization − Look-ahead patterns − Exception priority  Evaluation − On average computer (Core duo 1.8 GHz, 2 GB of memory) − Common industrial problem 51 jobs, 7 partitions and 4 cabinets, ● In average first solution in ~120 sec Optimizations
  • 35. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Search Strategies − Simple Backtracking − Random Backjumping − Guided travelsal by Petri-net abstraction  Constraint optimization − Look-ahead patterns − Exception priority  Evaluation − On average computer (Core duo 1.8 GHz, 2 GB of memory) − Common industrial problem 51 jobs, 7 partitions and 4 cabinets, ● In average first solution in ~120 sec Optimizations Restriction on the number of rule applications
  • 36. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Search Strategies − Simple Backtracking − Random Backjumping − Guided travelsal by Petri-net abstraction  Constraint optimization − Look-ahead patterns − Exception priority  Evaluation − On average computer (Core duo 1.8 GHz, 2 GB of memory) − Common industrial problem 51 jobs, 7 partitions and 4 cabinets, ● In average first solution in ~120 sec Optimizations Same Global Constraint fails Merge Global constraint into Labeling rule precondition
  • 37. Budapest University of Technology and Economics Fault-tolerant Systems Research Group  Search Strategies − Simple Backtracking − Random Backjumping − Guided travelsal by Petri-net abstraction  Constraint optimization − Look-ahead patterns − Exception priority  Evaluation − On average computer (Core duo 1.8 GHz, 2 GB of memory) − Common industrial problem 51 jobs, 7 partitions and 4 cabinets, ● In average first solution in ~120 sec Optimizations
  • 38. Budapest University of Technology and Economics Fault-tolerant Systems Research Group 38 Outline Introduction CSP(M) Conclusion Solving CSP(M)
  • 39. Budapest University of Technology and Economics Fault-tolerant Systems Research Group Conclusion  Summary − General definition of constraint problems over models ● Labeling rules by GT rules ● Goals and constraints by GT patterns ● Dynamic variables − Implementation over VIATRA2 ● Constraint propagation using incremental pattern matching ● Dynamically add/remove constraints and labeling rules  Future work − Compact state space representation ● Model differentials ● Symbolic state representation ● State comparison − Automatic look-ahead pattern detection (critical pair analysis) − Comparison with Alloy and Korat

Notes de l'éditeur

  1. Global constraint must hold in all traversed state space Goals are need to be satisfied in the solution model Labeling rule defines the valid operations to use to reach a solution model
  2. integrated modular avionics (IMA) system composed of Jobs (also referred as applications), Partitions, Modules and Cabinets. Jobs are the atomic software blocks of the system defined by their memory requirement. Based on their criticality level jobs are separated into two sets: critical and simple (non-critical). For critical jobs double or triple modular redundancy is applied while for simple ones only one instance is allowed. Partitions are complex software components composed of jobs with a predefined free memory space. Jobs can be allocated to the partition as long as they fit into its memory space. Modules are SW components capable of hosting partitions. Finally, Cabinets are storages for maximum up to two modules used to physically distribute elements of the system. Additionally a certain number of safety related requirements will also have to be satisfied: (i) a partition can only host jobs of one criticality level and (ii) instances of a certain critical job can not be allocated to the same partition and module. The task is to allocate an IMA system defined by its jobs and partitions over a predefined cabinet structure and to minimize the number of modules used.
  3. Constraint evaluation. As matches of patterns are cached, this reduces the evaluation of constraints and preconditions of labeling rules to a simple check. This way, the solver has an incrementally maintained up-to-date view of its constraint store and enabled labeling rules.
  4. Exception priority: restrict rule application
  5. Exception priority: restrict rule application
  6. Exception priority: restrict rule application
  7. Exception priority: restrict rule application
  8. Exception priority: restrict rule application
  9. Exception priority: restrict rule application
  10. For introducing GT related notation, I chose a Graph transformation requires a metamodel (or a type graph) that defines the abstract syntax of our modeling domain. Multiplicity declares the number of objects, that at run-time, may participate in an association. An instance model (or an instance graph) is also needed, which describes a concrete system from our domain.
  11. Exception priority: restrict rule application
  12. To traverse the search space of a constraint program introduced in Sec. 3.2, we define the solver as a virtual machine that maintains a 4-tuple (CG,CS,AM,LS) as a state. CG is called the current goal; CS is the constraint store; AM is the actual model; and finally LS is the labeling store. The (i) current goal stores the subgoals that still need to be satisfied; the (ii) constraint store holds all constraints the solver has satisfied so far while the (iii) actual model represents the underlying actual model and finally the (iv) labeling store contains all enabled labeling rules. An element in the labeling store is a pair (l,m), where l is a labeling rule and m is a valid match of its precondition LHSl in AM; formally m : LHSl −!AM. Initially, the CG, CS and LS are