help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Constraint Matrix in a Database


From: Nigel Galloway
Subject: [Help-glpk] Constraint Matrix in a Database
Date: Mon, 4 Jun 2007 11:50:01 +0100

I present a schema that can be used to build, manipulate, and 
inspect a constraint matrix.
A possible class which can be used, as an instance of a GLPK 
contraint matrix, to solve the represented problem is presented.

Details including the SQL needed to create the database, and a 
simpler example are available at:

http://www.geocities.com/nigel_galloway/Sqlite3_GLPK.pdf

Attached is KuKu.Sqlite3.rb which is the class; solve.rb which is a 
possible use of the class; and miniSudoku.test1.sqlite3 which is 
the database.

ruby solve.rb miniSudoku.test1.sqlite3 should generate the solution.

It requires NigelzGLPK details of which can be found at

http://www.geocities.com/nigel_galloway/SWIG_GLPK.pdf


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

Attachment: miniSudoku.test1.sqlite3
Description: Binary data

Attachment: Kuku.Sqlite3.rb
Description: Binary data

Attachment: solve.rb
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]