FOCUS: a constraint for concentrating high costs

  • Authors:
  • Thierry Petit

  • Affiliations:
  • TASC (Mines Nantes, LINA, CNRS, INRIA), Nantes Cedex 3, France

  • Venue:
  • CP'12 Proceedings of the 18th international conference on Principles and Practice of Constraint Programming
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Many Constraint Programming models use integer cost variables aggregated in an objective criterion. In this context, some constraints involving exclusively cost variables are often imposed. Such constraints are complementary to the objective function. They characterize the solutions which are acceptable in practice. This paper deals with the case where the set of costs is a sequence, in which high values should be concentrated in a few number of areas. Representing such a property through a search heuristic may be complex and overall not precise enough. To solve this issue, we introduce a new constraint, Focus(X, yc,len, k), where X is a sequence of n integer variables, yc an integer variable, and len and k are two integers. To satisfy Focus, the minimum number of distinct sub-sequences of consecutive variables in X, of length at most len and that involve exclusively values strictly greater than k, should be less than or equal to yc. We present two examples of problems involving Focus. We propose a complete filtering algorithm in O(n) time complexity.