Automated Model Acquisition

With today’s technology modeling constraint satisfaction and optimization problems is a cumbersome task. In particular for non-expert users, formalizing a model using appropriate variables and constraints is a challenge. The key challenge is to build systems that learn how to model a problem themselves, or that help a user to build models. We use basic data mining and machine learning technology to address this challenge, focusing on improving constraint programming technology. The resulting systems are capable of deriving partial models automatically and present them to the user for further refinement. We distinguish between:

Learning variables and domains: The first task when defining a CSP(O) model is to decide the set of variables on which constraints will be posted, and to specify the domain of values of these variables. In real applications, even this very basic step of defining which elements of the problem should be variables and which ones should be values can be difficult. However, the expert usually has some valuable background knowledge on her problem. We develop data mining techniques that can take benefit of background knowledge to provide a basic viewpoint, that is, the set of variables that represent the items of the problem to solve, and their domains of possible values.

Learning constraints: Constraints in constraint programming can be categorized along several dimensions.

  • Local vs global constraints. Local constraints involve a fixed number of variables; global constraints can involve an arbitrary number of variables. Global constraints are typically constraints for which improved, specialized algorithms are implemented in CP system. 
  • Soft vs hard constraints. Treating all constraints as hard constraints is not always desirable. While some constraints cannot be violated (‘no two courses can be held in the same room at the same time’), other constraints just reflect desirable requirements (‘it is better not to have three hours of mathematics in a row’). In particular when constraints are learned from data or preferences are collected from users, this may only lead to preferences among solutions. 

Identifying which type of constraint to use is a major problem in the use of CP systems. Our tools help users in identifying local and global constraints, as well as soft and hard constraints. 

We build on two tools developed by the project partners: