<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to stop Do loop not meeting stopping criterion automaticlly in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-stop-Do-loop-not-meeting-stopping-criterion-automaticlly/m-p/73559#M521</link>
    <description>You can program a time limit in the loop itself:&lt;BR /&gt;
&lt;BR /&gt;
proc iml;&lt;BR /&gt;
t0 = time(); /* units of the time() function are seconds */&lt;BR /&gt;
time_limit = 5;&lt;BR /&gt;
do while( (time()-t0)&amp;lt; time_limit);&lt;BR /&gt;
  x = 1;  /* do your loop */&lt;BR /&gt;
end;&lt;BR /&gt;
print time_limit "elapsed time " (time() - t0);</description>
    <pubDate>Wed, 11 Feb 2009 16:13:01 GMT</pubDate>
    <dc:creator>Hutch_sas</dc:creator>
    <dc:date>2009-02-11T16:13:01Z</dc:date>
    <item>
      <title>How to stop Do loop not meeting stopping criterion automaticlly</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-stop-Do-loop-not-meeting-stopping-criterion-automaticlly/m-p/73558#M520</link>
      <description>Hi,&lt;BR /&gt;
If a Do loop in IML procedure never reaches its stopping criterion, it will keep running.  Anyone knows how to stop the IML procedure automatically after a specified time and jump to next procedure? &lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Luke</description>
      <pubDate>Wed, 11 Feb 2009 03:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-to-stop-Do-loop-not-meeting-stopping-criterion-automaticlly/m-p/73558#M520</guid>
      <dc:creator>Luke</dc:creator>
      <dc:date>2009-02-11T03:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Do loop not meeting stopping criterion automaticlly</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-stop-Do-loop-not-meeting-stopping-criterion-automaticlly/m-p/73559#M521</link>
      <description>You can program a time limit in the loop itself:&lt;BR /&gt;
&lt;BR /&gt;
proc iml;&lt;BR /&gt;
t0 = time(); /* units of the time() function are seconds */&lt;BR /&gt;
time_limit = 5;&lt;BR /&gt;
do while( (time()-t0)&amp;lt; time_limit);&lt;BR /&gt;
  x = 1;  /* do your loop */&lt;BR /&gt;
end;&lt;BR /&gt;
print time_limit "elapsed time " (time() - t0);</description>
      <pubDate>Wed, 11 Feb 2009 16:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-to-stop-Do-loop-not-meeting-stopping-criterion-automaticlly/m-p/73559#M521</guid>
      <dc:creator>Hutch_sas</dc:creator>
      <dc:date>2009-02-11T16:13:01Z</dc:date>
    </item>
  </channel>
</rss>

