Reformulating Global Grammar Constraints

  • Authors:
  • George Katsirelos;Nina Narodytska;Toby Walsh

  • Affiliations:
  • NICTA, Sydney, Australia;NICTA and University of NSW, Sydney, Australia;NICTA and University of NSW, Sydney, Australia

  • Venue:
  • CPAIOR '09 Proceedings of the 6th International Conference on Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

An attractive mechanism to specify global constraints in rostering and other domains is via formal languages. For instance, the Regular and Grammar constraints specify constraints in terms of the languages accepted by an automaton and a context-free grammar respectively. Taking advantage of the fixed length of the constraint, we give an algorithm to transform a context-free grammar into an automaton. We then study the use of minimization techniques to reduce the size of such automata and speed up propagation. We show that minimizing such automata after they have been unfolded and domains initially reduced can give automata that are more compact than minimizing before unfolding and reducing. Experimental results show that such transformations can improve the size of rostering problems that we can "model and run".