Skip to main content

Error at GRBVar.get

Answered

Comments

2 comments

  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    Hi Samuele,

    The error you're encountering, com.gurobi.gurobi.GRBException: Error at GRBVar.get  is usually triggered due to accessing an attribute that is not available.

    The VBasis and CBasis attributes can only be queried when a simplex basis is available (a basis is available when a continuous model has been solved using primal simplex, dual simplex, or barrier with crossover). For example, these attributes are not available if you're solving via the barrier method without crossover. Please check if this is the case for your model.

    Best regards,
    Simran

    0
  • Samuele Valperta
    First Question
    First Comment

    Thank you very much! I was solving an integer problem

    Variable types: 0 continuous, 308 integer (154 binary)

    but I've just realised I was doing wrong and I need to switch to a continuous problem.

    0

Please sign in to leave a comment.