Skip to content

Commit e56e480

Browse files
committed
clean up
1 parent 7b49496 commit e56e480

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/reformulate.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function reformulate_disjunction(m::Model, disj...; bin_var, reformulation, para
1212
@assert !in(bin_var, keys(m.ext)) "$bin_var cannot be used as the indicator variable for the disjunction because it has already been used on another disjunction."
1313
m.ext[bin_var] = [] #store constraints associated with indicator variable
1414
#check disj
15-
disj = [check_constraint!(m, constr) for constr in disj]#check_disjunction!(m, disj)
15+
disj = [check_constraint!(m, constr) for constr in disj]
1616
#run reformulation
1717
if reformulation == :hull
1818
if !in(:disaggregated_variables, keys(m.ext))
@@ -27,8 +27,6 @@ function reformulate_disjunction(m::Model, disj, bin_var, reformulation, param)
2727
reformulate_constraint(constr, bin_var, reformulation, param, i)
2828
end
2929
update_constraint_list!(disj, m.ext[bin_var])
30-
# NOTE: Next line files when a disjunct has a single ConstraintRef since iterate is not defined for this type
31-
# push!(m.ext[bin_var], Iterators.flatten(filter(is_constraint, disj))...)
3230
end
3331

3432
"""

0 commit comments

Comments
 (0)