File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ constraint_variables(constr::AbstractDict) = Iterators.flatten(
202
202
is_constraint(constr)
203
203
204
204
Check if a constraint or tuple of constraints is valid.
205
+
206
+ NOTE: NOT USED CURRENTLY
205
207
"""
206
208
is_constraint (constr:: ConstraintRef ) = is_valid (constr. model,constr)
207
209
is_constraint (constr:: AbstractArray ) = all (is_constraint .(constr))
@@ -214,7 +216,7 @@ is_constraint(constr::Nothing) = false
214
216
Update constraint list (for disjunction constraints stored in .ext Dict)
215
217
"""
216
218
function update_constraint_list! (disj, list:: Vector )
217
- disj_constraints = filter (is_constraint , disj)
219
+ disj_constraints = filter (! isnothing , disj) # remove any empty disjuncts
218
220
for item in disj_constraints
219
221
update_constraint_list! (item, list)
220
222
end
You can’t perform that action at this time.
0 commit comments