<?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: Read dimensional sets into proc optmodel in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Read-dimensional-sets-into-proc-optmodel/m-p/224426#M1095</link>
    <description>&lt;P&gt;Answered in &lt;A href="https://communities.sas.com/t5/Mathematical-Optimization-and/Reading-multidimensional-sets-into-proc-optmodel/m-p/201817#U201817" target="_self"&gt;another post&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2015 15:44:22 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2015-09-08T15:44:22Z</dc:date>
    <item>
      <title>Read dimensional sets into proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Read-dimensional-sets-into-proc-optmodel/m-p/201809#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow SAS-users!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After much frustration and a lot of reading up on the proc optmodel and examples I turn to you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially I am trying, by using sets, to read in some data which varies in the number of elements in several dimension. A simplified example of what I want would is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;data Company_Data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; input Customer Bill;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; cust1 B1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; cust1 B2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; cust1 B3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; cust2 B4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; cust3 B5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;proc optmodel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;set&amp;lt;string&amp;gt; Customers init {};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;set&amp;lt;string&amp;gt; Bills{c in Customers};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;read data Company_Data into Customers=[customer];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;/*Magic to get Bills read into the model */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;/*What I want*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Customers={'cust1','cust2','cust3'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Bills['cust1'] = {'B1', 'B2', 'B3'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Bills['cust2'] = {'B4'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Bills['cust3'] = {'B5'};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* End of model */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 07:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Read-dimensional-sets-into-proc-optmodel/m-p/201809#M1039</guid>
      <dc:creator>TueChristensen</dc:creator>
      <dc:date>2015-07-14T07:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read dimensional sets into proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Read-dimensional-sets-into-proc-optmodel/m-p/224426#M1095</link>
      <description>&lt;P&gt;Answered in &lt;A href="https://communities.sas.com/t5/Mathematical-Optimization-and/Reading-multidimensional-sets-into-proc-optmodel/m-p/201817#U201817" target="_self"&gt;another post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 15:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Read-dimensional-sets-into-proc-optmodel/m-p/224426#M1095</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-09-08T15:44:22Z</dc:date>
    </item>
  </channel>
</rss>

