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
{{ message }}
This repository was archived by the owner on Jun 14, 2020. It is now read-only.
SVCI(v::SinVar, ::S) where S =SVCI{S}(v.variable.value)
44
+
45
+
functioncheckexisting(m::LinQuadOptimizer, v::SinVar, set::S) where S
46
+
ref =SVCI(v, set)
47
+
ifhaskey(constrdict(m, ref), ref)
48
+
error("Adding the same constraint type: $(S) is not allowed for SingleVariable function")
49
+
end
50
+
end
51
+
52
+
functioncheckconflicting(m::LinQuadOptimizer, v::SinVar, set_to_add::S0, set_to_test::S) where S where S0
53
+
ref =SVCI(v, set_to_test)
54
+
ifhaskey(constrdict(m, ref), ref)
55
+
error("Adding the same constraint type: $(S0) is not allowed for SingleVariable function because there is constraint of type $(S) tied to the respective variable")
56
+
end
57
+
end
58
+
43
59
# add constraint
44
60
function MOI.addconstraint!(m::LinQuadOptimizer, v::SinVar, set::S) where S <:LinSets
0 commit comments