19 April 2013Lecture 4: Associating Narrowing Functions to Constraints1 Associating Narrowing Functions to Constraints Jorge Cruz DI/FCT/UNL April 2013.

Slides:



Advertisements
Similar presentations
Duality for linear programming. Illustration of the notion Consider an enterprise producing r items: f k = demand for the item k =1,…, r using s components:
Advertisements

1 Constraint operations: Simplification, Optimization and Implication.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
 The running time of an algorithm as input size approaches infinity is called the asymptotic running time  We study different notations for asymptotic.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
ECE 3336 Introduction to Circuits & Electronics
1.2 Row Reduction and Echelon Forms
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
1 Basic abstract interpretation theory. 2 The general idea §a semantics l any definition style, from a denotational definition to a detailed interpreter.
19 April 2013Lecture 3: Interval Newton Method1 Interval Newton Method Jorge Cruz DI/FCT/UNL April 2013.
1 Optimisation Although Constraint Logic Programming is somehow focussed in constraint satisfaction (closer to a “logical” view), constraint optimisation.
12 April 2013Lecture 2: Intervals, Interval Arithmetic and Interval Functions1 Intervals, Interval Arithmetic and Interval Functions Jorge Cruz DI/FCT/UNL.
Introduction to Gröbner Bases for Geometric Modeling Geometric & Solid Modeling 1989 Christoph M. Hoffmann.
Discrete Structures Chapter 2 Part B Mathematical Induction
12 April 2013Lecture 1: Interval Constraints Overview1 Interval Constraints Overview Jorge Cruz DI/FCT/UNL April 2013.
26 April 2013Lecture 5: Constraint Propagation and Consistency Enforcement1 Constraint Propagation and Consistency Enforcement Jorge Cruz DI/FCT/UNL April.
D Nagesh Kumar, IIScOptimization Methods: M3L1 1 Linear Programming Preliminaries.
New Approach to Quantum Calculation of Spectral Coefficients Marek Perkowski Department of Electrical Engineering, 2005.
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
©Silberschatz, Korth and Sudarshan7.1Database System Concepts Chapter 7: Relational Database Design First Normal Form Pitfalls in Relational Database Design.
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
Systems and Matrices (Chapter5)
Chapter 10 Functional Dependencies and Normalization for Relational Databases.
CHAPTER 71 TREE. Binary Tree A binary tree T is a finite set of one or more nodes such that: (a) T is empty or (b) There is a specially designated node.
Slide Chapter 7 Systems and Matrices 7.1 Solving Systems of Two Equations.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Algorithms for a large sparse nonlinear eigenvalue problem Yusaku Yamamoto Dept. of Computational Science & Engineering Nagoya University.
Chapter 6 Linear Programming: The Simplex Method
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 Automatic Refinement and Vacuity Detection for Symbolic Trajectory Evaluation Orna Grumberg Technion Haifa, Israel Joint work with Rachel Tzoref.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
Differential Equations MTH 242 Lecture # 13 Dr. Manshoor Ahmed.
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Computer Math CPS120 Introduction to Computer Science Lecture 4.
1 Constraint Reasoning for Differential Models Jorge Cruz CENTRIA - Centre for Artificial Intelligence DI/FCT/UNL June 2009.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/19/2008.
1 Lecture 4: March 13, 2007 Topic: 1. Uniform Frequency-Sampling Methods (cont.)
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
Chapter 9 Sorting. The efficiency of data handling can often be increased if the data are sorted according to some criteria of order. The first step is.
Condition Testing. Condition testing is a test case design method that exercises the logical conditions contained in a program module. A simple condition.
(i) Preliminaries D Nagesh Kumar, IISc Water Resources Planning and Management: M3L1 Linear Programming and Applications.
Copyright © Cengage Learning. All rights reserved Inequalities 2. Equations and Inequalities.
STATIC ANALYSIS OF UNCERTAIN STRUCTURES USING INTERVAL EIGENVALUE DECOMPOSITION Mehdi Modares Tufts University Robert L. Mullen Case Western Reserve University.
Network Systems Lab. Korea Advanced Institute of Science and Technology No.1 Ch. 3 Iterative Method for Nonlinear problems EE692 Parallel and Distribution.
Common Intersection of Half-Planes in R 2 2 PROBLEM (Common Intersection of half- planes in R 2 ) Given n half-planes H 1, H 2,..., H n in R 2 compute.
1 1.2 Linear Equations in Linear Algebra Row Reduction and Echelon Forms © 2016 Pearson Education, Ltd.
Approximation Algorithms based on linear programming.
Computer Math CPS120 Introduction to Computer Science Lecture 7.
Optimization Problems
Chapter 2: Simplification, Optimization and Implication
Condition Testing.
5 Systems of Linear Equations and Matrices
Chapter 5 Systems and Matricies. Chapter 5 Systems and Matricies.
Perturbation method, lexicographic method
Duality for linear programming.
Quantum Two.
Arithmetic Constraints and Automata
Control Structure Testing
Chapter 8. General LP Problems
Enumerating All Nash Equilibria for Two-person Extensive Games
Maths for Signals and Systems Linear Algebra in Engineering Lectures 13 – 14, Tuesday 8th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Chapter 8. General LP Problems
Chapter 8. General LP Problems
Normal Form (Matrix) Games
Chapter 6. Large Scale Optimization
Presentation transcript:

