Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
rglpk 0.1 Released
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Gutteridge  
View profile  
 More options Oct 24 2007, 10:13 pm
Newsgroups: comp.lang.ruby
From: Alex Gutteridge <al...@kuicr.kyoto-u.ac.jp>
Date: Thu, 25 Oct 2007 11:13:48 +0900
Local: Wed, Oct 24 2007 10:13 pm
Subject: [ANN] rglpk 0.1 Released
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »