[ANN] rglpk 0.1 Released

A

Alex Gutteridge

rglpk version 0.1 has been released!

* <http://rglpk.rubyforge.org/>

Rglpk is a package providing a Ruby wrapper to the GLPK library
(http://www.gnu.org/software/glpk/). The GLPK (GNU Linear Programming
Kit) package is intended for solving large-scale linear programming
(LP), mixed integer programming (MIP), and other related problems.

This 0.1 release is really just to get some code out there, it's very
rough and there's no documentation to speak of yet. The basic
wrapping is done with Swig so all the GLPK functions should be
available in this release but with a fairly horrible API. My main
goal over the next couple of weeks is to add to the second layer of
wrapping which provides a nicer OO-style interface to the Swig
methods. And do proper documentation.

It's available as a gem, so to install:

gem install rglpk

I haven't got a proper example ready, but the following code gives
you some idea. Note require 'glpk' for the nicer Ruby-ish interface
(not 'rglpk'):

require 'glpk'

p = GLPK::problem.new
p.add_cols(2)
p.add_rows(2)
p.set_matrix([1,2,3,4])
p.simplex({:msg_lev => 1})

Alex Gutteridge

Bioinformatics Center
Kyoto University
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top