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."
91
83
#reformulate variables
92
84
obj_dict =object_dictionary(m)
93
85
bounds_dict =:variable_bounds_dictinkeys(obj_dict) ? obj_dict[:variable_bounds_dict] :Dict() #NOTE: should pass as an keyword argument
94
86
for var in var_refs
95
87
is_binary(var) &&continue#NOTE: don't disaggregate binary variables from nested disjunctions
88
+
var in m.ext[:disaggregated_variables] &&continue#skip already disaggregated variables
96
89
#define UB and LB
97
90
LB, UB =get_bounds(var, bounds_dict)
98
91
#disaggregate variable and add bounding constraints
0 commit comments