<div dir="ltr"><div><div><div><div>Hello,<br><br></div>unfortunately Couenne doesn't accept options via the AMPL interface. The only way to set a time limit is to create a file called couenne.opt with a line such as<br><br></div>time_limit 400<br><br></div>for a 400-second limit. The file must be in the same directory as where the command (AMPL, in this case) is launched from.<br><br></div>Hope this helps.<br><div><br></div><div>Pietro<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 4, 2017 at 8:46 PM, Mamadou KONE <span dir="ltr"><<a href="mailto:mamadou1.kone@ucad.edu.sn" target="_blank">mamadou1.kone@ucad.edu.sn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-8599769650611412155divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p></p>
<div>
<p style="margin-bottom:0cm">Hello,</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">I have pretty big MINLP problem that I solve on Couenne using AMPL</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">The problem is that the problem runs for number of hours.</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">I wonder if it is possible to do either of the following:</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">1. After the problem breaks, have results displayed (run the command file), that might not be optimal, but seeing current primal value, it is good enough for me.</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">2. Have solver to stop and have the results displayed after primal value had reached certain desired value</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">3. Have a solver to display intermediate (current) variable values every x minutes (that one would be a perfect solution for me)</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">4. Have a time limit after which the solver stops and current solution</p>
<p style="margin-bottom:0cm">is displayed.</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm"></p>
<div>
<p style="margin-bottom:0cm">5. well I used:</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">option couenne_options "time_limit =x";</p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">However, this manner donĀ“t work.</p>
<p style="margin-bottom:0cm"><br>
</p>
</div>
<p></p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm">Thanks for you. </p>
</div>
<br>
<p></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Couenne mailing list<br>
<a href="mailto:Couenne@list.coin-or.org">Couenne@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/couenne" rel="noreferrer" target="_blank">http://list.coin-or.org/<wbr>mailman/listinfo/couenne</a><br></blockquote></div><br></div>