RE: [AMPL 6336] Set time limit on AMPL for calling solver couenne(Urgent!!!)

761 views
Skip to first unread message

Robert Fourer

unread,
Nov 24, 2012, 4:38:37 PM11/24/12
to am...@googlegroups.com

Every solver has its own conventions for setting its time limits and communicating additional solver information such as the gap.  In the case of Couenne, you can consult

 

   https://projects.coin-or.org/svn/Couenne/trunk/Couenne/doc/couenne-user-manual.pdf

 

and in particular Section 6 on options.  (There is a time_limit option defined at the end of the section.)  If you do not see all the information you need, you may want to contact the Couenne project as described at https://projects.coin-or.org/Couenne.

 

Bob Fourer

4...@ampl.com

 

From: am...@googlegroups.com [mailto:am...@googlegroups.com]

On Behalf Of Orkun S.
Sent: Thursday, November 22, 2012 1:17 PM
To: am...@googlegroups.com
Subject: [AMPL 6336] Set time limit on AMPL for calling solver couenne(Urgent!!!)

 

Hi All,

 

   I am studying with AMPL and I have my code on a .txt file. I downloaded couenne at http://www.coin-or.org/Binaries/Couenne/. In order to call solver couenne, I wrote "option solver couenne;" before "solve;" command. By using AMPL command window, I solve my problem. My question is that how can I set a time limit to solve my problem. The following is my commands to solve on my .txt file:

 

option solver couenne;

solve;

display x,y;

Where should I write my time limit commands? Also, is it possible to see the gap after solving?

 

Many thanks..

 

Hernan

unread,
Sep 9, 2013, 11:50:04 PM9/9/13
to am...@googlegroups.com
well I used:

option couenne_options "time_limit =20";

However, this manner don´t work.

Regards.

Pietro Belotti

unread,
Sep 10, 2013, 4:42:10 AM9/10/13
to am...@googlegroups.com
Couenne does not (yet) read options from AMPL, therefore its options must be read from a file called couenne.opt, which has to reside in the directory AMPL is launched from. Simply create a file couenne.opt and add the line

time_limit 20

Regards,
Pietro


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages