bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] Re: [Help-glpk] Error delete column (patch, 4.17)


From: Lou Hafer
Subject: [Bug-glpk] Re: [Help-glpk] Error delete column (patch, 4.17)
Date: Thu, 5 Jul 2007 10:10:52 -0700 (PDT)

Folks,

        For those of you interested in glpk 4.17, the following patch works for
me:


      /* if the basis header is still valid, adjust it */
      if (lp->valid)
      {  int m = lp->m;
         int *basis = lp->basis;
         for (j = 1; j <= n_new; j++)
         {  k = lp->col[j]->bind;
            if (k != 0)
            {  xassert(1 <= k && k <= m);
               basis[k] = m + j;
            }
         }
      }

This is just the 4.18 patch posted by Andrew, tweaked for 4.17 variable names.
It's of interest to me (and perhaps others) because 4.18 segfaults in Coin for
reasons that still escape me, while 4.17 works just fine.

                                                        Lou





reply via email to

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