title: Gurobi, How to change a continuous variable to a binary variable
body: <p>I am using gurobi-python interface. Is there anyway to convert a continuous variable to a binary variable. I just do not want to convert </p>
  
  <pre><code>m.addVar(lb=0, ub=1, vtype=GRB.CONTINUOUS)
  </code></pre>
  
  <p>to</p>
  
  <pre><code>m.addVar(lb=0, ub=1, vtype=GRB.BINARY). 
  </code></pre>
  
  <p>I have to do it in another way, not using </p>
  
  <pre><code>m.addVar() 
  </code></pre>
  
  <p>I appreciate your possible feedback. </p>
  
  <p>Thank you.</p>