<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Jainendra,</div>

<div> </div>

<div>I'll join Ted in recommending moving this dicsussion to Github. There's something I don't understand in your email: you set time_limit to 100 but somewhat the optimization finishes after 2 seconds. Apart from that "time limit reached" what is printed? I would assume that is not an actual error but an info message from the heuristic. Can you show the whole output log, or what type of problem it is? Just to clarify: time_limit is an *upper* bound on the amount of time spent by Couenne.</div>

<div> </div>

<div>Thanks,</div>

<div>Pietro</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Wednesday, March 03, 2021 at 4:30 PM<br/>
<b>From:</b> "Ted Ralphs" <ted@lehigh.edu><br/>
<b>To:</b> "Jainendra Jain" <jain_jainendra@iitgn.ac.in><br/>
<b>Cc:</b> couenne@list.coin-or.org<br/>
<b>Subject:</b> Re: [Couenne] Time Limit Reached Error</div>

<div name="quoted-content">
<div>Hi Jainendra,
<div> </div>

<div>FYI, We are trying to move away from the use of mailing lists in favor of the Discussions feature on Github, so it would be great if you could move this post there and I will also move my response. </div>

<div> </div>

<div>I don't know the details of the implementation of Couenne that well, but just grepping around, there is only one place where the string "time limit reached" appears and that is in heuristics/BonNlpHeuristic.cpp:</div>

<div> </div>

<div><a href="https://github.com/coin-or/Couenne/blob/master/src/heuristics/BonNlpHeuristic.cpp#L411" target="_blank">https://github.com/coin-or/Couenne/blob/master/src/heuristics/BonNlpHeuristic.cpp#L411</a></div>

<div> </div>

<div>maxTime is hard-coded locally to the function with a value of 2. </div>

<div> </div>

<div><a href="https://github.com/coin-or/Couenne/blob/master/src/heuristics/BonNlpHeuristic.cpp#L108" target="_blank">https://github.com/coin-or/Couenne/blob/master/src/heuristics/BonNlpHeuristic.cpp#L108</a></div>

<div> </div>

<div>From the comments in the code, it doesn't appear as though reaching this time limit is not actually what causes the code to terminate (in this function, it only causes the function to return 0, indicating no solution was found), but I guess with such a short-running code, you can easily debug it and see what's really going on. </div>

<div> </div>

<div>Cheers,</div>

<div> </div>

<div>Ted</div>
</div>
 

<div class="gmail_quote">
<div class="gmail_attr">On Tue, Mar 2, 2021 at 3:32 AM Jainendra Jain <<a href="mailto:jain_jainendra@iitgn.ac.in" onclick="parent.window.location.href='mailto:jain_jainendra@iitgn.ac.in'; return false;" target="_blank">jain_jainendra@iitgn.ac.in</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>Hi Everyone,
<div>I am running an optimization program on google colab (Optimizer/Solver is Couenne).</div>

<div>I already tried the option of writing "time_limit 100" in couenne.opt file. But still my code is running for less than 2 seconds.</div>

<div>Please suggest a solution for this issue.</div>

<div>Thank you.</div>

<div>I am getting an error as:</div>

<div>"<span style="color: rgb(213,213,213);font-family: monospace;font-size: 14.0px;background-color: rgb(56,56,56);">NLP Heuristic: time limit reached"</span></div>

<div> </div>

<div><font color="#d5d5d5" face="monospace"><span style="font-size: 14.0px;">I</span></font>

<div> </div>
--

<div>
<div><font face="georgia, serif">Regards,</font>

<div><font face="georgia, serif">Jainendra Jain</font></div>

<div> </div>
</div>
</div>
</div>
</div>
_______________________________________________<br/>
Couenne mailing list<br/>
<a href="mailto:Couenne@list.coin-or.org" onclick="parent.window.location.href='mailto:Couenne@list.coin-or.org'; return false;" target="_blank">Couenne@list.coin-or.org</a><br/>
<a href="https://list.coin-or.org/mailman/listinfo/couenne" target="_blank">https://list.coin-or.org/mailman/listinfo/couenne</a></blockquote>
</div>
 

<div> </div>
--

<div class="gmail_signature">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Dr. Ted Ralphs<br/>
Professor, Industrial and Systems Engineering<br/>
Lehigh University<br/>
(610) 628-1280<br/>
ted 'at' lehigh 'dot' edu<br/>
<a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ Couenne mailing list Couenne@list.coin-or.org <a href="https://list.coin-or.org/mailman/listinfo/couenne" target="_blank">https://list.coin-or.org/mailman/listinfo/couenne</a></div>
</div>
</div>
</div></div></body></html>