title: Shadow price of constraints in JuMP (Julia)
body: <p>I have the following LOP. </p>
  
  <pre><code>using JuMP, Cbc
  productionProb = Model(solver = CbcSolver())
  
  @variable(productionProb, x &gt;= 0)
  @variable(productionProb, y &gt;= 0)
  
  @objective(productionProb, Max, 7.8x + 7.1y)
  
  @constraint(productionProb, assemblyCondition, (1/4)x + (1/3)y &lt;= 90)
  @constraint(productionProb, testingCondition, (1/8)x + (1/3)y &lt;= 80)
  
  solve(productionProb)
  </code></pre>
  
  <p>I am using the cbc solver and using julia to solve this problem. However, I would want to get the shadow price for the constraints. In particular, I would want to get the shadow prices for the constraints, assemblyCondition and testingCondition. </p>
  
  <p>Anybody knows the code / function to do this? I have tried getdual() but it didnt work.</p>