Re: GLPK reading <LP-file> problem

Andrew Makhorin <[email protected]>
Newsgroups gmane.comp.gnu.glpk
Message-ID <1497536591.8188.2.camel@corvax>
On Thu, 2017-06-15 at 08:29 -0500, Shuo Xu wrote:
> Dear GLPK makers:
> 

> Currently, I am using GLPK to read a cplex-LP file. 
> 
> But ,the lp name is not available while using:
> glp_read_lp(lp, NULL, "Level_1.lp");
>     // get the name 
>     char Prob_Name[100];
>     strcpy(Prob_Name, glp_get_prob_name(lp));
> 
> 
> while checking the source code of glp_read_lp function, there is no
> code to read the LP problem name in the source code.

Yes, because cplex lp format has no feature to specify the problem name
(unlike mps format, for example).

> 
> 
> So, I would like to know if there is any possible to make an update to
> it ? 

You may call glp_set_prob_name to assign any name you want to the
problem object.

> 
> 
> Shuo  XU, PhD.
> 
> Iowa State University, Industrial Engineering. 
> 
> 
> 
>
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.