Re: GLPK reading <LP-file> problem

Andrew Makhorin <[email protected]>
Newsgroups gmane.comp.gnu.glpk
Message-ID <1497538169.8470.19.camel@corvax>
> well, as far I read the LP-file generated by glpk, it put the name in
> the first line as 
> "
> \* Problem: Level_1 *\
> 
> Minimize
>  obj: - 8 x_1..............................
> "
> 
> although this is just a comment line, but we (you) have put the
> LP_Name here. 
> 
> So, I think this is the way to get a file name there. 

It is not a good idea, because it would be a non-standard feature.

If you need to keep all problem components on reading the instance,
which was previously written to a file with glpk, I'd recommend you
using the glpk lp format.

> 
> 
> So, it looks that <glp_write_lp> and <glp_read_lp> are not
> compatible. 
> 

:)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.