Efficient Implementation of the Global Cardinality Constraint with Costs

Authors Margaux Schmied , Jean-Charles Régin



PDF
Thumbnail PDF

File

LIPIcs.CP.2024.27.pdf
  • Filesize: 0.82 MB
  • 18 pages

Document Identifiers

Author Details

Margaux Schmied
  • Université Côte d'Azur, CNRS, I3S, Sophia Antipolis, France
Jean-Charles Régin
  • Université Côte d'Azur, CNRS, I3S, Sophia Antipolis, France

Cite AsGet BibTex

Margaux Schmied and Jean-Charles Régin. Efficient Implementation of the Global Cardinality Constraint with Costs. In 30th International Conference on Principles and Practice of Constraint Programming (CP 2024). Leibniz International Proceedings in Informatics (LIPIcs), Volume 307, pp. 27:1-27:18, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024)
https://doi.org/10.4230/LIPIcs.CP.2024.27

Abstract

The success of Constraint Programming relies partly on the global constraints and implementation of the associated filtering algorithms. Recently, new ideas emerged to improve these implementations in practice, especially regarding the all different constraint. In this paper, we consider the cardinality constraint with costs. The cardinality constraint is a generalization of the all different constraint that specifies the number of times each value must be taken by a given set of variables in a solution. The version with costs introduces an assignment cost and bounds the total sum of assignment costs. The arc consistency filtering algorithm of this constraint is difficult to use in practice, as it systematically searches for many shortest paths. We propose a new approach that works with upper bounds on shortest paths based on landmarks. This approach can be seen as a preprocessing. It is fast and avoids, in practice, a large number of explicit computations of shortest paths.

Subject Classification

ACM Subject Classification
  • Computing methodologies → Planning for deterministic actions
  • Theory of computation → Constraint and logic programming
Keywords
  • global constraint
  • filtering algorithm
  • cardinality constraints with costs
  • arc consistency

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. R. K. Ahuja, T. L. Magnanti, and J. B. Orlin. Network Flows: Theory, Algorithms, and Applications. Prentice hall, 1993. Google Scholar
  2. C. Berge. Graphs and Hypergraphs. Elsevier Science Ltd, 1985. Google Scholar
  3. G. Demassey, S.and Pesant and L.-M. Rousseau. A Cost-Regular Based Hybrid Column Generation Approach. Constraints, 11(4):315-333, December 2006. URL: https://doi.org/10.1007/s10601-006-9003-7.
  4. S. Ducomman, H. Cambazard, and B. Penz. Alternative Filtering for the Weighted Circuit Constraint: Comparing Lower Bounds for the TSP and Solving TSPTW. In AAAI 2016, Phoenix, United States, February 2016. URL: https://hal.science/hal-01420964.
  5. R. Gerhard. TSPLIB-a traveling salesman problem library. ORSA Journal on Computing, 3(4):376-384, 1991. Google Scholar
  6. A. V. Goldberg and C. Harrelson. Computing the shortest path: A search meets graph theory. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '05, pages 156-165, USA, 2005. Society for Industrial and Applied Mathematics. Google Scholar
  7. S. Gualandi and F. Malucelli. Constraint Programming-based Column Generation. Annals of Operations Research, 204(1):11-32, April 2013. URL: https://doi.org/10.1007/s10479-012-1299-7.
  8. V. R. Houndji, P. Schaus, and L. Wolsey. The item dependent stockingcost constraint. Constraints, 24(2):183-209, April 2019. URL: https://doi.org/10.1007/s10601-018-9300-y.
  9. N. Isoart. The traveling salesman problem in constraint programming. Theses, Université Côte d'Azur, November 2021. URL: https://theses.hal.science/tel-03554009.
  10. E. Lawler. Combinatorial optimization - networks and matroids. Holt, Rinehart and Winston, New York, 1976. Google Scholar
  11. S. Lin and B. W. Kernighan. An effective heuristic algorithm for the traveling-salesman problem. Oper. Res., 21:498-516, 1973. URL: https://api.semanticscholar.org/CorpusID:33245458.
  12. P. Nightingale, Ö. Akgün, I. P. Gent, C. Jefferson, I. Miguel, and P. Spracklen. Automatically improving constraint models in Savile Row. Artificial Intelligence, 251:35-61, 2017. URL: https://doi.org/10.1016/j.artint.2017.07.001.
  13. M. Pelleau, A. Miné, C. Truchet, and F. Benhamou. A constraint solver based on abstract domains. In Verification, Model Checking, and Abstract Interpretation, 14th International Conference, VMCAI 2013, Rome, Italy, January 20-22, 2013. Proceedings, pages 434-454, 2013. URL: https://doi.org/10.1007/978-3-642-35873-9_26.
  14. J.-C. Régin. Cost-based arc consistency for global cardinality constraints. Constraints, 7(3/4):387-405, July 2002. URL: https://doi.org/10.1023/A:1020506526052.
  15. J.-C. Régin. Filtering algorithm for constraints of difference in csps. In Proceedings of the National Conference on Artificial Intelligence, volume 1, July 1994. Google Scholar
  16. J.-C. Régin. Generalized arc consistency for global cardinality constraint. In Proceedings AAAI'96, pages 209-215, January 1996. Google Scholar
  17. R. E. Tarjan. Data structures and network algorithms. Society for Industrial and Applied Mathematics, USA, 1983. Google Scholar
  18. W.-J. Van Hoeve, G. Pesant, and L.-M. Rousseau. On global warming: Flow-based soft global constraints. Journal of Heuristics, 12(4):347-373, September 2006. URL: https://doi.org/10.1007/s10732-006-6550-4.
  19. S. Varone and C. Beffa. Dataset on a problem of assigning activities to children, with various optimization constraints. Data in Brief, 2019. Google Scholar
  20. T. Weise. jsspinstancesandresults: Results, data, and instances of the job shop scheduling problem, 2019-2020. A GitHub repository with the common benchmark instances for the Job Shop Scheduling Problem as well as results from the literature, both in form of CSV files as well as R program code to access them. URL: https://github.com/thomasWeise/jsspInstancesAndResults.
  21. X. Zhang, J. Gao, Y. Lv, and W. Zhang. Early and efficient identification of useless constraint propagation for alldifferent constraints. In Christian Bessiere, editor, Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20, pages 1126-1133. International Joint Conferences on Artificial Intelligence Organization, July 2020. Main track. URL: https://doi.org/10.24963/ijcai.2020/157.
  22. X. Zhang, Q. Li, and W. Zhang. A fast algorithm for generalized arc consistency of the alldifferent constraint. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, pages 1398-1403. International Joint Conferences on Artificial Intelligence Organization, July 2018. URL: https://doi.org/10.24963/ijcai.2018/194.
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail