<?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: Annoying error in Proc Optmodel. Please help in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146240#M770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you must have declared a numeric parameter Units indexed over 4-tuples somewhere else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you probably just need to modify your READ DATA statements as follows, because your OPTMODEL parameter names are not the same as your data set variable names:&lt;/P&gt;&lt;P&gt;read data ex1.PUN into PickUpNode=[I VehicleID VehicleSize] PUunits=Units;&lt;/P&gt;&lt;P&gt;read data ex1.DUN into DropOffNode=[J VehicleID VehicleSize] revenue DUunits=Units;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 18:26:08 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2015-01-30T18:26:08Z</dc:date>
    <item>
      <title>Annoying error in Proc Optmodel. Please help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146239#M769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error during run and do not understand what is the source of the error. I have my keys of the tables matching with my tuple structure. Please help. I have attached error screenshot and table structure that feeds the tuple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The implied subscript count does not match with match array "Units", 3 NE 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my tuple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set&amp;lt;str, str, str&amp;gt; PickUpNode;&lt;/P&gt;&lt;P&gt;num PUunits {PickUpNode};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set&amp;lt;str, str, str&amp;gt; DropOffNode;&lt;/P&gt;&lt;P&gt;num Revenue {DropOffNode};&lt;/P&gt;&lt;P&gt;num DUunits {DropOffNode};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read data ex1.PUN into PickUpNode=[I VehicleID VehicleSize] Units;&lt;/P&gt;&lt;P&gt;read data ex1.DUN into DropOffNode=[J VehicleID VehicleSize] revenue Units;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate your help,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11522i8881A48C2C748D55/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Error.JPG" title="Error.JPG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 17:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146239#M769</guid>
      <dc:creator>V12DBS</dc:creator>
      <dc:date>2015-01-30T17:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying error in Proc Optmodel. Please help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146240#M770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you must have declared a numeric parameter Units indexed over 4-tuples somewhere else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you probably just need to modify your READ DATA statements as follows, because your OPTMODEL parameter names are not the same as your data set variable names:&lt;/P&gt;&lt;P&gt;read data ex1.PUN into PickUpNode=[I VehicleID VehicleSize] PUunits=Units;&lt;/P&gt;&lt;P&gt;read data ex1.DUN into DropOffNode=[J VehicleID VehicleSize] revenue DUunits=Units;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146240#M770</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-01-30T18:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying error in Proc Optmodel. Please help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146241#M771</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;Thank you very much for a quick reply. I appreciate it. I was able to resolve the error based on your suggestion. Now I know the reason why I got an error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146241#M771</guid>
      <dc:creator>V12DBS</dc:creator>
      <dc:date>2015-01-30T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Annoying error in Proc Optmodel. Please help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146242#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Annoying-error-in-Proc-Optmodel-Please-help/m-p/146242#M772</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-01-30T18:34:29Z</dc:date>
    </item>
  </channel>
</rss>

