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.
dekker-phd-thesis/assets/mzn/6_sol_function.mzn

11 lines
208 B
MiniZinc

predicate int_sol(var int: x, var int: xi);
function int: sol(var int: x) =
if is_fixed(x) then
fix(x)
else
let {
var lb(x)..ub(x): xi;
constraint int_sol(x,xi);
} in xi;
endif;