Skip to content

Add VariableBasisStatus #1297

@odow

Description

@odow

VariableBasisStatus was removed here: #679

However, we over-looked an edge case: without it, we can't tell if variables with free bounds with a VariablePrimal of 0.0 are in the (degenerate) basis or not.

This became a problem here: jump-dev/JuMP.jl#2560, jump-dev/JuMP.jl#2562

Given the redundancy with ConstraintBasisStatus on variable bounds, perhaps we just need

"""
    MOI.VariableInBasis

A variable attribute which indicates `true` or `false` if some variable is in 
the current optimal solution basis.
"""
struct MOI.VariableInBasis <: MOI.AbstractVariableAttribute end

cc @geoffleyland

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions