<?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: Proc OPTMODEL multi-threading help in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462497#M2260</link>
    <description>&lt;P&gt;Yikes!!!! I meant to state that I was using OPTLSO. Sorry about that.&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 19:56:28 GMT</pubDate>
    <dc:creator>DocMartin</dc:creator>
    <dc:date>2018-05-15T19:56:28Z</dc:date>
    <item>
      <title>Proc OPTMODEL multi-threading help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462339#M2256</link>
      <description>I'm running an optimization routine using PROC OPTMODEL. On my previous computer (an old Surface) it was painfully slow. I was able to get a new laptop with 16GB memory, the latest Intel quad processor, and an SSD drive. Yet my algorithms run "only" three times faster. I've tried using the PERFORMANCE statement and there was no change. Is there any way to make PROC OPTMODEL use all four processors and/or speed up the run time?</description>
      <pubDate>Tue, 15 May 2018 13:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462339#M2256</guid>
      <dc:creator>DocMartin</dc:creator>
      <dc:date>2018-05-15T13:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OPTMODEL multi-threading help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462371#M2257</link>
      <description>&lt;P&gt;PROC OPTMODEL uses all four processors by default, and you should see messages like this in the log:&lt;/P&gt;
&lt;P&gt;NOTE: Problem generation will use 4 threads.&lt;/P&gt;
&lt;P&gt;NOTE: The ___ algorithm&amp;nbsp;is using up to 4 threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you should not expect linear speedup from optimization algorithms.&amp;nbsp; Beyond the usual overhead of any parallel implementation, some parts of the algorithms are serial, and the speedup you see strongly depends on the type of problem and the specific data for your instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are able to share your code and data, I'll be glad to take a look and possibly provide some specific recommendations to speed things up.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 14:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462371#M2257</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-05-15T14:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OPTMODEL multi-threading help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462407#M2258</link>
      <description>&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your reply. But I can't share the algorithm's code as it's proprietary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here is part of the log file:&lt;/P&gt;&lt;P&gt;NOTE: The OPTLSO procedure is executing in single-machine mode.&lt;/P&gt;&lt;P&gt;NOTE: The OPTLSO algorithm is using up to 4 threads.&lt;/P&gt;&lt;P&gt;NOTE: The problem has 344 variables (343 integer, 1 continuous).&lt;/P&gt;&lt;P&gt;NOTE: The problem has 0 constraints (0 linear, 0 nonlinear).&lt;/P&gt;&lt;P&gt;NOTE: The problem has 1 FCMP function definitions.&lt;/P&gt;&lt;P&gt;NOTE: The deterministic parallel mode is enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 16:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462407#M2258</guid>
      <dc:creator>DocMartin</dc:creator>
      <dc:date>2018-05-15T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OPTMODEL multi-threading help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462440#M2259</link>
      <description>&lt;P&gt;Your subject line says OPTMODEL, but your log says OPTLSO.&amp;nbsp; Was OPTMODEL just a typo?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what SAS/OR version are you using?&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 17:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462440#M2259</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-05-15T17:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OPTMODEL multi-threading help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462497#M2260</link>
      <description>&lt;P&gt;Yikes!!!! I meant to state that I was using OPTLSO. Sorry about that.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 19:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/462497#M2260</guid>
      <dc:creator>DocMartin</dc:creator>
      <dc:date>2018-05-15T19:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc OPTMODEL multi-threading help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/465295#M2265</link>
      <description>&lt;P&gt;I see a message referring to FCMP function definition.&amp;nbsp; It the function is called once per item in the optimization process, there could be lots of time-consuming context changes in the computing algorithm.&amp;nbsp; I have found that sometimes using a sas macro instead of a user-defined function performing the same operation can be faster.&amp;nbsp; Sometime all the function really offers is compact syntax.&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2018 00:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-OPTMODEL-multi-threading-help/m-p/465295#M2265</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-05-27T00:05:33Z</dc:date>
    </item>
  </channel>
</rss>

