Modelling a Steel Mill Slab Design Problem Alan Frisch, Ian Miguel, Toby Walsh AI Group University of York.

Slides:



Advertisements
Similar presentations
3.6 Support Vector Machines
Advertisements

- 1 - Using an SMT Solver and Craig Interpolation to Detect and Remove Redundant Linear Constraints in Representations of Non-Convex Polyhedra Christoph.
Constraint Satisfaction Problems
Cognitive Radio Communications and Networks: Principles and Practice By A. M. Wyglinski, M. Nekovee, Y. T. Hou (Elsevier, December 2009) 1 Chapter 12 Cross-Layer.
1D Bin Packing (or “CP? Who cares?”)
Fast optimal instruction scheduling for single-issue processors with arbitrary latencies Peter van Beek, University of Waterloo Kent Wilken, University.
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Question (from exercises 2) Are the following sources likely to be stationary and ergodic? (i)Binary source, typical sequence aaaabaabbabbbababbbabbbbbabbbbaabbbbbba......
1 Branch-and-Price (Column Generation) Solving Integer Programs With a Huge Number of Variables CP-AI-OR02 School on Optimization Le Croisic, France March.
Truth Tables & Logic Expressions
Optimizing Compilers for Modern Architectures Compiler Improvement of Register Usage Chapter 8, through Section 8.4.
A New Recombination Lower Bound and The Minimum Perfect Phylogenetic Forest Problem Yufeng Wu and Dan Gusfield UC Davis COCOON07 July 16, 2007.
G5BAIM Artificial Intelligence Methods
Global Constraints Toby Walsh National ICT Australia and University of New South Wales
Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) Oct, 5, 2012.
Synthesis For Finite State Machines. FSM (Finite State Machine) Optimization State tables State minimization State assignment Combinational logic optimization.
Finite State Machines Finite state machines with output
Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
Lecture 11 Last Time: Local Search, Constraint Satisfaction Problems Today: More on CSPs.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Leena Suhl University of Paderborn, Germany
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.
MBD and CSP Meir Kalech Partially based on slides of Jia You and Brian Williams.
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.
Optimal Rectangle Packing: A Meta-CSP Approach Chris Reeson Advanced Constraint Processing Fall 2009 By Michael D. Moffitt and Martha E. Pollack, AAAI.
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.
Transforming and Refining Abstract Constraint Specifications Alan Frisch, Brahim Hnich*, Ian Miguel, Barbara Smith, and Toby Walsh *Cork Constraint Computation.
Constraint Models for the Covering Test Problems Authors: Brahim Hnich, Steven D. Prestwich, Evgeny Selensky, Barbara M. Smith Speaker: Pingyu Zhang CSE.
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.
1 Optimisation Although Constraint Logic Programming is somehow focussed in constraint satisfaction (closer to a “logical” view), constraint optimisation.
Constraint Satisfaction Problems
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)
Modelling and Solving English Peg Solitaire Chris Jefferson, Angela Miguel, Ian Miguel, Armagan Tarim. AI Group Department of Computer Science University.
Ch 13 – Backtracking + Branch-and-Bound
Reducing Symmetry in Matrix Models Alan Frisch, Ian Miguel, Toby Walsh (York) Pierre Flener, Brahim Hnich, Zeynep Kiziltan, Justin Pearson (Uppsala)
Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Co-authors Ian Miguel, Toby Walsh, Pierre Flener, Brahim.
CGRASS A System for Transforming Constraint Satisfaction Problems Alan Frisch, Ian Miguel (York) Toby Walsh (Cork)
26 April 2013Lecture 5: Constraint Propagation and Consistency Enforcement1 Constraint Propagation and Consistency Enforcement Jorge Cruz DI/FCT/UNL April.
1 Bandwidth Allocation Planning in Communication Networks Christian Frei & Boi Faltings Globecom 1999 Ashok Janardhanan.
Chapter 5 Outline Formal definition of CSP CSP Examples
Matrix Modelling: Déjà Vu Pierre Flener (Uppsala) Alan M. Frisch (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Ian Miguel, and Toby Walsh (York)
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
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.
Constraint Patterns Toby Walsh 4C, UCC & Uppsala.
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Symmetry Breaking Ordering Constraints Zeynep Kiziltan Department of Information Science Uppsala University, Sweden A progress.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
Constraint Satisfaction Problems University of Berkeley, USA
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
ACO for NP-hard Problems (continued) ACO February 2008 C. Colson.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
Modelling and Solving Configuration Problems on Business
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Computer Science cpsc322, Lecture 14
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraint Satisfaction Problems
Incorporating Constraint Checking Costs in Constraint Satisfaction Problem Suryakant Sansare.
Constraints and Search
Constraint Satisfaction Problems (CSP)
Presentation transcript:

Modelling a Steel Mill Slab Design Problem Alan Frisch, Ian Miguel, Toby Walsh AI Group University of York

Background/Motivation Many problems exhibit some structural flexibility. –E.g. the number required of a certain type of variable. Flexibility must be resolved during the solution process. Slab design representative of this type of problem. Dawande et al. Variable Sized Bin Packing with Color Constraints. –Approximation algorithms guaranteed to be within some bound of an optimal solution

The Slab Design Problem The mill can make different slab sizes. Given j input orders with: –A colour (route through the mill). –A weight. Pack orders onto slabs, minimising total slab capacity. Constraints: –Capacity: Total weight of orders assigned to a slab cannot exceed slab capacity. –Colour: Each slab can contain at most p of k total colours.

An Example Slab Sizes: {1, 3, 4} ( = 3) Orders: {o a, …, o i } (j = 9) Colours: {red, green, blue, orange, brown} (k = 5) p = 2 abcdefghi Solution:

Model A – Redundant Variables Number of slabs is not fixed. –Assume highest order weight does not exceed maximum slab size. Slab variables: {s 1, …, s j }. –Value is size of slab. Solution quality:

Slab Variable Redundancy/Symmetry Some slab variables may be redundant: –0 is added to the domain of each s i. –If s i is not necessary to solve the problem, s i = 0. Slab variables are indistinguishable. So model A suffers from symmetry: –Counteract with binary symmetry-breaking constraints: s 1 s 2, s 2 s 3, etc.

Model A Order Matrix oaoa obob ococ odod s1s s2s s3s s4s Slab variables assigned the same size are indistinguishable. When s i = s i+1 : Corresponding rows of order A are lexicographically ordered. E.g

Model A Colour Matrix RedGreenBlueOrange s1s s2s s3s s4s Channelling:

A Solution: Model A oaoa obob ococ odod oeoe ofof ogog ohoh oioi order oaoa obob ococ odod oeoe ofof ogog ohoh oioi s 1 = s 2 = s 3 = s 4 = … colourRedGreenBlueOrangeBrown s1s s2s s3s s4s …00000

Model A Implied Constraints Combined weight of input orders is a lower bound on optimisation variable: Lower bound on number of slabs required: With symmetry-breaking constraints, decomposes into unary constraints on slab variables.

Model A Implied Constraints (2) assWt i is the weight of orders assigned to s i. –Prune domains by reasoning about reachable values via dynamic programming [Trick, 2001]. –Incorporate both size and colour information. –More powerful if done during search (future work). Minimum number of slabs required:

Model A Implied Constraints (3) waste i = s i – assWt i (under conditions 1, 2).

Model B – Abstraction 2-phase approach: 1.Construct/solve an abstraction of the problem. 2.Solve independent sub-problems, assigning a subset of the orders to slabs of a common size. Phase 1: –Slab size variables, {z 1, z 2, …}. –Domains: {0, …, j} number of slabs of corresponding sized used. –Solution quality:

Model B, Phase 1 Order Matrices oaoa obob ococ odod z1z z3z z4z RedGreenBlueOrange z1z z3z z4z Channelling:

A Solution: Model B, Phase oaoa obob ococ odod oeoe ofof ogog ohoh oioi oaoa obob ococ odod oeoe ofof ogog ohoh oioi z 1 = Z 3 = Z 4 = RedGreenBlueOrangeBrown z1z z3z z4z

Model B Implied Constraints Unary constraints on order matrix:

Model B, Phase 2 Model B, Phase 1 is ambiguous. A Phase 1 solution does provide: –Number and sizes of slabs required. –Size of slab each order is assigned to. –Quality of final solution. Phase 1 solution used to construct much simpler, independent, phase 2 sub- problems.

Model B, Phase 2 Sub-problems oaoa obob ococ odod oeoe ofof ogog ohoh oioi oaoa obob ococ odod oeoe ofof s1s s2s s3s Slabs of size 3 1 Slab of size 4 ogog ohoh oioi s1s1 111

The Price of Ambiguity Phase 2 sub-problems may be inconsistent. –Isolate reasons for failure. –Post constraints at phase 1. –Solve phase 1 again. E.g. o a = 4 o b = 4 o c = 4 o d = 4 z 4 > oaoa obob ococ odod oaoa obob ococ odod s1s1 ???? s2s2 ???? 2 Slabs of size 4 Slab Sizes: {4}, p = 1

A Dual Model A/B Model A and model B, phase 1. –Explicit slab variables (s i ) and slab-size variables (z i ). –Order matrices referring to explicit slabs (order A ) and to slab-sizes (order B ). –Both types of colour matrix. Channelling constraints between the models maintain consistency, aid pruning. –Number of occurrences of i in {s 1, …, s j } = z i. –order A [h, i] = 1 order B [h, s i ] = 1.

A/B Search Strategies Instantiate model A variables first: –Channelling constraints ensure model B variables instantiated. –Analogous to pure model A approach. Instantiate model B variables first: –Channelling constraints constrain model A variables. –Analogous to pure model B approach. Interleaved Strategy: –Obtain most efficient pruning of the search space.

Results OrdersOptimalModel AModel AB : 21, 0.1s 94: 5108, 1.1s 93: 5619, 1.2s 92: 17734, 3.6s 95: 21, 0.2s 94: 4529, 1.2s 93: 4948, 1.4s 92: 15983, 4.6s : 17, 0.1s 101: 5112, 0.9s 100: 5305, 0.9s 99: 92441, 17.8s 107: 17, 0.1s 101: 2934, 0.8s 100: 3103, 0.9s 99: 78548, 23.5s : 23, 0.1s 105: 13074, 2.6s 104: 26757, 5.5s 103: , 50.2s 107: 23, 0.1s 105: 11201, 2.9s 104: 21580, 6.4s 103: , 67.1s : 19, 0.2s 111: 1012, 0.4s 110: , 253.4s 119: s 111: s 110: , 350.3s

Model B Results? On these problems, many solutions at phase 1. Cycle is therefore lengthy. Improve efficiency: –Model phase 1 as a dynamic CSP. –Reduce arity of recorded constraints. –Phase 1 heuristics. –Use dynamic programming information.

Conclusions Results only on small instances. All models need further development: –More implied constraints. –Better heuristics Set variable model: –Each represents a slab –Domain is set of orders assigned. Activity DCSP model: –Model A slab variables `activated according to remaining capacity of open slabs.