bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] minor bug detected in the mathprog translator


From: Andrew Makhorin
Subject: [Bug-glpk] minor bug detected in the mathprog translator
Date: Sun, 17 Feb 2008 15:27:59 +0300

A minor bug has been detected in the MathProg translator: if some
field specified in the table statement is missing in corresponding
input table, the bug causes abnormal termination.

To fix the bug right now please replace the fragment (lines 4844-4846,
file glpmpl03.c):

         /* all fields must be set by the driver */
         for (k = 1; k <= dca->nf; k++)
            xassert(dca->type[k] != '?');

by the following fragment:

         /* all fields must be set by the driver */
         for (k = 1; k <= dca->nf; k++)
         {  if (dca->type[k] == '?')
               error(mpl, "field %s missing in input table",
                  dca->name[k]);
         }






reply via email to

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