Evolutionary Computing Chapter 13. / 24 Chapter 13: Constraint Handling Motivation and the trouble What is a constrained problem? Evolutionary constraint.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Satisfaction Problems
Constraint Optimization We are interested in the general non-linear programming problem like the following Find x which optimizes f(x) subject to gi(x)
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Parameter Control A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Chapter 8.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
Genetic Algorithms as a Tool for General Optimization Angel Kuri 2001.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
Approximation Algorithms
The Theory of NP-Completeness
Trivial Parallelization of an Existing EA Asher Freese CS401.
EAs for Combinatorial Optimization Problems BLG 602E.
Handling Constraints 報告者 : 王敬育. Many researchers investigated Gas based on floating point representation but the optimization problems they considered.
Constraint Satisfaction Problems
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
1 Constraint Programming: An Introduction Adapted by Cristian OLIVA from Peter Stuckey (1998) Ho Chi Minh City.
IE 607 Constrained Design: Using Constraints to Advantage in Adaptive Optimization in Manufacturing.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
CSCE350 Algorithms and Data Structure
Chapter 7 Handling Constraints
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
NP Complexity By Mussie Araya. What is NP Complexity? Formal Definition: NP is the set of decision problems solvable in polynomial time by a non- deterministic.
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Constraint Handling with EAs CONTENTS 1. Motivation and the trouble 2. What is a constrained problem? 3. Evolutionary constraint handling 4. A selection.
Chapter 2) CSP solving-An overview Overview of CSP solving techniques: problem reduction, search and solution synthesis Analyses of the characteristics.
Clase 3: Basic Concepts of Search. Problems: SAT, TSP. Tarea 1 Computación Evolutiva Gabriela Ochoa
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
LIMITATIONS OF ALGORITHM POWER
G51IAI Introduction to Artificial Intelligence
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
Solving BCSP using GA and PBIL Constraint Satisfaction Problem Group Sana Benhamida Andrea Roli Belgasem Ali Problem leader J.V.Hemert Jorge Tavares Group.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
A survey of Constraint Handling Techniques in Evolutionary Computation Methods Author: Zbigneiw Michalewicz Presenter: Masoud Mazloom 27 th Oct
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Constraints in Evolutionary Algorithms. Constraints: the big questions, page 233  how to evaluate and compare feasible and infeasible solutions  avoid,
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
ZEIT4700 – S1, 2016 Mathematical Modeling and Optimization School of Engineering and Information Technology.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Evolutionary Computation: Advanced Algorithms and Operators
Chapter 7. Classification and Prediction
MAE 552 Heuristic Optimization
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
C.-S. Shieh, EC, KUAS, Taiwan
Computer Science cpsc322, Lecture 14
ICS 353: Design and Analysis of Algorithms
Constraint handling Chapter 12.
Artificial Intelligence
Chapter 11 Limitations of Algorithm Power
Parameter control Chapter 8.
Constraint satisfaction problems
Chap 7: Penalty functions (1/2)
CS 8520: Artificial Intelligence
Parameter control Chapter 8.
Constraint Satisfaction Problems
Constraint satisfaction problems
Parameter control Chapter 8.
Presentation transcript:

Evolutionary Computing Chapter 13

/ 24 Chapter 13: Constraint Handling Motivation and the trouble What is a constrained problem? Evolutionary constraint handling A selection of related work Conclusions, observations, and suggestions 2

/ 24 Motivation Why bother about constraints? Practical relevance: a great deal of practical problems are constrained. Theoretical challenge: a great deal of untractable problems (NP-hard etc.) are constrained. Why try with evolutionary algorithms? EAs show a good ratio of (implementation) effort/performance. EAs are acknowledged as good solvers for tough problems. 3

/ 24 What is a constrained problem? Consider the Travelling Salesman Problem for n cities, C = {city 1, …, city n } If we define the search space as S = C n, then we need a constraint requiring uniqueness of each city in an element of S S = {permutations of C}, then we need no additional constraint. The notion ‘constrained problem’ depends on what we take as search space 4

/ 24 What is constrained search? or What is free search? Even in the space S = {permutations of C} we cannot perform free search Free search: standard mutation and crossover preserve membership of S, i.e., mut(x)  S and cross(x,y)  S The notion ‘free search’ depends on what we take as standard mutation and crossover. mut is standard mutation if for all  x 1, …, x n , if mut(  x1, …, xn  ) =  x’1, …, x’n , then x’i  domain(i) cross is standard crossover if for all  x1, …, xn ,  y1, …, yn , if cross(  x1, …, xn ,  y1, …, yn  ) =  z1, …, zn , then zi  {xi, yi} discrete case zi  [xi, yi] continuous case 5

/ 24 Free search space Free search space: S = D 1  …  D n one assumption on D i : if it is continuous, it is convex the restriction s i  D i is not a constraint, it is the definition of the domain of the i-th variable membership of S is coordinate-wise, hence a free search space allows free search A problem can be defined through an objective function (to be optimized) constraints (to be satisfied) 6

/ 24 Types of problems Objective Function Constraints YesNo YesConstrained optimization problemConstraint satisfaction problem NoFree optimization problemNo Problem 7

/ 24 Free Optimization Problems Free Optimization Problem:  S, f,  S is a free search space f is a (real valued) objective function on S Solution of an FOP: s  S such that f (s) is optimal in S FOPs are ‘easy’, in the sense that: it's ‘only’ optimizing, no constraints and EAs have a basic instinct for optimization 8

/ 24 FOP: Example Ackley function 9

/ 24 Constraint Satisfaction Problems (1/2) Constraint Satisfaction Problem:  S,, Φ  S is a free search space Φ is a formula (Boolean function on S) Φ is the feasibility condition S Φ = {s  S | Φ(s) = true} is the feasible search space Solution of a CSP: s  S such that Φ(s) = true (s is feasible) 10

/ 24 Constraint Satisfaction Problems (2/2) Φ is typically given by a set (conjunction) of constraints c i = c i (x j1, …, x jni ), where n i is the arity of c i c i  D j1  …  D jni is also a common notation FACTS: The general CSP is NP-complete Every CSP is equivalent with a binary CSP, where all n i  2 Constraint density and constraint tightness are parameters that determine how hard an instance is 11

/ 24 CSP: Example Graph 3-coloring problem: G = (N, E), E  N  N, |N| = n S = D n, D = {1, 2, 3} Φ(s) = Λ e  E c e (s), where c e (s) = true iff e = (k, l) and s k  s l 12

/ 24 Constrained optimization problems Constrained Optimization Problem:  S, f, Φ  S is a free search space f is a (real valued) objective function on S Φ is a formula (Boolean function on S) Solution of a COP: s  S Φ such that f(s) is optimal in S Φ 13

/ 24 COP: Example Travelling salesman problem S = C n, C = {city 1, …, city n } Φ(s) = true   i, j  {1, …, n} i  j  s i  s j f(s) = 14

/ 24 Solving CSPs by EAs (1) EAs need an f to optimize   S,, Φ  must be transformed first to a 1. FOP:  S,, Φ    S, f,  or 2. COP:  S,, Φ    S, f, Ψ  The transformation must be (semi-)equivalent, i.e. at least: 1. f (s) is optimal in S  Φ(s) 2. ψ (s) and f (s) is optimal in S  Φ(s) 15

/ 24 Constraint handling ‘Constraint handling’ interpreted as ‘constraint transformation’ Case 1: CSP  FOP All constraints are handled indirectly, i.e., Φ is transformed into f and later they are solved by `simply‘ optimizing in  S, f,  Case 2: CSP  COP Some constraints handled indirectly (those transformed into f) Some constraints handled directly (those remaining constraints in ψ) In the latter case we also have ‘constraint handling’ in the sense of ‘treated during the evolutionary search’ 16

/ 24 Indirect constraint handling: Introduction (1/3) Constraint handling has two meanings: 1. how to transform the constraints in Φ into f, respectively  f, ψ  before applying an EA 2. how to enforce the constraints in  S, f, Φ  while running an EA Case 1: constraint handling only in the 1st sense (pure penalty approach) Case 2: constraint handling in both senses In Case 2 the question ‘How to solve CSPs by EAs’ transforms to ‘How to solve COPs by EAs’ 17

/ 24 Indirect constraint handling: Introduction (2/3) Note: always needed for all constraints in Case 1 for some constraints in Case 2 Some general options a. penalty for violated constraints b. penalty for wrongly instantiated variables c. estimating distance/cost to feasible solution 18

/ 24 Indirect constraint handling: Introduction (3/3) Notation: c i constraints, i = {1, …, m} v j variables, j = {1, …, n} C j is the set of constraints involving variable v j S c = {z  D j1  …  D jk | c(z) = true} is the projection of c, if v j1, …, v jk are the var's of c d(s, S c ) := min{d(s, z) | z  2 S c } is the distance of s  S from S c (s is projected too) 19

/ 24 Indirect constraint handling (3) 20 Formally: Observe that for each option:

/ 24 Indirect constraint handling: Graph coloring example 21

/ 24 Indirect constraint handling: pro’s & con’s PRO’s of indirect constraint handling: conceptually simple, transparent problem independent reduces problem to ‘simple’ optimization allows user to tune on his/her preferences by weights allows EA to tune fitness function by modifying weights during the search CON’s of indirect constraint handling: loss of info by packing everything in a single number said not to work well for sparse problems 22

/ 24 Direct constraint handling (1/2) Options: eliminating infeasible candidates (very inefficient, hardly practicable) repairing infeasible candidates preserving feasibility by special operators (requires feasible initial population decoding, i.e. transforming the search space (allows usual representation and operators) 23

/ 24 Direct constraint handling (2/2) PRO's of direct constraint handling: it works well (except eliminating) CON's of direct constraint handling: problem specific no guidelines 24