19 April 2013Lecture 4: Associating Narrowing Functions to Constraints1 Associating Narrowing Functions to Constraints Jorge Cruz DI/FCT/UNL April 2013

Lecture 4: Associating Narrowing Functions to Constraints2 Projection Function and its Enclosure Associating Narrowing Functions to Constraints Complementary Approaches Constraint Newton Method Projection Function Enclosure with the Interval Projection Properties of an Interval Projection Interval Projections Inverse Functions Primitive Constraints Constraint Decomposition Method Projection Function Enclosure with the Inverse Function 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints3 Projection Function and its Enclosure A set of narrowing functions is associated with a constraint by considering projections with respect to each variable in the scope A projection function identifies from a box: all the possible values of a particular variable for which there is a value combination belonging to the constraint relation All value combinations within B with x i values outside  x i  (B) are outside the relation  and so they do not satisfy the constraint c. 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints4 Projection Function and its Enclosure All value combinations within B with x i values outside  x i  (B) are outside the relation  and so they do not satisfy the constraint c. 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints5 Projection Function and its Enclosure A box-narrowing function narrows the domain of one variable, from a box representing all the variables of the CCSP, eliminating some values that do not belong to a projection function Correctness follows from  x i  (B[s])  I 1  …  I m (the eliminated combinations have x i values outside the projection function) Contractance follows from I 1  …  I m  I x i (the only changed domain is smaller than the original) 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints6 Constraint Decomposition Method Decomposition of complex constraints into an equivalent set of primitive constraints whose projection functions can be easily computed by inverse functions A set of primitive constraints can be easily obtained from any non- primitive constraint: A constraint may be decomposed by considering new variables and new equality constraints The whole set of primitives may be obtained by repeating this process until all constraints are primitive Primitive Constraints 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints7 Constraint Decomposition Method Primitive Constraints The constraint c is not primitive since it contains two basic arithmetic operators and the variable x 1 occurs twice 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints8 Constraint Decomposition Method Primitive Constraints a new variable x 3 is introduced and c is replaced by c 1 and c 2 P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) the domain of x 3 is unbounded defining a new equivalent CCSP P’ c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints9 Constraint Decomposition Method Inverse Functions 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints10 Constraint Decomposition Method Inverse Functions P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 The inverse interval expressions are associated with the primitive constraints of the decomposed CCSP P’ 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints11 Constraint Decomposition Method Projection Function Enclosure with the Inverse Function The inverse interval expression wrt a variable allows the definition of the projection function of the constraint wrt to that variable 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints12 Constraint Decomposition Method Projection Function Enclosure with the Inverse Function P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 Box-narrowing functions are associated with the decomposed CCSP P’ 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints13 Constraint Decomposition Method Example with B = no pruning would be obtained: x 2 x 1 x 1 = 0 x 1 =x 2 B  x 1  (B) = {0}  [ ]  x 2  (B) = [ ] c  x 1  (x 2 -x 1 ) = 0 P= (X,D,C) = (<x 1,x 2 >,D 1  D 2,{c}) D 1 =[-1..3] D 2 =[ ] B =<[ ],[ ]>  = { <x 1,x 2 >  D |x 1  (x 2 -x 1 ) = 0 } c= (<x 1,x 2 >,  ) c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) B’= and x 3 =[-2.0,2.0] B’= NF 1 ( ) = NF 2 ( ) = NF 3 ( ) = NF 4 ( ) = NF 5 ( ) = 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints14 Constraint Decomposition Method Example with B = the best narrowing is obtained: x 2 x 1 x 1 = 0 x 1 =x 2 B  x 1  (B) = [0.5,1.0]  x 2  (B) = [ ] c  x 1  (x 2 -x 1 ) = 0 P= (X,D,C) = (<x 1,x 2 >,D 1  D 2,{c}) D 1 =[-1..3] D 2 =[ ] B =<[ ],[ ]>  = { <x 1,x 2 >  D |x 1  (x 2 -x 1 ) = 0 } c= (<x 1,x 2 >,  ) c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) B’= and x 3 =[0.0,0.0] B’ NF 1 ( ) = NF 2 ( ) = NF 3 ( ) = NF 4 ( ) = NF 5 ( ) = 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints15 Constraint Decomposition Method Example with B = the best narrowing is also obtained: x 2 x 1 x 1 = 0 x 1 =x 2 B  x 1  (B) = [0.0,0.0]  x 2  (B) = [ ] c  x 1  (x 2 -x 1 ) = 0 P= (X,D,C) = (<x 1,x 2 >,D 1  D 2,{c}) D 1 =[-1..3] D 2 =[ ] B =<[ ],[ ]>  = { <x 1,x 2 >  D |x 1  (x 2 -x 1 ) = 0 } c= (<x 1,x 2 >,  ) c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) B’= and x 3 =[0.5,1.5] B’ NF 1 ( ) = NF 2 ( ) = NF 3 ( ) = NF 4 ( ) = NF 5 ( ) = 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints16 Constraint Decomposition Method Example with B = inconsistency is proved: x 2 x 1 x 1 = 0 x 1 =x 2 B  x 1  (B ) =   x 2  (B c  x 1  (x 2 -x 1 ) = 0 P= (X,D,C) = (<x 1,x 2 >,D 1  D 2,{c}) D 1 =[-1..3] D 2 =[ ] B =<[ ],[ ]>  = { <x 1,x 2 >  D |x 1  (x 2 -x 1 ) = 0 } c= (<x 1,x 2 >,  ) c1 x1x3=0c1 x1x3=0 c2 x2-x1=x3c2 x2-x1=x3 P’=(,D 1  D 2  [- ..+  ],{c 1,c 2 }) B’ =  NF 1 ( ) = NF 2 ( ) = NF 3 ( ) = NF 4 ( ) = NF 5 ( ) = 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints17 Constraint Newton Method Complex constraints are handled without decomposition using a technique based on the interval Newton method for searching the zeros of univariate functions Interval Projections 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints18 Constraint Newton Method All value combinations within B with x i values outside  x i  (B) are outside the relation  and so they do not satisfy the constraint c. Interval Projections  x 1  B  x 1  ([ ] ‑ x 1 )  x 2  B  [ ]  (x 2 -[ ]) 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints19 Constraint Newton Method Properties of an Interval Projection From the properties of the interval projections, a strategy is devised for obtaining an enclosure of the projection function 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints20 Constraint Newton Method  r  [-0.5,2.5] r  x 1  (B)   v  [r]  ([ ] ‑ [r]): v = 0 Properties of an Interval Projection  x 1  B  x 1  ([ ] ‑ x 1 )  x 2  B  [ ]  (x 2 -[ ])  r  [0.5,1.5] r  x 2  (B)   v  [ ]  ([r]-[ ]): v = 0 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints21 Constraint Newton Method Projection Function Enclosure with the Interval Projection The strategy used in the constraint Newton method is to search for the leftmost and the rightmost elements of the original variable domain satisfying the interval projection condition What is needed is a function, denoted narrowBounds, with the following property:  x i  (B)  [a..b]  narrowBounds(B[x i ]) 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints22 Constraint Newton Method Projection Function Enclosure with the Interval Projection To obtain a new bound, the projection condition is firstly verified in the extreme of the original domain and only in case of failure the leftmost (rightmost) zero of the interval projection is searched In case of failure of an inequality condition, it assumes that the leftmost (rightmost) element satisfying the interval projection condition must be a zero of the interval projection 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints23 Constraint Newton Method Projection Function Enclosure with the Interval Projection The verification if the interval projection condition is satisfied in a canonical interval is straightforward 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints24 Constraint Newton Method Projection Function Enclosure with the Interval Projection The algorithm for searching for the leftmost zero of an interval projection uses a Newton Narrowing function (NN) associated with the interval projection for reducing the search space 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints25 Constraint Newton Method Narrowing the domain of variable x 1 : narrowBounds([-0.5,2.5]) Example  x 1  B  x 1  ([ ] ‑ x 1 )  x 2  B  [ ]  (x 2 -[ ]) intervalProjCond([-0.5,-0.499])  False 0  x 1  B ([-0.5,-0.499])=[-1,-0.499] 19 April 2013

18 March 2011Lecture 4: Associating Narrowing Functions to Constraints26 Constraint Newton Method Example  x 1  B  x 1  ([ ] ‑ x 1 )  x 2  B  [ ]  (x 2 -[ ]) 19 April 2013Lecture 4: Associating Narrowing Functions to Constraints26

Lecture 4: Associating Narrowing Functions to Constraints27 Constraint Newton Method Example  x 1  B  x 1  ([ ] ‑ x 1 )  x 2  B  [ ]  (x 2 -[ ]) Proceeding similarly for the upper bound of x 1, the best narrowing is obtained: B’= B’ 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints28 Complementary Approaches A modification of the Newton method, is to use other interval extensions of the projection function associated with a constraint A modification of the decomposition method, transforms the original set of constraints into an equivalent one where for each constraint (not necessarily primitive) the inverse interval expressions can be easily computed by interval arithmetic Other modification is the introduction of a pre-processing phase preceding the definitions of the box-narrowing functions to obtain an equivalent CCSP (ex: introduction of redundant constraints) 19 April 2013

Lecture 4: Associating Narrowing Functions to Constraints29 Complementary Approaches Other variation is the development of an algorithm capable of implementing a narrowing function for any constraint without decomposing, with the same results as the decomposition method A complementary approach take advantage of the way that a complex constraint is expressed: An algorithm that does not require decomposing complex constraints, makes it possible to combine both basic methods, and choose either one or the other, according to the form of the expression of the interval projection Finally, some approaches consider narrowing functions capable of narrowing several variable domains simultaneously (ex: based on the multivariate interval Newton method) 19 April 2013