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.
on-restart-benchmarks/share/minizinc/std/fzn_cost_mdd_reif.mzn
Jip J. Dekker fad1b07018 Squashed 'software/minizinc/' content from commit 4f10c8205
git-subtree-dir: software/minizinc
git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
2021-06-16 14:06:46 +10:00

13 lines
887 B
MiniZinc

predicate fzn_cost_mdd_reif(array[int] of var int: x, % variables constrained by MDD
int: N, % number of nodes root is node 1
array[int] of int: level, % level of each node root is level 1, T is level length(x)+1
int: E, % number of edges
array[int] of int: from, % edge leaving node 1..N
array[int] of set of int: label, % values of variable on edge
array[int] of int: cost, % cost of using edge
array[int] of int: to, % edge entering node 0..N where 0 = T node
var int: totalcost, % total cost of path
var bool: b % reification variable
) =
abort("Reified cost_mdd/9 is not supported.");