help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] API problem


From: Dušan Plavák
Subject: [Help-glpk] API problem
Date: Fri, 23 Jan 2015 07:41:46 +0100

Hi guys,

I`m trying to learn how to use glpk api.

I`m sitting couple hours on it and can not figure our where is a problem.

I attached 2 files. One is .lp file and second sample.c

Both are trying to solve same problem. With glpsol i have no problem to solve it, but when I try to modify sample.c so it solve the same problem it just write back:
GLPK Simplex Optimizer, v4.55
26 rows, 9 columns, 90 non-zeros
      0: obj =   0.000000000e+00  infeas =  7.963e+02 (0)
LP HAS NO PRIMAL FEASIBLE SOLUTION

z = 0; x1 = 0; x2 = 0; x3 = 0; x4 = 0


Any ideas? 
Thanks

--
S pozdravom Dušan Plavák

Attachment: plan.lp
Description: Binary data

Attachment: sample.c
Description: Text Data


reply via email to

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