<?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: question about parameter initiate for transportation problem in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/question-about-parameter-initiate-for-transportation-problem/m-p/225950#M1105</link>
    <description>&lt;P&gt;These are only NOTEs and not ERRORs.&amp;nbsp; They arise because you are using o_city as a dummy index and O_CITY as a declared parameter.&amp;nbsp; Same story with d_city and D_CITY.&amp;nbsp; Because PROC OPTMODEL is case-insensitive, these look the same.&amp;nbsp; You can avoid the NOTEs by renaming one&amp;nbsp;of them.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2015 21:38:34 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2015-09-16T21:38:34Z</dc:date>
    <item>
      <title>question about parameter initiate for transportation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/question-about-parameter-initiate-for-transportation-problem/m-p/225910#M1104</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed SAS OR example and made some modification as following. However, there are some error message I have no idea how to sole. Could you give me some suggestions? Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message of the following code are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;read data transport_cost_data into [o_city]&lt;BR /&gt; _&lt;BR /&gt; 771&lt;BR /&gt;NOTE 771-782: The name 'o_city' hides an outer declaration.&lt;BR /&gt;55 {d_city in D_CITY} &amp;lt;transport_cost[o_city,d_city] = col(d_city)&amp;gt;;&lt;BR /&gt; ______&lt;BR /&gt; 771&lt;BR /&gt;NOTE 771-782: The name 'd_city' hides an outer declaration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data demand_data;&lt;BR /&gt;input d_city $ Demand;&lt;BR /&gt;datalines;&lt;BR /&gt;Boston 150&lt;BR /&gt;New_York 150&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;data supply_data;&lt;BR /&gt;input o_city $ Supply;&lt;BR /&gt;datalines;&lt;BR /&gt;Detroit 200&lt;BR /&gt;Pittsburgh 100&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;data transport_cost_data;&lt;BR /&gt;input o_city $ Boston New_York;&lt;BR /&gt;datalines;&lt;BR /&gt;Detroit 30 20&lt;BR /&gt;Pittsburgh 40 10&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc optmodel;&lt;BR /&gt; &lt;BR /&gt; /* specify parameters */&lt;BR /&gt; set &amp;lt;str&amp;gt; O_CITY;&lt;BR /&gt; num Supply {O_CITY};&lt;BR /&gt; read data supply_data into O_CITY = [o_city] Supply;&lt;/P&gt;
&lt;P&gt;print Supply;&lt;/P&gt;
&lt;P&gt;set &amp;lt;str&amp;gt; D_CITY;&lt;BR /&gt; num Demand {D_CITY};&lt;BR /&gt; read data demand_data into D_CITY = [d_city] Demand;&lt;/P&gt;
&lt;P&gt;print Demand;&lt;/P&gt;
&lt;P&gt;num transport_cost {O_CITY, D_CITY};&lt;BR /&gt; read data transport_cost_data into [o_city]&lt;BR /&gt; {d_city in D_CITY} &amp;lt;transport_cost[o_city,d_city] = col(d_city)&amp;gt;;&lt;BR /&gt; &lt;BR /&gt; /* model description */&lt;BR /&gt; var x{O_CITY,D_CITY} &amp;gt;= 0;&lt;BR /&gt; min total_cost = sum{i in O_CITY, j in D_CITY}transport_cost[i,j]*x[i,j];&lt;BR /&gt; constraint supply_rule {i in O_CITY}: sum{j in D_CITY}x[i,j]=Supply[i];&lt;BR /&gt; constraint demand_rule {j in D_CITY}: sum{i in O_CITY}x[i,j]=Demand[j];&lt;BR /&gt; &lt;BR /&gt; /* solve and output */&lt;BR /&gt; solve;&lt;BR /&gt; print x;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 18:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/question-about-parameter-initiate-for-transportation-problem/m-p/225910#M1104</guid>
      <dc:creator>YH</dc:creator>
      <dc:date>2015-09-16T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: question about parameter initiate for transportation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/question-about-parameter-initiate-for-transportation-problem/m-p/225950#M1105</link>
      <description>&lt;P&gt;These are only NOTEs and not ERRORs.&amp;nbsp; They arise because you are using o_city as a dummy index and O_CITY as a declared parameter.&amp;nbsp; Same story with d_city and D_CITY.&amp;nbsp; Because PROC OPTMODEL is case-insensitive, these look the same.&amp;nbsp; You can avoid the NOTEs by renaming one&amp;nbsp;of them.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 21:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/question-about-parameter-initiate-for-transportation-problem/m-p/225950#M1105</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-09-16T21:38:34Z</dc:date>
    </item>
  </channel>
</rss>

