<?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: The name 'index_1' hides an outer declaration. in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/The-name-index-1-hides-an-outer-declaration/m-p/287299#M1407</link>
    <description>&lt;P&gt;The message should just be a NOTE and not an ERROR. &amp;nbsp;It means that you have declared index_1 as a parameter and then later used it as a dummy index. &amp;nbsp;The following code yields the same behavior:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   num i;&lt;BR /&gt;   put ({i in 1..3});
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To avoid the note, either omit the declaration or use a different dummy index.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 19:00:38 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2016-07-26T19:00:38Z</dc:date>
    <item>
      <title>The name 'index_1' hides an outer declaration.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/The-name-index-1-hides-an-outer-declaration/m-p/287296#M1405</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a formulation with more than two indices, SAS produce an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;con problem_con{&amp;lt;index_1, index_2&amp;gt; in two_indices}: &amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS produced an error and told me:&lt;/P&gt;&lt;P&gt;"The name 'index_1' hides an outer declaration."&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What does this mean and how do I get rid of this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/The-name-index-1-hides-an-outer-declaration/m-p/287296#M1405</guid>
      <dc:creator>SAS5</dc:creator>
      <dc:date>2016-07-26T18:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: The name 'index_1' hides an outer declaration.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/The-name-index-1-hides-an-outer-declaration/m-p/287299#M1407</link>
      <description>&lt;P&gt;The message should just be a NOTE and not an ERROR. &amp;nbsp;It means that you have declared index_1 as a parameter and then later used it as a dummy index. &amp;nbsp;The following code yields the same behavior:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   num i;&lt;BR /&gt;   put ({i in 1..3});
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To avoid the note, either omit the declaration or use a different dummy index.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/The-name-index-1-hides-an-outer-declaration/m-p/287299#M1407</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2016-07-26T19:00:38Z</dc:date>
    </item>
  </channel>
</rss>

