<?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: Help with coding in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126725#M704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I will give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 01:52:42 GMT</pubDate>
    <dc:creator>Z_Lim</dc:creator>
    <dc:date>2013-10-30T01:52:42Z</dc:date>
    <item>
      <title>Help with coding</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126723#M702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to formulate this in SAS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;IMG alt="Untitled.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/4460_Untitled.jpg" /&gt;&lt;BR /&gt; &lt;BR /&gt; How should i code this?&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 09:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126723#M702</guid>
      <dc:creator>Z_Lim</dc:creator>
      <dc:date>2013-10-29T09:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126724#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your formula has a couple of issues, including overloading of t.&amp;nbsp; I assume you meant the following (in LaTeX notation):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \sum_j j x_{ijt} = \sum_{s=\max(1,t-8)}^t y_{is} + \sum_{s=\max(1,t-16)}^t z_{is} + \sum_{s=\max(1,t-24)}^t w_{is} \forall i,t&lt;BR /&gt; &lt;BR /&gt;If so, you can write this constraint in PROC OPTMODEL as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con Mycon {i in ISET, t in TSET}:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum {j in JSET} j * x[i,j,t] = sum {s in max(1,t-8)..t} y[i,s] + sum {s in max(1,t-16)..t} z[i,s] + sum {s in max(1,t-24)..t} w[i,s];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 12:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126724#M703</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2013-10-29T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126725#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I will give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 01:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Help-with-coding/m-p/126725#M704</guid>
      <dc:creator>Z_Lim</dc:creator>
      <dc:date>2013-10-30T01:52:42Z</dc:date>
    </item>
  </channel>
</rss>

