Skip to content

Commit

Permalink
removed extra typing on complement
Browse files Browse the repository at this point in the history
  • Loading branch information
castrong committed Jun 8, 2021
1 parent dfc3550 commit b7734bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/optimization/utils/constraints.jl
Expand Up @@ -208,7 +208,7 @@ function add_complementary_set_constraint!(m::Model, H::HalfSpace, z::Vector{Var
@constraint(m, a * z .>= b)
return nothing
end
function add_complementary_set_constraint!(m::Model, PC::Complement{<:Real, <:AbstractPolytope}, z::Vector{VariableRef})
function add_complementary_set_constraint!(m::Model, PC::Complement, z::Vector{VariableRef})
add_set_constraint!(m, PC.X, z)
return nothing
end
Expand All @@ -225,7 +225,7 @@ function add_set_constraint!(m::Model, set::Hyperrectangle, z::Vector{VariableRe
return nothing
end

function add_set_constraint!(m::Model, PC::Complement{<:Real, <:AbstractPolytope}, z::Vector{VariableRef})
function add_set_constraint!(m::Model, PC::Complement, z::Vector{VariableRef})
add_complementary_set_constraint!(m, PC.X, z)
return nothing
end

0 comments on commit b7734bd

Please sign in to comment.