help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] API problem


From: Andrew Makhorin
Subject: Re: [Help-glpk] API problem
Date: Fri, 23 Jan 2015 10:16:50 +0300

> 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

You may call glp_write_lp to write your lp to a text file and then
inspect it. For details please see the glpk manual (glpk.pdf).





reply via email to

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