-------- Forwarded Message -------- From: Pawan Aurora <paur...@iitk.ac.in> To: Andrew Makhorin <m...@gnu.org> Subject: Re: [Bug-glpk] index not getting created Date: Mon, 02 Feb 2015 14:53:10 +0005
Hi, Thanks for the prompt reply. While constructing an example I realized that the mistake that I was making was in the format of the variable name. I was using parenthesis instead of square brackets. Parenthesis are used in the cplex lp format but not by default. Regards, Pawan On Mon, Feb 2, 2015 at 5:07 PM, Andrew Makhorin <m...@gnu.org> wrote: > 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. _______________________________________________ Bug-glpk mailing list Bug-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/bug-glpk