diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-12-14 19:49:14 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-12-14 19:49:14 +0100 |
commit | f06f3da571d2785c0c7753a1c4b33e75cbd8936b (patch) | |
tree | 916cfef13f14f8acf30addd07ffa1394bdf242b9 /packing_pallets_in_trucks/generate-packingpallets.py | |
parent | 61af52b0328d1a875af998fd0ead513ee14eb503 (diff) | |
download | 2IMF25-AR-f06f3da571d2785c0c7753a1c4b33e75cbd8936b.tar.gz |
PackingPallets: solved 1b
Diffstat (limited to 'packing_pallets_in_trucks/generate-packingpallets.py')
-rwxr-xr-x | packing_pallets_in_trucks/generate-packingpallets.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packing_pallets_in_trucks/generate-packingpallets.py b/packing_pallets_in_trucks/generate-packingpallets.py index e46694d..ba81851 100755 --- a/packing_pallets_in_trucks/generate-packingpallets.py +++ b/packing_pallets_in_trucks/generate-packingpallets.py @@ -127,6 +127,13 @@ for i in range(1, n_trucks + 1): "(>= 1 N{i})" ], vars()) +if is_b: + # Prittles and crottles cannot both be on the same truck. Either one of them + # should be zero for every truck. + for i in range(1, n_trucks + 1): + preds += fillin([ + "(or (= 0 P{i}) (= 0 C{i}))" + ], vars()) # Begin generator s = """(benchmark test.smt |