I'm currently trying to set up a fairly rudimentary generation dispatch problem using pulp.I am currently able to solve the solution optimally using both the GLPK and CBC solvers.I would however like to display the shadow prices/dual values so I can determine nodal pricing.
Any assistance would be highly appreciatedSystem Particulars:Ubuntu 12.04Python 2.7Pulp 1.5.3Solvers: GLPK/CBC
Thank you in advance,Nigel--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pulp-or-discuss/-/ivjcz8n2FEYJ.
To post to this group, send email to pulp-or...@googlegroups.com.
To unsubscribe from this group, send email to pulp-or-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
To post to this group, send email to pulp-or-discuss@googlegroups.com.
To unsubscribe from this group, send email to pulp-or-discuss+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
Is your problem contain integer variables? If so dual values are not produced as they do not make sense after branch and bound.
I am having the same issue and found this post and found it quite useful (one difference is I'm using CPLEX to solve). I tested this solution and it works great. But when I run on the problem I'm having the constraints don't have a .pi attribute after the solve (unlike these). The problem has an optimal solution but my constraints don't have duals at the end. Is there a flag that I need to set?
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Could you please run the test on the computer with CPLEX 12.5.
Also can you post the results of
>>> import pulp
>>> pulp.pulpTestAll()
--
--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.
Are you using the cplex command line or cplex through the python interface?Stu
On Wed, Jan 14, 2015 at 6:11 AM, <fatzm...@gmail.com> wrote:
Hello,I am using pulp with cplex to solve a column generation problem and I need to use the dual variables. I try the constraint.pi but it always returns None even with the small example that has been posted on this discussion. Any idea why?Thanks in advance
--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.