Skip to main content

Error at GRBVar.get

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Simranjit Kaur
    • 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
    • Gurobi-versary
    • 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

Post is closed for comments.