help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Modelling Advice Request - Project Tasks


From: Yingjie Lan
Subject: Re: [Help-glpk] Modelling Advice Request - Project Tasks
Date: Fri, 22 Jan 2010 19:05:45 -0800 (PST)

> Here is my version of the LOP solver
> based on "lazy" constraint
> generation; please see the attachment. It is able to solve
> instances
> having up to 100 nodes. The code requires glpk v4.42.

I am really excited about it, now here is a row generation
code example! I looked into the code, and there is a question
concerning this block of code:

void callback(glp_tree *T, void *info)
{     xassert(info == info);
      if (glp_ios_reason(T) == GLP_IROWGEN)
      {  remove_inactive(T);
         if (generate_rows() == 0)
            remove_inactive(T);
      }
      return;
}

I don't quite understand the second remove_inactive(T) call:
it seems to me the second remove_inactive(T) won't do anything, 
or am I missing something? Could you explain it a little bit?

Thanks!

Yingjie


      




reply via email to

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