title: How can I print base variables in Gurobi using java?
body: <p>I have to print 1 if the variable is a based variable, otherwise 0. I try this but it doesn't work:</p>
  <pre><code>for(GRBVar var : model.getVars()){      
          double v = var.get(DoubleAttr.RC);
              if(v == 0) System.out.println(var.get(StringAttr.VarName) + &quot; : 1&quot;);
              else System.out.println(var.get(StringAttr.VarName) + &quot; : 0&quot;);
      }
  </code></pre>