You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@assertall((has_upper_bound.(var_refs) .&&has_lower_bound.(var_refs)) .||is_binary.(var_refs)) "All variables must be bounded to perform the Hull reformulation."
81
91
#reformulate variables
82
92
obj_dict =object_dictionary(m)
@@ -91,17 +101,21 @@ function disaggregate_variables(m::Model, disj, bin_var)
#placeholder to store new constraints (reformulated)
12
12
@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."
13
-
m.ext[bin_var] = []
13
+
m.ext[bin_var] = []#store constraints associated with indicator variable
14
14
#check disj
15
15
disj = [check_constraint!(m, constr) for constr in disj]#check_disjunction!(m, disj)
0 commit comments