1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.

14 lines
297 B
MiniZinc

% testing the Bernoulli distribution for both float and integer means
bool: myBool1;
bool: myBool2 = bernoulli(0.3);
var int: x;
var int: y;
myBool1 = bernoulli(0.7);
constraint
myBool1 -> x + y = 0;
constraint
myBool2 -> x > 3;
solve satisfy;
output ["x = ", show(x), "\ny = ", show(y)];