add cp_model proto to the sat solver
This commit is contained in:
@@ -187,7 +187,7 @@ class SumArray(LinearExpr):
|
||||
"""Represents the sum of a list of LinearExpr."""
|
||||
|
||||
def __init__(self, array):
|
||||
self.__array = map(CastToLinExp, array)
|
||||
self.__array = [CastToLinExp(elem) for elem in array]
|
||||
|
||||
def __str__(self):
|
||||
return '({})'.format(' + '.join(map(str, self.__array)))
|
||||
|
||||
Reference in New Issue
Block a user