<html><body>
<p>Kish,<br>
<br>
I am unable to reproduce problem.  Using the driver below on Netlib pilot87 I get exactly what I expect.<br>
<br>
#include &lt;cassert&gt;<br>
<br>
#include &quot;OsiClpSolverInterface.hpp&quot;<br>
#include  &quot;CoinTime.hpp&quot;<br>
<br>
int main (int argc, const char *argv[])<br>
{<br>
<br>
  OsiClpSolverInterface solver1;<br>
  // Read in model using argv[1]<br>
  // and assert that it is a clean model<br>
  std::string mpsFileName = &quot;../../Data/Sample/p0033.mps&quot;;<br>
  if (argc&gt;=2) mpsFileName = argv[1];<br>
  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),&quot;&quot;);<br>
  assert(numMpsReadErrors==0);<br>
  // Do complete search<br>
  solver1.setHintParam(OsiDoDualInInitial,false,OsiHintDo);<br>
  solver1.getModelPtr()-&gt;setMaximumSeconds(5);<br>
  double time1 = CoinCpuTime();<br>
  solver1.initialSolve();<br>
  std::cout&lt;&lt;mpsFileName&lt;&lt;&quot; took &quot;&lt;&lt;CoinCpuTime()-time1&lt;&lt;&quot; seconds&quot;&lt;&lt;std::endl;<br>
  solver1.getModelPtr()-&gt;setMaximumSeconds(100);<br>
  time1 = CoinCpuTime();<br>
  solver1.initialSolve();<br>
  std::cout&lt;&lt;mpsFileName&lt;&lt;&quot; took &quot;&lt;&lt;CoinCpuTime()-time1&lt;&lt;&quot; seconds&quot;&lt;&lt;std::endl;<br>
  return 0;<br>
}    <br>
<br>
log file<br>
<br>
Coin0001I At line 1 NAME          PILOT87<br>
Coin0001I At line 2 ROWS<br>
Coin0001I At line 2034 COLUMNS<br>
Coin0001I At line 39720 RHS<br>
Coin0001I At line 39858 BOUNDS<br>
Coin0001I At line 41990 ENDATA<br>
Coin0002I Problem PILOT87 has 2030 rows, 4883 columns and 73152 elements<br>
Coin0008I PILOT87 read with 0 errors<br>
Clp0006I 0  Obj -0.242105 Primal inf 579488 (601) Dual inf 1.42278e+15 (1280)<br>
Clp0006I 295  Obj 1078.33 Primal inf 453763 (724) Dual inf 8.02334e+14 (1062)<br>
Clp0006I 505  Obj 1078.64 Primal inf 191880 (681) Dual inf 7.49466e+12 (1250)<br>
Clp0006I 714  Obj 978.662 Primal inf 136945 (602) Dual inf 4.79848e+12 (1184)<br>
Clp0006I 928  Obj 979.112 Primal inf 84707.9 (549) Dual inf 9.27645e+12 (1409)<br>
Clp0006I 1139  Obj 623.694 Primal inf 30729.5 (487) Dual inf 1.58756e+13 (1494)<br>
Clp0006I 1342  Obj 624.053 Primal inf 12599 (455) Dual inf 1.73809e+13 (1638)<br>
Clp0006I 1565  Obj 624.181 Primal inf 10141.9 (454) Dual inf 1.76026e+13 (1386)<br>
Clp0006I 1810  Obj 624.349 Primal inf 5397.34 (441) Dual inf 8.08064e+13 (1731)<br>
Clp0003I Stopped - objective value -1.14166e+11<br>
/home/jjforre/cbc-clean/Data/Netlib/pilot87.mps.gz took 5.00431 seconds<br>
Clp0006I 0  Obj 624.484 Primal inf 2399.54 (400) Dual inf 1.36931e+15 (1557)<br>
Clp0006I 209  Obj 624.817 Primal inf 469.357 (311) Dual inf 1.54536e+14 (1757)<br>
Clp0006I 434  Obj 625.075 Primal inf 237.115 (276) Dual inf 8.3675e+12 (2137)<br>
Clp0006I 652  Obj 624.517 Primal inf 168.752 (242) Dual inf 1.28041e+12 (1810)<br>
Clp0006I 862  Obj 624.674 Primal inf 142.635 (232) Dual inf 5.25165e+11 (1630)<br>
Clp0006I 1072  Obj 624.066 Primal inf 70.3293 (174) Dual inf 4.40587e+11 (2018)<br>
Clp0006I 1244  Obj 622.088 Primal inf 39.7369 (126) Dual inf 9.14483e+11 (2258)<br>
Clp0006I 1450  Obj 620.602 Primal inf 23.1051 (93) Dual inf 1.43656e+11 (2141)<br>
Clp0006I 1663  Obj 621.165 Primal inf 14.5739 (65) Dual inf 1.02619e+11 (2048)<br>
Clp0006I 1871  Obj 623.926 Primal inf 9.15278 (41) Dual inf 1.22297e+11 (1994)<br>
Clp0006I 2080  Obj 624.384 Primal inf 4.98074 (32) Dual inf 4.68714e+11 (1823)<br>
Clp0006I 2286  Obj 624.128 Primal inf 2.99408 (19) Dual inf 3.5785e+10 (2486)<br>
Clp0006I 2491  Obj 622.915 Primal inf 0.163672 (5) Dual inf 6.67806e+09 (2524)<br>
Clp0006I 2703  Obj 403.761 Dual inf 5173.33 (1848)<br>
Clp0006I 2912  Obj 333.114 Dual inf 1590.33 (1948)<br>
Clp0006I 3120  Obj 328.354 Dual inf 75726.6 (2326)<br>
Clp0006I 3333  Obj 323.229 Dual inf 5968.79 (1924)<br>
Clp0006I 3542  Obj 320.237 Dual inf 6164.68 (1693)<br>
Clp0006I 3751  Obj 316.905 Dual inf 387.733 (1594)<br>
Clp0006I 3964  Obj 315.268 Dual inf 84.3049 (1294)<br>
Clp0006I 4172  Obj 312.584 Dual inf 300.031 (1252)<br>
Clp0006I 4431  Obj 310.209 Dual inf 8252.93 (1388)<br>
Clp0006I 4726  Obj 308.884 Dual inf 4387.65 (1714)<br>
Clp0006I 5017  Obj 306.471 Dual inf 1013.76 (1072)<br>
Clp0006I 5344  Obj 304.878 Dual inf 4342.71 (1389)<br>
Clp0006I 5407  Obj 304.664 Dual inf 49.2382 (1055)<br>
Clp0006I 5618  Obj 303.685 Dual inf 3233.76 (1256)<br>
Clp0006I 5937  Obj 303.026 Dual inf 1536.07 (1141)<br>
Clp0006I 6192  Obj 302.481 Dual inf 931.983 (1355)<br>
Clp0006I 6413  Obj 302.146 Dual inf 118.545 (701)<br>
Clp0006I 6716  Obj 301.819 Dual inf 7.46491 (206)<br>
Clp0006I 6883  Obj 301.716 Dual inf 0.0379725 (44)<br>
Clp0006I 7050  Obj 301.71<br>
Clp0000I Optimal - objective value 301.71<br>
/home/jjforre/cbc-clean/Data/Netlib/pilot87.mps.gz took 42.6507 seconds<br>
<br>
<br>
John<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Kish Shen ---11/07/2008 01:45:04 PM---Hi,"><font color="#424282">Kish Shen ---11/07/2008 01:45:04 PM---Hi,</font><br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">From:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Kish Shen &lt;kisshen@cisco.com&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">To:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">clp@list.coin-or.org</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Date:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">11/07/2008 01:45 PM</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Subject:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFE69DFEBCC198f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">[Clp] problems with time-out when using primal Simplex</font></td></tr>
</table>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt>Hi,<br>
<br>
I have been doing some timings with Cbc/Clp (trunk branch, downloaded <br>
via svn on 4 Nov), and it seems that when Primal Simplex is used to <br>
solve a linear problem, the time-out setting is ignored.<br>
<br>
I use OsiClpSolverInterface to access the Clp solver, and set the method <br>
 &nbsp;to Primal Simplex via<br>
