Skip to content

Deletion of ACC not working #112

@blegat

Description

@blegat

I have commented it out since it does not work, it gives a MethodError

# Deleting a constraint block means clearing non-zeros from the its
# AFE rows and resetting the underlying ACC to an empty domain. We do
# not reclaim the AFEs.
# function MOI.delete(m::Optimizer,
# cref::MOI.ConstraintIndex{F,D}) where {F <: MOI.VectorAffineFunction{Float64},
# D <: VectorConeDomain}
# MOI.throw_if_not_valid(m, cref)
# putaccname(m.task,cref.value,"")
# afeidxs = getaccafeidxlist(m.task,cref.value)
# # clear afe non-zeros, but don't delete or reuse afe idx
# # FIXME gives a MethodError
# putafefrowlist(afeidxs,zeros(Int32,length(afeidxs)),zeros(Int64,length(afeidxs)),Int32[],Float64[])
# putaccdom(m.task,
# cref.value,
# 1, # the empty zero domain,
# Int64[],
# Float64[])
# end

# TODO remove `MOI.delete` once it is implemented for ACC
exclude=Any[MOI.ConstraintName, MOI.VariableBasisStatus, MOI.ConstraintBasisStatus, MOI.delete], # result in errors for now

cc @ulfworsoe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions