Skip to content

Commit

Permalink
fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsipher committed Nov 4, 2023
1 parent f77fff4 commit 53e4e41
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@ function _check_disjunction(_error, lvrefs::AbstractVector{<:LogicalVariableRef}
return lvrefs
end

# fallback
function _check_disjunction(_error, _, ::JuMP.AbstractModel)
_error("Unrecognized disjunction input structure, see documentation for details.")
end

# Write the main function for creating disjunctions that is macro friendly
function _create_disjunction(
_error::Function,
Expand Down Expand Up @@ -503,7 +498,7 @@ end
# Fallback for Affine/Quad expressions
function JuMP.build_constraint(
_error::Function,
expr::Union{GenericAffExpr{C, LogicalVariableRef}, GenericQuadExpr{C, LogicalVariableRef}},
expr::Union{GenericAffExpr{C, <:LogicalVariableRef}, GenericQuadExpr{C, <:LogicalVariableRef}},
set::_MOI.AbstractScalarSet
) where {C}
_error("Cannot add, subtract, or multiply with logical variables.")
Expand Down

0 comments on commit 53e4e41

Please sign in to comment.