help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] MySQL use problems


From: Andrew Makhorin
Subject: Re: [Help-glpk] MySQL use problems
Date: Wed, 16 Jan 2008 01:29:40 +0300

> Apologies for bothering everyone with this
> issue, but I have the following problem:

> I am trying to read data from a mysql database. Installed glpk-4.23 and
> mysqlclient (and mysqlserver) under Ubuntu, created a simple database to test
> (called test). I am now trying to run glpk with: glpsol --model mysql.mod and
> get the following error:

> Syntax error in data section

> Context:  #8230;et : x ; s.t. constr : x>=
> y ;  data ; param y := 4 ; dbopen

> Model processing error

> The db command in mysql.mod:

> dbopen(  #8216;MySQL #8217;,  #8216;localhost #8217;,
>  #8216;test #8217;,  #8216;root #8217;,  #8216;roottest #8217;);

> dbclose;

> Does anyone have any idea of what I am
> doing wrong?

Glpk does not support the interface to databases.

I guess you mean a feature developed by Xypron:
http://lists.gnu.org/archive/html/help-glpk/2007-11/msg00001.html

If so, please contact him directly.






reply via email to

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