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.
Jip J. Dekker b5f0d64642 Squashed 'prototype/' content from commit 91f7db00
git-subtree-dir: prototype
git-subtree-split: 91f7db00d45e7f991b5587ee07f09977ae311ee7
2021-07-29 14:28:24 +10:00

12 lines
433 B
MiniZinc

% testing Weibull distribution for float and int shape parameters
% weibull(shape-param, scale-param)
var float: x;
var float: y;
float: myFloat1 = weibull(10, 6.1); % Weibull distribution with integer shape parameter
float: myFloat2;
myFloat2 = weibull(1.2, 3.3); % Weibull distribution with float shape parameter
constraint x + y < myFloat1;
constraint x + y > myFloat2;
solve satisfy;
output ["x = ", show(x), "\ny = ", show(y)];