title: How to get the optimal optimization variables in Pulp with Python?
body: <p>I am using Pulp with Python to solve an optimization problem. </p>
  
  <p>I am using </p>
  
  <pre><code>import pulp
  # code
  pulp.prob.objective.value()
  </code></pre>
  
  <p>Now, I would like to access the optimization variables. How to do this?</p>
  
  <p>In the <a href="http://www.optimization-online.org/DB_FILE/2011/09/3178.pdf" rel="noreferrer">documentation of Pulp</a>, I found something like <code>use_vars[i].varValue</code> but I should loop to get the whole vector. Can I get it directly like in the objective value? Anyone familiar with Pulp? </p>