From 78e8e54fd1e52ada433944bc62fd3526ff30bcb7 Mon Sep 17 00:00:00 2001 From: "lperron@google.com" Date: Wed, 13 Oct 2010 06:45:26 +0000 Subject: [PATCH] fix max capacity in steel --- python/steel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/steel.py b/python/steel.py index 8f7ee847cc..57579fdf7a 100644 --- a/python/steel.py +++ b/python/steel.py @@ -118,7 +118,7 @@ def main(unused_argv): solver = pywrapcp.Solver('Steel Mill Slab') x = [solver.IntVar(0, nb_slabs - 1, 'x' + str(i)) for i in range(nb_slabs)] - load_vars = [solver.IntVar(0, max_capacity - 1, 'load_vars' + str(i)) + load_vars = [solver.IntVar(0, max_capacity, 'load_vars' + str(i)) for i in range(nb_slabs)] #-------------------post of the constraints--------------