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
#Dispatches over constaint types to reformulate into >= or <= in order to solve the mini-model
160
160
function_maximize_M(
161
161
model::JuMP.AbstractModel,
162
-
objective::VectorConstraint{T, S, R},
162
+
objective::JuMP.VectorConstraint{T, S, R},
163
163
constraints::Vector{DisjunctConstraintRef},
164
164
method::MBM
165
165
) where {T, S <:_MOI.Nonpositives, R}
166
-
returnmaximum(_maximize_M(model, ScalarConstraint(objective.func[i], MOI.LessThan(0.0)), constraints, method) for i in1:objective.set.dimension)
166
+
returnmaximum(_maximize_M(model, JuMP.ScalarConstraint(objective.func[i], MOI.LessThan(0.0)), constraints, method) for i in1:objective.set.dimension)
167
167
end
168
168
169
169
function_maximize_M(
170
170
model::JuMP.AbstractModel,
171
-
objective::VectorConstraint{T, S, R},
171
+
objective::JuMP.VectorConstraint{T, S, R},
172
172
constraints::Vector{DisjunctConstraintRef},
173
173
method::MBM
174
174
) where {T, S <:_MOI.Nonnegatives, R}
175
-
returnmaximum(_maximize_M(model, ScalarConstraint(objective.func[i], MOI.GreaterThan(0.0)), constraints, method) for i in1:objective.set.dimension)
175
+
returnmaximum(_maximize_M(model, JuMP.ScalarConstraint(objective.func[i], MOI.GreaterThan(0.0)), constraints, method) for i in1:objective.set.dimension)
176
176
end
177
177
178
178
function_maximize_M(
179
179
model::JuMP.AbstractModel,
180
-
objective::VectorConstraint{T, S, R},
180
+
objective::JuMP.VectorConstraint{T, S, R},
181
181
constraints::Vector{DisjunctConstraintRef},
182
182
method::MBM
183
183
) where {T, S <:_MOI.Zeros, R}
184
184
returnmax(
185
-
maximum(_maximize_M(model, ScalarConstraint(objective.func[i], MOI.GreaterThan(0.0)), constraints, method) for i in1:objective.set.dimension),
186
-
maximum(_maximize_M(model, ScalarConstraint(objective.func[i], MOI.LessThan(0.0)), constraints, method) for i in1:objective.set.dimension)
185
+
maximum(_maximize_M(model, JuMP.ScalarConstraint(objective.func[i], MOI.GreaterThan(0.0)), constraints, method) for i in1:objective.set.dimension),
186
+
maximum(_maximize_M(model, JuMP.ScalarConstraint(objective.func[i], MOI.LessThan(0.0)), constraints, method) for i in1:objective.set.dimension)
187
187
)
188
188
end
189
189
190
190
function_maximize_M(
191
191
model::JuMP.AbstractModel,
192
-
objective::ScalarConstraint{T, S},
192
+
objective::JuMP.ScalarConstraint{T, S},
193
193
constraints::Vector{DisjunctConstraintRef},
194
194
method::MBM
195
195
) where {T, S <:Union{_MOI.LessThan, _MOI.GreaterThan}}
0 commit comments