Constraints in Evolutionary Algorithms. Constraints: the big questions, page 233  how to evaluate and compare feasible and infeasible solutions  avoid,

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Local Search Algorithms
G5BAIM Artificial Intelligence Methods
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)
Local Search Algorithms Chapter 4. Outline Hill-climbing search Simulated annealing search Local beam search Genetic algorithms Ant Colony Optimization.
LOCAL SEARCH AND CONTINUOUS SEARCH. Local search algorithms  In many optimization problems, the path to the goal is irrelevant ; the goal state itself.
Search by partial solutions. Where are we? Optimization methods Complete solutions Partial solutions Exhaustive search Hill climbing Random restart General.
Spie98-1 Evolutionary Algorithms, Simulated Annealing, and Tabu Search: A Comparative Study H. Youssef, S. M. Sait, H. Adiche
Population New Population Selection Crossover and Mutation Insert When the new population is full repeat Generational Algorithm.
Local Search and Stochastic Algorithms Solution tutorial 4.
Iterative Improvement Algorithms
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Handling Constraints 報告者 : 王敬育. Many researchers investigated Gas based on floating point representation but the optimization problems they considered.
D Nagesh Kumar, IIScOptimization Methods: M1L4 1 Introduction and Basic Concepts Classical and Advanced Techniques for Optimization.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
IE 607 Constrained Design: Using Constraints to Advantage in Adaptive Optimization in Manufacturing.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
COSC 4426 Topics in Computer Science II Discrete Optimization Good results with problems that are too big for people or computers to solve completely
Chapter 7 Handling Constraints
Search Methods An Annotated Overview Edward Tsang.
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
Design of an Evolutionary Algorithm M&F, ch. 7 why I like this textbook and what I don’t like about it!
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
Neural and Evolutionary Computing - Lecture 5 1 Evolutionary Computing. Genetic Algorithms Basic notions The general structure of an evolutionary algorithm.
FINAL EXAM SCHEDULER (FES) Department of Computer Engineering Faculty of Engineering & Architecture Yeditepe University By Ersan ERSOY (Engineering Project)
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
Search by partial solutions.  nodes are partial or complete states  graphs are DAGs (may be trees) source (root) is empty state sinks (leaves) are complete.
1 Combinatorial Problem. 2 Graph Partition Undirected graph G=(V,E) V=V1  V2, V1  V2=  minimize the number of edges connect V1 and V2.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
1 Genetic Algorithms and Ant Colony Optimisation.
Constraint Handling with EAs CONTENTS 1. Motivation and the trouble 2. What is a constrained problem? 3. Evolutionary constraint handling 4. A selection.
A survey of Constraint Handling Techniques in Evolutionary Computation Methods Author: Zbigneiw Michalewicz Presenter: Masoud Mazloom 27 th Oct
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
The n queens problem Many solutions to a classic problem: On an n x n chess board, place n queens so no queen threatens another.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Local Search Algorithms and Optimization Problems
Other partial solution strategies. Partial solution algorithms greedy  branch and bound  A*  divide and conquer  dynamic programming.
Evolutionary Computing Chapter 13. / 24 Chapter 13: Constraint Handling Motivation and the trouble What is a constrained problem? Evolutionary constraint.
1 Combinatorial Problem. 2 Graph Partition Undirected graph G=(V,E) V=V1  V2, V1  V2=  minimize the number of edges connect V1 and V2.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithm(GA)
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
1 Intro to AI Local Search. 2 Intro to AI Local search and optimization Local search: –use single current state & move to neighboring states Idea: –start.
Evolutionary Computation: Advanced Algorithms and Operators
Genetic Algorithm (Knapsack Problem)
School of Computer Science & Engineering
MAE 552 Heuristic Optimization
Balancing of Parallel Two-Sided Assembly Lines via a GA based Approach
School of Computer Science & Engineering
Local Search Algorithms
Example: Applying EC to the TSP Problem
ECE 556 Project Algorithm Presentation
Artificial Intelligence (CS 370D)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Comparing Genetic Algorithm and Guided Local Search Methods
Example: Applying EC to the TSP Problem
Heuristics Local Search
Constraint handling Chapter 12.
The n queens problem Many solutions to a classic problem:
EE368 Soft Computing Genetic Algorithms.
Searching for solutions: Genetic Algorithms
Local Search Algorithms
Beyond Classical Search
Some issues of design philosophy…
Presentation transcript:

Constraints in Evolutionary Algorithms

Constraints: the big questions, page 233  how to evaluate and compare feasible and infeasible solutions  avoid, eliminate, repair or penalize infeasible solutions  what is the relation of infeasibility to optimality

