- Having a look at the test suite, I can tell you that only CPLEX_DLL,
CPLEX_CMD and COINMP_DLL are actually tested for support for setting
duals/slacks.
- However, I know for sure that GUROBI sets them too and I am pretty
sure that it does the thing right.
- YAPOSIB and PYGLPK do this as well, but I just discovered bugs in
the way they are setting the slacks. This is corrected in my branch.
In your code, you are probably using the solver GLPK, which is
actually GLPK_CMD. It internally invokes glpk via the command line
tool glpsol, and parses the output. AFAIK, GLPK_CMD does not support
setting the duals. You might want to switch to PYGLPK, which
internally invokes glpk via a python binding _and_ set the duals. For
this, you have to install the following binding:
http://tfinley.net/software/pyglpk/. However this binding is not well
maintained, and last time I tried, I could not get it to compile.
In my branch, I have swithed to this binding:
http://www.dcc.fc.up.pt/~jpp/code/python-glpk/. It is better
maintained and packaged in ubuntu as python-glpk.
Stuart, could you have a look at my branch? I told you about the
pyglpk issue a while ago and I pointed you to my patch, but then it
seems that both of us forgot about it. I just pushed an updated
version including the binding, the inclusion in the test suite, the
bugfixes regarding the slacks and a few comment/docstrings corrections
regarding other classes.
https://chmduquesne-pulp-or.googlecode.com/hg/
Cheers,
Tof
> Cheers,
> Tof
--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
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.