git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
27 lines
337 B
MiniZinc
27 lines
337 B
MiniZinc
/***
|
|
!Test
|
|
expected: !Result
|
|
status: OPTIMAL_SOLUTION
|
|
solution: !Solution
|
|
x: 0
|
|
y: 11
|
|
b1: false
|
|
b2: true
|
|
***/
|
|
|
|
%% This is to test half-reification
|
|
%% Gleb Belov, 2019
|
|
|
|
var 0..10: x;
|
|
var 0..11: y;
|
|
|
|
var bool: b1;
|
|
var bool: b2;
|
|
|
|
constraint b1 -> x<=4;
|
|
constraint b2 -> y>=7;
|
|
|
|
constraint b1 \/ b2;
|
|
|
|
solve minimize x+b1-y;
|