Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
297 B · 14 lines
at develop
1234567891011121314% testing the Bernoulli distribution for both float and integer meansbool: 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)];