chocoteam / chocoteam/choco-solver

Reified global constraints are decomposed in Minizinc parser

Open
#1,072 1 comment 0 reactions 1 assignee Claimed by @cprudhom View on GitHub
bug
Dominant language
Java
Stars
779
Forks
159
Avg merge
6d 9h
Merged PRs (30d)
10

Description

Dear,

I am using the Choco-solver through Minizinc and noticed the lack of support for (half) reified global constraints in the flatzinc output.

For example, when compiling the following model for Choco v4.10.14, the `alldifferent` constraint gets decomposed.
```minizinc
include "globals.mzn";

int: N = 3;
array[1..N] of var 1..10 : x;
var bool: bv;

constraint bv -> alldifferent(x);
```
While (as far as I understand) the Java interface allows this constraint to be written as:
```java
model.IfThen(bv,model.allDifferent(vars))
```

It seems Minizinc does have support for keeping these reified global constraints (e.g., for Chuffed, the flatzinc output contains the compiled constraint `fzn_all_different_int_imp`.

Are there any plans on adding the reified versions of global constraints to the Minizinc parser?

Kind regards,
Ignace

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.