Skip to main content
Log in

On global warming: Flow-based soft global constraints

  • Published:
Journal of Heuristics Aims and scope Submit manuscript

Abstract

In case a CSP is over-constrained, it is natural to allow some constraints, called soft constraints, to be violated. We propose a generic method to soften global constraints that can be represented by a flow in a graph. Such constraints are softened by adding violation arcs to the graph and then computing a minimum-weight flow in the extended graph to measure the violation. We present efficient propagation algorithms, based on different violation measures, achieving domain consistency for the alldifferent constraint, the global cardinality constraint, the regular constraint and the same constraint.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  • Ahuja, R.K., T.L. Magnanti, and J.B. Orlin. (1993). Network Flows. Prentice Hall.

  • Apt, K.R. (2003). Principles of Constraint Programming. Cambridge University Press.

  • Baptiste, P., C. Le Pape, and L. Péridy. (1998). “Global Constraints for Partial CSPs: A Case-Study of Resource and Due Date Constraints.” In M.J. Maher and J.-F. Puget, (eds.), Proceedings of the Fourth International Conference on Principles and Practice of Constraint Programming (CP98), volume 1520 of LNCS, Springer, pp. 87–101.

  • Beldiceanu, N., M. Carlsson, and T. Petit. (2004). “Deriving Filtering Algorithms from Constraint Checkers.” In Proceedings of the Tenth International Conference on Principles and Practice of Constraint Programming (CP 2004), volume 3258 of LNCS, Springer.

  • Beldiceanu, N., I. Katriel, and S. Thiel. (2004). Filtering Algorithms for the Same Constraint. In J.-C. Régin and M. Rueher, editors, Proceedings of the First International Conference on the Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems (CPAIOR 2004), volume 3011 of LNCS, Springer, pp. 65–79.

  • Beldiceanu, N. and T. Petit. (2004). Cost Evaluation of Soft Global Constraints. In J.-C. Régin and M. Rueher, editors, Proceedings of the First International Conference on the Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems (CPAIOR 2004), volume 3011 of LNCS, Springer, pp. 80–95.

  • Beldiceanu, N. (2000). “Global Constraints as Graph Properties on Structured Network of Elementary Constraints of the Same Type.” Technical Report T2000/01, SICS.

  • Bistarelli, S., U. Montanari, and F. Rossi. (1997). “Semiring-based Constraint Satisfaction and Optimization.” Journal of the ACM 44(2), 201–236.

    Article  MathSciNet  Google Scholar 

  • Dechter, R. (1990). “On the Expressiveness of Networks with Hidden Variables.” In Proceedings of the 8th National Conference on Artificial Intelligence (AAAI), AAAI Press/The MIT Press, pp. 555–562.

  • Dechter, R. (2003). Constraint Processing. Morgan Kaufmann.

  • Dubois, D., H. Fargier, and H. Prade. (1993). “The Calculus of Fuzzy Restrictions as a Basis for Flexible Constraint Satisfaction.” In Proceedings of the Second IEEE International Conference on Fuzzy Systems, volume 2, pp. 1131–1136.

  • Fargier, H., J. Lang, and T. Schiex. (1993). “Selecting Preferred Solutions in Fuzzy Constraint Satisfaction Problems.” In Proceedings of the first European Congress on Fuzzy and Intelligent Technologies.

  • Focacci, F., A. Lodi, and M. Milano. (2002). Optimization-Oriented Global Constraints. Constraints 7(3–4), 351–365.

    Article  MathSciNet  Google Scholar 

  • Freuder, E.C. and R.J. Wallace. (1992). “Partial Constraint Satisfaction.” Artificial Intelligence 58(1–3), 21–70.

    Article  MathSciNet  Google Scholar 

  • van Hoeve, W.J. (2004). “A Hyper-Arc Consistency Algorithm for the Soft Alldifferent Constraint.” In M. Wallace, (ed.), Proceedings of the Tenth International Conference on Principles and Practice of Constraint Programming (CP 2004), volume 3258 of LNCS, Springer, pp. 679–689.

  • Hopcroft, J.E. and R.M. Karp. (1973). “An n5/2 Algorithm for Maximum Matchings in Bipartite Graphs.” SIAM Journal on Computing 2(4), 225–231.

    Article  MathSciNet  Google Scholar 

  • Larrosa, J. and T. Schiex. (2003). “In the Quest of the Best form of Local Consistency for Weighted CSP.” In Proceedings of the Eighteenth International Joint Conference on Artificial Intelligence, Morgan Kaufmann, pp. 239–244.

  • Larrosa, J. (2002). “Node and Arc Consistency in Weighted CSP.” In Proceedings of the Eighteenth National Conference on Artificial Intelligence, AAAI Press, pp. 48–53.

  • Mohr, R. and G. Masini. (1988). “Good Old Discrete Relaxation.” In European Conference on Artificial Intelligence (ECAI), pp. 651–656.

  • Pesant, G. (2004). “A Regular Language Membership Constraint for Finite Sequences of Variables.” In Proceedings of the Tenth International Conference on Principles and Practice of Constraint Programming (CP 2004), volume 3258 of LNCS, Springer.

  • Petit, T., J.-C. Régin, and C. Bessière. (2001). “Specific Filtering Algorithms for Over-Constrained Problems.” In T. Walsh, editor, Proceedings of the Seventh International Conference on Principles and Practice of Constraint Programming (CP 2001), volume 2239 of LNCS, Springer, pp. 451–463.

  • Régin, J.-C., T. Petit, C. Bessière, and J.-F. Puget. (2000). “An Original Constraint Based Approach for Solving over Constrained Problems.” In R. Dechter, (eds.), Proceedings of the Sixth International Conference on Principles and Practice of Constraint Programming (CP 2000), volume 1894 of LNCS, Springer, pp. 543–548.

  • Régin, J.-C. (1994). “A Filtering Algorithm for Constraints of Difference in CSPs.” In Proceedings of the Twelfth National Conference on Artificial Intelligence (AAAI), volume 1, AAAI Press, pp. 362–367.

  • Régin, J.-C. (1996). “Generalized Arc Consistency for Global Cardinality Constraint.” In Proceedings of AAAI/IAAI, volume 1, AAAI Press/The MIT Press, pp. 209–215.

  • Régin, J.-C. (1999). “Arc Consistency for Global Cardinality Constraints with Costs.” In J. Jaffar, (ed.), Proceedings of the Fifth International Conference on Principles and Practice of Constraint Programming (CP'99), volume 1713 of LNCS, Springer, pp. 390–404.

  • Régin, J.-C. (2002). “Cost-Based Arc Consistency for Global Cardinality Constraints.” Constraints 7, 387–405.

    Article  MATH  MathSciNet  Google Scholar 

  • Rossi, F., C. Petrie, and V. Dhar. (1990). “On the Equivalence of Constraint Satisfaction Problems.” In Proceedings of the 9th European Conference on Artificial Intelligence (ECAI), pp. 550-556.

  • Ruttkay, Z. (1994). “Fuzzy Constraint Satisfaction.” In Proceedings of the First IEEE Conference on Evolutionary Computing, pp. 542–547.

  • Schiex, T., H. Fargier, and G. Verfaillie. (1995). “Valued Constraint Satisfaction Problems: Hard and Easy Problems.” In Proceedings of the Fourteenth International Joint Conference on Artificial Intelligence, Morgan Kaufmann, pp. 631–639.

  • Schiex, T. (1992). Possibilistic Constraint Satisfaction Problems or “How to handle soft constraints ?”. In Proceedings of the 8th Annual Conference on Uncertainty in Artificial Intelligence, Morgan Kaufmann, pp. 268–275.

  • Schrijver, A. (2003). Combinatorial Optimization-Polyhedra and Efficiency. Springer.

  • Sellmann, M. (2003). “Cost-Based Filtering for Shorter Path Constraints.” In F. Rossi, (ed.), Proceedings of the Ninth International Conference on Principles and Practice of Constraint Programming (CP 2003), volume 2833 of LNCS, Springer, pp. 694–708.

  • Tarjan, R. (1972). “Depth-First Search and Linear Graph Algorithms”. SIAM Journal on Computing 1, 146–160.

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gilles Pesant.

Additional information

This work was for a large part carried out while the author was at the Centrum voor Wiskunde en Informatica, Amsterdam, The Netherlands

Rights and permissions

Reprints and permissions

About this article

Cite this article

Van Hoeve, WJ., Pesant, G. & Rousseau, LM. On global warming: Flow-based soft global constraints. J Heuristics 12, 347–373 (2006). https://doi.org/10.1007/s10732-006-6550-4

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10732-006-6550-4

Keywords

Navigation