<?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 Var statement index specification in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314615#M1528</link>
    <description>&lt;P&gt;So if I understand correctly, on p.83:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;num discount {year in YEARS} = 1 / (1 + &amp;amp;discount_rate)^(year - 1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here we have "year" in YEARS becasue there is also "year" on the RHS, whereas for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc optmodel;&lt;BR /&gt;set &amp;lt;str&amp;gt; MINES;&lt;BR /&gt;num cost {MINES};&lt;BR /&gt;num extract_ub {MINES};&lt;BR /&gt;num quality {MINES};&lt;BR /&gt;read data mine_data into MINES=[mine] cost extract_ub quality;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here for the num cost, extract_ub and quality there is no "mine" in MINES becasue there is no RHS part of an equation where "mine" is specified, but here the values are just being read.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2016 17:20:09 GMT</pubDate>
    <dc:creator>ilikesas</dc:creator>
    <dc:date>2016-11-27T17:20:09Z</dc:date>
    <item>
      <title>PROC OPTMODEL Var statement index specification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314512#M1526</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on SAS mathematical programming examples (more precisely ch 7 in&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/ormpex/64980/PDF/default/ormpex.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.sas.com/documentation/cdl/en/ormpe&lt;WBR /&gt;x/64980/PDF/default/ormpex.pdf&lt;/A&gt;) with PROC OPTMODEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here is a part of the VAR statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var IsOpen {MINES, YEARS} binary;&lt;BR /&gt;var IsWorked {MINES, YEARS} binary;&lt;BR /&gt;var Extract {mine in MINES, YEARS} &amp;gt;= 0 &amp;lt;= extract_ub[mine];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is why for the VAR EXTRACT are added the words "mine in", unlike the VARS above it, and how could I know whether I should add such specifications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 01:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314512#M1526</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2016-11-27T01:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL Var statement index specification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314538#M1527</link>
      <description>&lt;P&gt;The dummy indices are optional in the first two VAR statements. &amp;nbsp;For example, if you prefer you could write the first one as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var IsOpen {mine in MINES, year in YEARS} binary;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The dummy index is required for the third VAR statement because the upper bound&amp;nbsp;&lt;SPAN&gt;extract_ub[mine] depends on it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 03:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314538#M1527</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2016-11-27T03:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL Var statement index specification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314615#M1528</link>
      <description>&lt;P&gt;So if I understand correctly, on p.83:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;num discount {year in YEARS} = 1 / (1 + &amp;amp;discount_rate)^(year - 1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here we have "year" in YEARS becasue there is also "year" on the RHS, whereas for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc optmodel;&lt;BR /&gt;set &amp;lt;str&amp;gt; MINES;&lt;BR /&gt;num cost {MINES};&lt;BR /&gt;num extract_ub {MINES};&lt;BR /&gt;num quality {MINES};&lt;BR /&gt;read data mine_data into MINES=[mine] cost extract_ub quality;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here for the num cost, extract_ub and quality there is no "mine" in MINES becasue there is no RHS part of an equation where "mine" is specified, but here the values are just being read.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 17:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314615#M1528</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2016-11-27T17:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL Var statement index specification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314704#M1529</link>
      <description>Yes, that is correct.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2016 02:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Var-statement-index-specification/m-p/314704#M1529</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2016-11-28T02:48:50Z</dc:date>
    </item>
  </channel>
</rss>

