bug-glpk
[Top][All Lists]
Advanced

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

Re: [Bug-glpk] index not getting created


From: Andrew Makhorin
Subject: Re: [Bug-glpk] index not getting created
Date: Mon, 02 Feb 2015 14:37:22 +0300

On Mon, 2015-02-02 at 07:41 +0005, Pawan Aurora wrote:
> I am creating a problem object from a model using the appropriate
> apis. However, the index that I create for this object does not seem
> to work. Since when finding a column by its name it returns 0 although
> the variable by that name does exist. 
> When using the same model and data files I use glpsol to write the
> problem in cplex lp format to a file. Now when in my program I get the
> problem object from this file, the index seems to work since the
> search now returns the correct number of the variable.
> Is there any reason why this happens or is this a bug in glpk? Thanks
> in advance.

Most likely the string you passed to glp_find_col differs from the
column name you assigned. Please check this more carefully. Note that to
compare strings glpk uses strcmp, so non-standard (non-C-locale) coding
may affect the comparison result.

If you still think this is a bug, please provide an example. Thanks.





reply via email to

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