Skip to content

Commit a7bf324

Browse files
committed
attempt to improve speed using by storing disaggregated vars in a Set instead of vector
1 parent 5a03217 commit a7bf324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reformulate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function reformulate_disjunction(m::Model, disj...; bin_var, reformulation, para
1616
#run reformulation
1717
if reformulation == :hull
1818
if !in(:disaggregated_variables, keys(m.ext))
19-
m.ext[:disaggregated_variables] = [] #record disaggregated variables to avoid duplicating disaggregation (nested disjunctions)
19+
m.ext[:disaggregated_variables] = Set([]) #record disaggregated variables to avoid duplicating disaggregation (nested disjunctions)
2020
end
2121
disaggregate_variables(m, disj, bin_var)
2222
end

0 commit comments

Comments
 (0)