Enumerated types and type extensions for MiniZinc

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

Abstract

Discrete optimisation problems often reason about finite sets of objects. While the underlying solvers will represent these objects as integer values, most modelling languages include enumerated types that allow the objects to be expressed as a set of names. Data attached to an object is made accessible through given arrays or functions from object to data. Enumerated types improve models by making them more self documenting, and by allowing type checking to point out modelling errors that may otherwise be hard to track down. But a frequent modelling pattern requires us to add new elements to a finite set of objects to represent extreme or default behaviour, or to combine sets of objects to reason about them jointly. Currently this requires us to map the extended object sets into integers, thus losing the benefits of using enumerated types. In this paper we introduce enumerated type extension, a restricted form of discriminated union types, to extend enumerated types without losing type safety, and default expressions to succinctly capture cases where we want to access data of extended types. The new language features allow for more concise and easily interpretable models that still support strong type checking and compilation to efficient solver-level models.

Original languageEnglish
Title of host publicationIntegration of Constraint Programming, Artificial Intelligence, and Operations Research - 19th International Conference, CPAIOR 2022 Los Angeles, CA, USA, June 20–23, 2022 Proceedings
EditorsPierre Schaus
Place of PublicationCham Switzerland
PublisherSpringer
Pages374-389
Number of pages16
ISBN (Electronic)9783031080111
ISBN (Print)9783031080104
DOIs
Publication statusPublished - 2022
EventInternational Conference on Integration of Artificial Intelligence and Operations Research Techniques in Constraint Programming for Combinatorial Optimization Problems 2022 - Los Angeles, United States of America
Duration: 20 Jun 202223 Jun 2022
Conference number: 19th
https://link.springer.com/book/10.1007/978-3-031-08011-1 (Proceedings)
https://sites.google.com/usc.edu/cpaior-2022 (Website)

Publication series

NameLecture Notes in Computer Science
PublisherSpringer
Volume13292
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceInternational Conference on Integration of Artificial Intelligence and Operations Research Techniques in Constraint Programming for Combinatorial Optimization Problems 2022
Abbreviated titleCPAIOR 2022
Country/TerritoryUnited States of America
CityLos Angeles
Period20/06/2223/06/22
Internet address

Cite this