fitness / constraints / representation: a tradeoff  some features of a problem may be included by 1.representation 2.constraints on feasible solutions 3.inclusion in fitness evaluation variables; domains; constraints; fitness

Factors in analyzing constraints 1.Representation 2.Search space 3.Neighbour definition & variation operators 4.Evaluation: fitness function 5.Selection operators

1. Representation possible strategies to address constraints:  include (some) constraints in representation  use ‘decoders’ to interpret all solutions as feasible

constraints in representation: n queens How many states?  Any queen anywhere: 16 4 = 65536(n 2 ) n  Queens on different squares: 16x15x14x13 = 43680n 2 !/(n 2 -n)!  Queens in separate columns: 4 4 = 256n n  Queens in separate cols, rows: 4x3x2x1 = 24n!

decoder makes all solutions feasible: ordinal representation of TSP recall:  transform to ordinal representation A D B C F E -> F D E B C A-> apply normal crossover and restore A D F C E B F D A B E C

decoder makes all solutions feasible: ordinal representation of TSP represent TSP of size n cities by n variables, v 1, v 2, v 3,..., v n D 1 = {1, 2, 3,..., n} D 2 = {1, 2, 3,..., n-1}... D n-1 = {1, 2} D n = {1}EXAMPLE: n=6: decodes to: F D A B E C

2. Search space  partial representation space: constraints reduce domains constraints prune subtrees BUT (for Evolutionary Algorithms)  complete representation space constraints reduce feasible domains neighbour definition & variation operations determine effect during search

Shape of complete representation search space  basic shape is multi-dimensional based on domains  neighbour definitions & variation operators determine connectivity of the space  constraints make solutions either feasible or infeasible (e.g., simplex method)  shape of feasible subspace  connected? convex?

3. Neighbour definitions & variation operators  determines connectedness of space including feasible and infeasible subspaces  properties with respect to transitions from feasible solution: is feasible space connected? are offspring of feasibles all feasible? ~~ convexity recall revised crossover definitions for TSP

Connected feasible space? example: variables v 1, v 2, v 3,..., v 6 D 1 = D 2 =...= D 6 = {1, 2, 3} constraint: values must be repeated in more than one variable feasible: {1, 2, 3, 3, 1, 2}, {3, 3, 3, 2, 2, 2} How to define alteration: crossover? mutation?

4. Evaluation: fitness function  how to include feasibility, infeasibility in fitness evaluation 1.rejection of infeasible solutions 2.repair of infeasible solutions to feasible  put repaired solution in population? 3.infeasibility penality 4.different fitness functions

4. Evaluation: fitness function 1.rejection of infeasible solutions  while creating offspring solutions, reject infeasible solutions and replace with feasible solutions v 1, v 2, v 3,..., v 6 D 1 = D 2 =...= D 6 = {1, 2, 3} constraint: values must be repeated in more than one variable feasible: {1, 2, 3, 3, 1, 2}, {3, 3, 3, 2, 2, 2}

4. Evaluation: fitness function 2.repair of infeasible solutions to feasible  when an infeasible offstring is created, repair it before evaluation  put repaired or infeasible solution in population? Which fitness feasible: {1, 2, 3, 3, 1, 2}, {3, 3, 3, 2, 2, 2}

4. Evaluation: fitness function 3.infeasibility penality  evaluate an infeasible solution for fitness but add a penalty term to its fitness value feasible: {1, 2, 3, 3, 1, 2}, {3, 3, 3, 2, 2, 2} fitness: π i=1 to 5 |v i – v i+1 | - 10*(singletons)

4. Evaluation: fitness function 4.different fitness functions  evaluate infeasible solutions and feasible ones separately how to compare them? feasible: {1, 2, 3, 3, 1, 2}, {3, 3, 3, 2, 2, 2} fitness: eval(s) = q u.eval u (s) + q f.eval f (s) eval f (s) = π i=1 to 5 |v i – v i+1 | eval u (s) = -10*(singletons)

5. Selection operators  reject infeasible solutions  return infeasible solutions to feasible space if possible (hill climbing?)  allow infeasible solutions to remain in population

evolutionary example  knapsack filling given a set of objects of varying weights, how many containers (knapsacks) are needed to carry all the objects?  W: {w 1, w 2, …,w n }, set of object weights  K: knapsack capacity  variables? domains? constraints? fitness?  a ‘decoder’ model with a feasible representation

example from stochastic search Lewis - sudoku by simulated annealing  where are the constraints? box, row, column, initial values  representation  evaluation  transformation