Transforming and Refining Abstract Constraint Specifications Alan Frisch, Brahim Hnich*, Ian Miguel, Barbara Smith, and Toby Walsh *Cork Constraint Computation.

Slides:



Advertisements
Similar presentations
1D Bin Packing (or “CP? Who cares?”)
Advertisements

Solve Your Problem Faster - by changing the model
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Optimization Problems in Optical Networks. Wavelength Division Multiplexing (WDM) Directed: Symmetric: Undirected: Optic Fiber.
13-Optimization Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Reducing Symmetry in Matrix Models Alan Frisch, Ian Miguel, Toby Walsh (York) Pierre Flener, Brahim Hnich, Zeynep Kiziltan, Justin Pearson (Uppsala)
Case study 5: balanced academic curriculum problem Joint work with Brahim Hnich and Zeynep Kiziltan (CPAIOR 2002)
Generating Implied Constraints via Proof Planning Alan Frisch, Ian Miguel, Toby Walsh Dept of CS University of York EPSRC funded project GR/N16129.
Algorithms + L. Grewe.
Leeds: 6 June 02Constraint Technology for the Masses Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Collaborators:
5-1 Chapter 5 Tree Searching Strategies. 5-2 Satisfiability problem Tree representation of 8 assignments. If there are n variables x 1, x 2, …,x n, then.
Graph Laplacian Regularization for Large-Scale Semidefinite Programming Kilian Weinberger et al. NIPS 2006 presented by Aggeliki Tsoli.
L12. Network optimization problems D. Moltchanov, TUT, Spring 2008 D. Moltchanov, TUT, Spring 2014.
Symmetry as a Prelude to Implied Constraints Alan Frisch, Ian Miguel, Toby Walsh University of York.
Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Extending the Reach of Constraint Technology through Reformulation.
CGRASS A System for Transforming Constraint Satisfaction Problems Alan Frisch, Ian Miguel AI Group University of York Toby Walsh 4C.
Matrix Modelling Alan M. Frisch and Ian Miguel (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Toby Walsh (Cork)
Matrix Modelling Pierre Flener (Uppsala) Alan M. Frisch (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Ian Miguel, and Toby Walsh (York)
Computational Complexity, Physical Mapping III + Perl CIS 667 March 4, 2004.
Alan M. Frisch Ian Miguel Joint work with Matt Grum, Chris Jefferson & Bernadette Martinez Hernandez The Rules of Modelling Automatic Generation of Constraint.
Reducing Symmetry in Matrix Models Alan Frisch, Ian Miguel, Toby Walsh (York) Pierre Flener, Brahim Hnich, Zeynep Kiziltan, Justin Pearson (Uppsala)
Modeling the Covering Test Problem Brahim Hnich, Steven Prestwich, and Evgeny Selensky Cork Constraint Computation Center UCC Supported by SFI.
Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Co-authors Ian Miguel, Toby Walsh, Pierre Flener, Brahim.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
CGRASS A System for Transforming Constraint Satisfaction Problems Alan Frisch, Ian Miguel (York) Toby Walsh (Cork)
Matrix Modelling: Déjà Vu Pierre Flener (Uppsala) Alan M. Frisch (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Ian Miguel, and Toby Walsh (York)
Global Constraints for Lexicographic Orderings Alan Frisch, Ian Miguel (University of York) Brahim Hnich, Toby Walsh (4C) Zeynep Kiziltan (Uppsala University)
Modelling a Steel Mill Slab Design Problem Alan Frisch, Ian Miguel, Toby Walsh AI Group University of York.
Iterative Flattening in Cumulative Scheduling. Cumulative Scheduling Problem Set of Jobs Each job consists of a sequence of activities Each activity has.
Network Flows Based on the book: Introduction to Management Science. Hillier & Hillier. McGraw-Hill.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Chapter 8 Architecture Analysis. 8 – Architecture Analysis 8.1 Analysis Techniques 8.2 Quantitative Analysis  Performance Views  Performance.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
1 Chapter-4: Network Flow Modeling & Optimization Deep Medhi and Karthik Ramasamy August © D. Medhi & K. Ramasamy, 2007.
Symmetry Breaking Ordering Constraints Zeynep Kiziltan Department of Information Science Uppsala University, Sweden A progress.
Optimization formulation Optimization methods help us find solutions to problems where we seek to find the best of something. This lecture is about how.
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
November 18, Traffic Grooming in Optical WDM Networks Presented by : Md. Shamsul Wazed University of Windsor.
Algorithms for Allocating Wavelength Converters in All-Optical Networks Authors: Goaxi Xiao and Yiu-Wing Leung Presented by: Douglas L. Potts CEG 790 Summer.
Interconnect Performance Modeling. Performance modeling Given an interconnect topology, routing, and other parameters, predict the interconnect performance.
Modelling for Constraint Programming Barbara Smith CP 2010 Doctoral Programme.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
11.5 Implicit Partitioning/Packing Problems  Given M = {1, …, m}, K implicitly described sets of feasible subsets of M. Find a maximum value packing or.
Solving Problems by searching Well defined problems A probem is well defined if it is easy to automatically asses the validity (utility) of any proposed.
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
CP Summer School Modelling for Constraint Programming Barbara Smith 3. Symmetry, Viewpoints.
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
Graphs Basic properties.
EMIS 8373: Integer Programming Column Generation updated 12 April 2005.
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
Wavelength-Routed Optical Networks: Linear Formulation, Resource Budgeting Tradeoffs, and a Reconfiguration Study Dhritiman Banergee and Biswanath Mukherjee,
1 Chapter 6 Reformulation-Linearization Technique and Applications.
A Toolbox for Counter-Example Analysis and Optimization
Part 3 Linear Programming
Non-additive Security Games
The minimum cost flow problem
ME 521 Computer Aided Design 15-Optimization
EMIS 8373: Integer Programming
Part 3 Linear Programming
Xiaoyang Zhang1, Yuchong Hu1, Patrick P. C. Lee2, Pan Zhou1
Branch and Bound.
L12. Network optimization
Introduction Basic formulations Applications
Neural Networks Chapter 4
Constraints and Search
Text Categorization Berlin Chen 2003 Reference:
Part 3 Linear Programming
L13. Capacitated and uncapacitated network design problems
Presentation transcript:

Transforming and Refining Abstract Constraint Specifications Alan Frisch, Brahim Hnich*, Ian Miguel, Barbara Smith, and Toby Walsh *Cork Constraint Computation Center Supported by SFI

The Art of Modelling Informal description Modelling Formal description Modelling: mental process Modelling: Informal  Formal

Modelling: conceptual gap Informal description Modelling Formal description Conceptual gap between the informal description of the problem and the formal one

“Easier” Modelling Informal description Modelling Formal description Reducing the conceptual gap makes modelling easier

In this talk… Informal description Formal description Combinatorial Optimisation Problems Constraint Satisfaction Problems

In this talk Informal description Modelling Formal description New conceptual gap Automatic Translation Abstract Formal Specification Intermediate models are easier to develop, understand, and maintain Automatically generated models are “efficient” (compared to what humans can produce) Formal description

Multiple levels of abstractions, transformations, and refinements Informal problem descriptions Abstract specification CSPs Conceptual gap reduced  Easier modelling Automatic generation of alternate CP models through refinement Transformation

SONET problem Abstract Specification Refinement Abstract Specification + Implied Constraintss CP model 4CP model 3CP model 2CP model 1 Transformation Informal Specification Modelling

The SONET probelm Informal description: In a communications network, there are client nodes and known levels of demand between pairs of nodes. However, traffic can only be routed between pairs of distinct nodes if they are installed on the same SONET ring. A node is installed on a SONET ring via a dedicated add-drop multiplexer (ADM). Each node may be installed on multiple rings and demand between a pair of nodes may be split over several rings. The maximum number of rings available is known. Each ring has a capacity in terms of the volume of traffic and the number of nodes that can be installed on it. The objective is to minimise the number of ADMs used.

SONET problem: an instance Given 5 nodes, 3 rings Each ring has a node capacity of 4 Each ring has a traffic capacity of 6 And the following demand graph

An optimal solution Ring1 Ring2Ring3

An optimal solution(Simplified) Ring 1 Ring 2Ring 3 In this talk we ignore the demand levels

An abstract model The set of nodes The set of rings

An abstract model: relation variable In this talk we ignore the demand levels The set of nodes The set of rings Var R:x

An abstract model: Objective funtion The set of nodes The set of rings Var R:x Minimize the cardinality of R //minimizes the number of ADMs

An abstract model: capacity constraint The set of nodes The set of rings Var R:x Minimize the cardinality of R //minimizes the number of ADM For all r in rings. Cardinality of R -1 (r) is less than or equal to capacity R -1 (1)={1,2,3,4}

An abstract model: communication constraint The set of nodes The set of rings Var R:x Minimize the cardinality of R //minimizes the number of ADM For all r in rings. Cardinality of R -1 (r) is less than or equal to capacity For every pair node1 and node2 in the demand graph. R(node1) ∩ R(node2) ≠Ø R(3) ={1,2}

Transformation Starting from the abstract model, we derive 4 implied constraints IC1: imposes a lower bound on the number of ADMs IC2: imposes a lower bound on the number of open rings IC3: a node is installed in a ring only if it communicate with another node in the same ring IC4: the sum of capacities of any two non-empty rings exceeds the capacity of an individual ring..details in the paper

Transformation Starting from the abstract specification, we derive 4 implied constraints Problem-class transformation Work for all instances Keeps the model at the same level of abstraction

Refinement Refinement transforms an abstract model into a model at a lower level of abstraction Two main decisions How to represent abstract variables? How to translate the constraints? Optional tasks How to break symmetry, if it exists? Non-deterministic: a one-to-many mapping

Representing relation variable A B A 2d Boolean matrix M indexed by A and B in R iff M[a,b]=1

Representing relation variable A B {1} {1,2}{1}{2} A 1d matrix M indexed by A of set variables that are subsets of B in R iff b in M[a]

Representing relation variable A B {1,2,3,4}{3,5}{} A 1d matrix M indexed by B of set variables that are subsets of A in R iff a in M[b]

Representing relation variable A B {1,2,3,4}{3,5}{} A 1d matrix M1 indexed by B of set variables that are subsets of A in R iff a in M[b] {1} {1,2}{1}{2} A 1d matrix M2 indexed by A of set variables that are subsets of B in R iff b in M[a] a in M1[b] iff b in M2[a]

Translating constraints Constraints are rewritten based on the choice of representation E.g. …details are in the paper Minimize the cardinality of R Minimize the entries of the Boolean matrix

Breaking symmetry When we represent a relation variable as a 2d matrix for instance Pitfall: row and column symmetry introduced Can be detected while refining the abstract model Add symmetry breaking constraints to the refined model

Multiple levels of abstractions, transformations, and refinements Informal problem descriptions Abstract specification CSPs Conceptual gap reduced  Easier modelling Automatic generation of alternate CP models through refinement Transformation