Skip to content

Inconcistent variable count In lazy bridge optimizer #2714

Closed
@matbesancon

Description

@matbesancon

This PR: #2695 broke FrankWolfe.jl's tests by making NumberOfVariables and ListOfVariableIndices inconsistent.

julia> length(MOI.get(lmo_moi.o, MOI.ListOfVariableIndices())), MOI.get(lmo_moi.o, MOI.NumberOfVariables())
(300, 301)

# underlying model is okay
julia> length(MOI.get(lmo_moi.o.model, MOI.ListOfVariableIndices())), MOI.get(lmo_moi.o.model, MOI.NumberOfVariables())
(301, 301)

I don't have a minimum reproducible example yet, but it seems to happen with a first group of variables created, and then one last add_constrained_variable

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