help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] GLPK 4_23 internal error in call back


From: ms
Subject: Re: [Help-glpk] GLPK 4_23 internal error in call back
Date: Sun, 11 Nov 2007 23:10:16 +0300

Thanks for the quick response. My callBack is shown below. I am calling
glp_delete_prob(lp) only in main and not in the call back

 --------------------main program-----------------------------
                 ....
                ret = glpk423._glp_lpx_simplex(lp);
                ret = glpk423.glp_intopt(lp, piocp);//--piocp pointer to
param
                 ...
                glpk423.glp_delete_prob(lp);
                ....
--------------------------Call Back ----------------------------
        public void callBack(IntPtr tree, IntPtr info)
        {
            this.StatusText = "Gap = " + glpk423.glp_ios_mip_gap(tree) +
                " Reason = " + glpk423.glp_ios_reason(tree);
          if (glpk423.glp_ios_reason(tree) ==
(int)glpk423.glpk_reasonCode.GLP_IBINGO) 
          {  if (glpk423.glp_ios_mip_gap(tree) <= 0.05) 
                glpk423.glp_ios_terminate(tree); 
          } 
        }

---------------------------------------------------------------------------------
>Looks like you call glp_delete_prob (directly or indirectly) in the
>callback routine that is not allowed (there must be an error message
>which is not implemented yet). The callback routine should only call
>glp_ios_terminate and return, in which case glp_intopt will return
>immediately with the code GLP_ESTOP.


-- 
View this message in context: 
http://www.nabble.com/GLPK-4_23-internal-error-in-call-back-tf4786718.html#a13694466
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.








reply via email to

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