Minority Opinions

Not everyone can be mainstream, after all.

Replacing the solver

leave a comment »

So the problem that broke GLPK has yielded to another solver.  My main delay was that the documentation isn’t exactly clear about what exactly to install, particularly on Linux, for the other available solvers.

The PuLP home page mentioned COIN, which seems to be a closely related project, so I thought I would at least try it.  Of the relevant-looking PyPI entries, the most obvious didn’t install.  Ubuntu had a whole list of coinor packages, so I installed the one that didn’t start with lib or end with -dev, -doc, or -dbg.  It didn’t work.

It did, however, point me to the right place, by complaining about a missing cbc command.  Yet again, I can thank the command-not-found package for letting me know exactly what I needed from that point.  And wonder of wonders, my problem gets solved in less than a second.

So, now I know that AB>CD>BC can be solved for any of the four winners, for either plurality or the Borda count.  Now I just have to remember why I wanted to know that.  Or perhaps it will suffice to run it over all twenty-six thousand permutations, and see what comes up.

And whether anything else breaks.


Written by eswald

16 Aug 2011 at 10:08 pm

Posted in Technology

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s