Course Scheduling Nikolaos Pothitos, Panagiotis in an Adjustable - - PowerPoint PPT Presentation

course scheduling
SMART_READER_LITE
LIVE PREVIEW

Course Scheduling Nikolaos Pothitos, Panagiotis in an Adjustable - - PowerPoint PPT Presentation

Course Scheduling in an Adjustable Constraint Propagation Schema Course Scheduling Nikolaos Pothitos, Panagiotis in an Adjustable Constraint Stamatopoulos, Kyriakos Zervoudakis Propagation Schema 1. Introduction 2. Related Work


slide-1
SLIDE 1

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling in an Adjustable Constraint Propagation Schema

Nikolaos Pothitos Panagiotis Stamatopoulos Kyriakos Zervoudakis

Department of Informatics and Telecommunications University of Athens

1

slide-2
SLIDE 2

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Introduction

  • Course timetabling: an intensive problem.
  • Occurs in schools and academia.
  • Often still solved “by hand.”
  • Until utilizing Artificial Intelligence tools.
  • We design Constraint Programming methodologies.

2

slide-3
SLIDE 3

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Related Work: Other Timetabling Solutions

  • Artificial Intelligence Paradigms

◮ Tabu Search ◮ Genetic Algorithms ◮ Local Search

  • Other Methodologies

◮ Network Flow ◮ Clustering to small sub-problems 3

slide-4
SLIDE 4

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

We Chose Constraint Programming

  • Constraint Programming incorporates Artificial

Intelligence.

  • Also used in other fields.
  • Separates the problem declaration phase. . .
  • . . . from the solution search algorithm.
  • A flexible intelligent programming paradigm.

4

slide-5
SLIDE 5

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Introduction to Constraint Satisfaction Problems

  • Constraint Programming solves Constraint Satisfaction

Problems (CSPs).

  • A CSP is described by:
  • 1. the variables of the problem,

◮ e.g. X, Y ,

  • 2. the domains of the variables,

◮ e.g. DX = {0, 1}, DY = {1, 3, 4},

  • 3. the constraints between the variables,

◮ e.g. X = Y . 5

slide-6
SLIDE 6

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Solving a Constraint Satisfaction Problem

  • Assignment: makes a domain singleton.
  • Complete assignment: involves all variables.
  • Valid assignment: satisfies the constraints.
  • Solution: a valid complete assignment.

6

slide-7
SLIDE 7

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Solving Procedure – Search Method

  • A posteriori constraint enforcement

◮ Checks constraints after the assignments.

  • Constraint Propagation

◮ Done a priori. ◮ Prunes no-good values from domains. 7

slide-8
SLIDE 8

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Another CSP: N Queens

⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆

8

slide-9
SLIDE 9

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

9

slide-10
SLIDE 10

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

10

slide-11
SLIDE 11

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

11

slide-12
SLIDE 12

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

12

slide-13
SLIDE 13

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

13

slide-14
SLIDE 14

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

14

slide-15
SLIDE 15

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆

15

slide-16
SLIDE 16

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆

16

slide-17
SLIDE 17

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆

17

slide-18
SLIDE 18

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆

18

slide-19
SLIDE 19

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆

19

slide-20
SLIDE 20

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆

20

slide-21
SLIDE 21

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆

21

slide-22
SLIDE 22

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆

22

slide-23
SLIDE 23

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆

23

slide-24
SLIDE 24

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆

24

slide-25
SLIDE 25

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆

25

slide-26
SLIDE 26

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆

26

slide-27
SLIDE 27

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆

27

slide-28
SLIDE 28

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆

28

slide-29
SLIDE 29

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆

29

slide-30
SLIDE 30

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆

30

slide-31
SLIDE 31

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆

31

slide-32
SLIDE 32

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆

32

slide-33
SLIDE 33

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆

33

slide-34
SLIDE 34

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆ ⋆

34

slide-35
SLIDE 35

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆

35

slide-36
SLIDE 36

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆

36

slide-37
SLIDE 37

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆

37

slide-38
SLIDE 38

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation for N Queens

⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆ ⋆

38

slide-39
SLIDE 39

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation is Preventive

  • The search tree becomes limited.
  • But pruning costs.
  • Full constraint propagation is “expensive.”
  • A trade-off.

39

slide-40
SLIDE 40

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Limiting Constraint Propagation

  • Propagate only important assignments

◮ E.g. big domain proportion removals

  • Limit the variables number affected

◮ Reduce the “domino” effect 40

slide-41
SLIDE 41

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Our Contributions: Contents

  • 1. Course scheduling CSP formulation
  • 2. New semi-random heuristics
  • 3. New looser constraint propagation levels

41

slide-42
SLIDE 42

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling: Variables

  • Each lecture consists a variable

◮ xi: time-slot for lecture

  • Each lecture has its classroom

◮ cli: space-slot for lecture 42

slide-43
SLIDE 43

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling: The “Resource” Constraint

  • Teachers and rooms are resources
  • Each teacher provides time-slots
  • At most one lecture/slot

43

slide-44
SLIDE 44

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling: A Teacher’s Constraints

x2

3

2 1

t1 x3 x1

4

Xt = {x1, x2, x3} , AllDifferent(Xt)

44

slide-45
SLIDE 45

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling: Classrooms as Resources

  • Multiple rooms available for lectures
  • Two-dimensional time/room-slots

45

slide-46
SLIDE 46

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling: Constraint for Classrooms

r1 r2 r3

4

3

2 1

R (x3, cl3) (x4, cl4) (x5, cl5) (x2, cl2) (x1, cl1)

