Skip to main content

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

Awaiting user input


1 comment

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


Please sign in to leave a comment.