<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello Charles,<br><br>I do use: <br><br>" -sec"<br><br>it works perfectly.<br><br>Example:<br><br>/home/cbc/Cbc-2.8.8/build/bin/cbc problem.mps -sec 300 solve -solution solution_file.txt > stdout_file.txt<br><br>Kind regards<br><br><div>> Date: Wed, 24 Feb 2016 10:26:17 +0530<br>> From: amahajan@iitb.ac.in<br>> To: Cbc@list.coin-or.org<br>> Subject: Re: [Cbc] Is there a "command-line" timelimit option?<br>> <br>> Hi Charles<br>> <br>> The command line option for setting a time limit is -seconds. <br>> <br>> You may see options of cbc by doing "cbc -?" in a terminal. Get help about<br>> specific options by typing.<br>> <br>> cbc -seconds??? -quit<br>> <br>> Hope it helps.<br>> <br>> --<br>> Regards<br>> Ashutosh Mahajan<br>> http://www.ieor.iitb.ac.in/amahajan<br>> <br>> On Tue, Feb 23, 2016 at 02:59:31PM -0500, Charles Lindsay wrote:<br>> >    I use Pyomo to interface to Cbc, and I believe it uses a command-line<br>> >    invocation of Cbc.<br>> >    For some LP solvers you can pass a "--solver-options <option-name>=<option<br>> >    value>"<br>> >    Is there such an option for Cbc?  I believe there is an API option<br>> >    (CbcModel::setMaximumSeconds).<br>> > <br>> >    I am interested in getting the "best solution up to that point in time".<br>> > <br>> >    I believe the equivalent for GLPK is "--solver-options  tmlim=300"<br>> > <br>> >    Thanks.<br>> > <br>> >    C.<br>> <br>> > _______________________________________________<br>> > Cbc mailing list<br>> > Cbc@list.coin-or.org<br>> > http://list.coin-or.org/mailman/listinfo/cbc<br>> <br>> _______________________________________________<br>> Cbc mailing list<br>> Cbc@list.coin-or.org<br>> http://list.coin-or.org/mailman/listinfo/cbc<br></div>                                    </div></body>
</html>