XR = {(x1, cl1), (x2, cl2), . . . , (x5, cl5)} , AllDifferent(XR)

46

slide-47
SLIDE 47

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Course Scheduling: Constraints and Optimization

  • International Timetabling Competition 2007/08

specifications

  • More constraints and optimization criteria
  • Unification for various educational institutes

47

slide-48
SLIDE 48

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Searching for a Solution

  • This phase is independent
  • Several methods can be employed

◮ Depth First Search (DFS) ◮ Depth-bounded Backtrack Search (DBS) ◮ Iterative Broadening ◮ . . . 48

slide-49
SLIDE 49

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Stochastic Search Methods

  • Guided by random heuristics
  • A new hybrid semi-random heuristic
  • Gradually makes normal heuristics random
  • rand: the randomness degree level
  • More randomness while rand → 0+

49

slide-50
SLIDE 50

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Normal Heuristics

  • Normal heuristics evaluate assignments.
  • Map values vi to hi.
  • Choose vi with maximum hi.

50

slide-51
SLIDE 51

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Random Heuristics

  • Choose vi completely at random.
  • Corresponding probability Pi is same.
  • hi not taken into account.

51

slide-52
SLIDE 52

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Normal + Random Heuristics = ?

  • Is there a compromise?

Pi = hrand

i

  • i hrand

i

  • hi is taken into account. . .
  • . . . especially as rand grows.

52

slide-53
SLIDE 53

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Constraint Propagation: Less is More

  • We enforce limited constraint propagation
  • For variables with small domains
  • k: the domain size threshold
  • Domains with greater size excluded

53

slide-54
SLIDE 54

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

k-Constraint-Propagation: Theoretical Motivation

  • d: The maximum domain size
  • Consistency between two variables: O(d2)
  • In our schema costs O(k · d)
  • k is less than d
  • Less consistency =

⇒ more flexibility

54

slide-55
SLIDE 55

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

k-Constraint-Propagation Speed

10 20 30 40 50 60 70 80 90 100 2 4 6 8 10 12 14 100 200 300 400 Time (secs) k Dataset Time (secs)

  • We solve fourteen datasets
  • Real world course scheduling problems
  • k marginal values: worse results

55

slide-56
SLIDE 56

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

k-Constraint-Propagation Objective

10 20 30 40 50 60 70 80 90 100 2 4 6 8 10 12 14 2000 4000 6000 Solution Cost k Dataset Solution Cost

  • Best k value: around 25
  • Slight solution quality improvement
  • But took less time

56

slide-57
SLIDE 57

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Several Search Methods Were Used

  • Depth First Search (DFS)
  • Depth-bounded Backtrack Search (DBS)
  • Iterative Broadening
  • Several rand values
  • We exploited search phase independence.

57

slide-58
SLIDE 58

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Optimization for First Timetabling Instance

150 200 250 300 350 400 450 500 550 600 00:00 01:00 02:00 03:00 04:00 05:00 Solution Cost Time (minutes:secs) Iterative Broadening rand = 70.0 rand = 7.0 rand = 0.5 DFS DBS

58

slide-59
SLIDE 59

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Results for the Second Instance

300 350 400 450 500 550 600 650 700 750 800 00:00 01:00 02:00 03:00 04:00 05:00 Solution Cost Time (minutes:secs) Iterative Broadening rand = 70.0 rand = 7.0 rand = 0.5 DFS DBS

  • Similar to the first instance

59

slide-60
SLIDE 60

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Our Contributions: Conclusions

  • 1. Course Scheduling as a CSP
  • 2. Problem entities handled as resources
  • 3. An “armory” of search methods
  • 4. Design of semi-random heuristics
  • 5. Efficient lightweight constraint propagation schemas

60

slide-61
SLIDE 61

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Future Perspectives

  • Automatically find best k threshold
  • Change search method during search
  • A mathematical semi-random heuristics framework

61

slide-62
SLIDE 62

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Main References

  • R. Bart´

ak, “Incomplete depth-first search techniques: A short survey,” in CPDC2004: 6th Workshop on Constraint Programming for Decision and Control, Gliwice, Poland, 2004, pp. 7–14.

  • C. Bessi`

ere, “Constraint propagation,” in Handbook of Constraint

  • Programming. Amsterdam: Elsevier Science, 2006, ch. 3, pp.

29–83.

  • E. C. Freuder and R. Wallace, “Selective relaxation for constraint

satisfaction problems,” in ICTAI 1991: 3rd International Conference on Tools for Artificial Intelligence, San Jose CA, IEEE, 1991, pp. 332–339.

  • B. McCollum, A. Schaerf, B. Paechter, P. McMullan, R. Lewis,
  • A. J. Parkes, L. D. Gaspero, R. Qu, and E. K. Burke, “Setting the

research agenda in automated timetabling: The second international timetabling competition,” INFORMS Journal on Computing, vol. 22, no. 1, pp. 120–130, 2010.

  • M. L. Pinedo, Scheduling: Theory, Algorithms, and Systems,

4th ed. New York: Springer, 2012.

62

slide-63
SLIDE 63

Course Scheduling in an Adjustable Constraint Propagation Schema Nikolaos Pothitos, Panagiotis Stamatopoulos, Kyriakos Zervoudakis

  • 1. Introduction
  • 2. Related Work
  • 3. Contents
  • 4. Our Course

Timetabling Model

  • 5. New Random

Heuristics

  • 6. Adjusting

Constraint Propagation

  • 7. Conclusions –

Contributions

Thank You Very Much! I Will Be Happy to Answer Your Questions :-)

Naxos Solver

Powered by http://di.uoa.gr/~pothitos/naxos

63