Skip to main content

How to get the base matrix of m * m in c++

Awaiting user input

Comments

2 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.
  • Jaromił Najman
    • Gurobi Staff

    Your validVar represent the basic variables, i.e., variables with VBasis=0 at the solution point, and validCol represent basic constraints, i.e., constraints with CBasis=0 at the solution point.

    Usually the size of validVar and validCol should add up to the number of rows in your case. What kind of model are you solving? Are you possibly solving a QP? Could you share the model you are solving? You can generate a model file by using the write method. Note that uploading files in the Community Forum is not possible but we discuss an alternative in Posting to the Community Forum.

    Please note that using cl or Col as name for the basic status of constraint might be confusing because columns usually refer to variables and not constraints.

    Best regards, 
    Jaromił

    0

Post is closed for comments.