Skip to content

Commit 3fbad9b

Browse files
committed
fix findscope_obj
1 parent 14ab300 commit 3fbad9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pycona/find_scope/findscope_obj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def split_proba(Y, R, kappaB, P_c, **kwargs):
3939
model = cp.Model()
4040

4141
constraints_Y1 = sum((1 - 10 * ((1 / P_c[kappaB[i]]) <= math.log2(len(Y)))) *
42-
all(hash(scope_var) in hashR or x[hashY.index(hash(scope_var))]
42+
cp.all(hash(scope_var) in hashR or x[hashY.index(hash(scope_var))]
4343
for scope_var in get_scope(kappaB[i]))
4444
for i in range(len(kappaB)))
4545

0 commit comments

Comments
 (0)