Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 18, 2023
1 parent ca75339 commit 30d0a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utilities/objective_container.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function MOI.delete(o::ObjectiveContainer, x::MOI.VariableIndex)
elseif o.vector_variables !== nothing
o.vector_variables =
remove_variable(_not_nothing(o.vector_variables), x)
if isempty(o.vector_variables.variables)
if isempty(_not_nothing(o.vector_variables).variables)
_empty_keeping_sense(o)
end
elseif o.vector_affine !== nothing
Expand Down Expand Up @@ -374,7 +374,7 @@ function MOI.delete(o::ObjectiveContainer, x::Vector{MOI.VariableIndex})
elseif o.vector_variables !== nothing
o.vector_variables =
filter_variables(keep, _not_nothing(o.vector_variables))
if isempty(o.vector_variables.variables)
if isempty(_not_nothing(o.vector_variables).variables)
_empty_keeping_sense(o)
end
elseif o.vector_affine !== nothing
Expand Down

0 comments on commit 30d0a31

Please sign in to comment.