[Couenne] Time Limit Reached Error

Jainendra Jain jain_jainendra at iitgn.ac.in
Thu Mar 4 01:53:26 EST 2021


Thanks Pietro and Ted for your responses.
I have also posted on github now.

Here is the full code:
https://colab.research.google.com/drive/12G0M5NGf8BkhxYmK5jdFf5ulBbtnOG28?usp=sharing

Also attaching the images of results.


On Thu, Mar 4, 2021 at 3:12 AM Pietro Belotti <pbelotti at gmx.com> wrote:

> Hi Jainendra,
>
> 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.
>
> Thanks,
> Pietro
>
>
> *Sent:* Wednesday, March 03, 2021 at 4:30 PM
> *From:* "Ted Ralphs" <ted at lehigh.edu>
> *To:* "Jainendra Jain" <jain_jainendra at iitgn.ac.in>
> *Cc:* couenne at list.coin-or.org
> *Subject:* Re: [Couenne] Time Limit Reached Error
> Hi Jainendra,
>
> 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.
>
> 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:
>
>
> https://github.com/coin-or/Couenne/blob/master/src/heuristics/BonNlpHeuristic.cpp#L411
>
> maxTime is hard-coded locally to the function with a value of 2.
>
>
> https://github.com/coin-or/Couenne/blob/master/src/heuristics/BonNlpHeuristic.cpp#L108
>
> 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.
>
> Cheers,
>
> Ted
>
> On Tue, Mar 2, 2021 at 3:32 AM Jainendra Jain <jain_jainendra at iitgn.ac.in>
> wrote:
>
>> Hi Everyone,
>> I am running an optimization program on google colab (Optimizer/Solver is
>> Couenne).
>> 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.
>> Please suggest a solution for this issue.
>> Thank you.
>> I am getting an error as:
>> "NLP Heuristic: time limit reached"
>>
>> I
>>
>> --
>> Regards,
>> Jainendra Jain
>>
>> _______________________________________________
>> Couenne mailing list
>> Couenne at list.coin-or.org
>> https://list.coin-or.org/mailman/listinfo/couenne
>
>
>
> --
> Dr. Ted Ralphs
> Professor, Industrial and Systems Engineering
> Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
> _______________________________________________ Couenne mailing list
> Couenne at list.coin-or.org https://list.coin-or.org/mailman/listinfo/couenne
>


-- 
Regards,
Jainendra Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20210304/93284d97/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image-1.PNG
Type: image/png
Size: 54667 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20210304/93284d97/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image-3.PNG
Type: image/png
Size: 31988 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20210304/93284d97/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image-2.PNG
Type: image/png
Size: 36890 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20210304/93284d97/attachment-0005.png>


More information about the Couenne mailing list