Skip to content

Commit 6333f15

Browse files
committed
set any disaggregated binaries from nested disjuncts as binary
1 parent a01930c commit 6333f15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reformulate.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ function CHR(m, constr, bin_var, i, j, k, eps)
128128
eval(:(@variable($m, $LB <= $var_i <= $UB)))
129129
eval(:(@constraint($m, $LB * $bin_var_ref <= $var_i)))
130130
eval(:(@constraint($m, $var_i <= $UB * $bin_var_ref)))
131+
is_binary(var) && set_binary(m[var_i])
131132
end
132133
end
133134
#create convex hull constraint

0 commit comments

Comments
 (0)