<br>
Solver-&gt;setHintParam(OsiDoDualInInitial, doDual, OsiHintDo, NULL)<br>
<br>
where doDual is set to false for Primal Simplex, Solver is a <br>
OsiClpSolverInterface *.<br>
<br>
To set the timeout, I use ClpModel's setMaximumSeconds():<br>
<br>
Solver-&gt;getModelPtr()-&gt;setMaximumSeconds(time)<br>
<br>
this is done after the setHintParam to select Primal method above.<br>
<br>
This timeout seems to work if I am using Dual Simplex (and also for <br>
ClpInterior), but not with Primal. The solver seems to run until the <br>
problem is solved. I initially set the timeout to 300 seconds, and I was <br>
getting problems that took over 1000 seconds to solve returning the <br>
optimal solution. I then set the time-out to 2 seconds, and problems <br>
that took 58 seconds also did not time-out.<br>
<br>
I looked at the HTML (generated by DOxygen, I think?) documentation for <br>
setMaximumSeconds, and there seem to be some error, because the text for <br>
the method says `Number of rows', which does not seem to describe the <br>
method. This 'Number of rows' occurs for other methods, such as <br>
setMaximumIterations(), getIterationCount() -- perhaps it is some <br>
`default' string when there is no description? Should it be `No <br>
description' instead?<br>
<br>
Thanks and cheers,<br>
<br>
Kish<br>
<br>
-- <br>
This e-mail may contain confidential and privileged material for the<br>
sole use of the intended recipient. Any review, use, distribution or<br>
disclosure by others is strictly prohibited. If you are not the intended<br>
recipient (or authorized to receive for the recipient), please contact<br>
the sender by reply e-mail and delete all copies of this message.<br>
Cisco Systems Limited (Company Number: 02558939), is registered in<br>
England and Wales with its registered office at 1 Callaghan Square,<br>
Cardiff, South Glamorgan CF10 5BT.<br>
_______________________________________________<br>
Clp mailing list<br>
Clp@list.coin-or.org<br>
</tt><tt><a href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a></tt><tt><br>
</tt><br>
<br>
</body></html>