<?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 Data Rate holes in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784346#M3553</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have four nodes. Call it p,t,c, and d. Products flow from p (that is the actual origin) and go to d (actual destination). The input data is in terms of quantities from p to d (origin to destination). However, there are carriers (c) and transits (t). The quantity from a given p to given d can flow from any combination of c and d. Each combination of p,t,c,d has its own rates. Model is set to solve the optimal cost.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS modeling works just fine. However, I have problem with my data that i am trying to see if we can have ideas with SAS to resolve.&lt;/P&gt;&lt;P&gt;For example, for p1 to d1, lets say there are 5 carriers and 4transits. so there are 20 combination possible. however, i do not have a real rate for all the 20 combinations. Reason is that not all carries operate via all ports. As a result there are some holes. I tried to fill in those holes by giving those holes a big number (max rate of that p-d pair). That works fine when i do not have many constraints. But when i do have constraints like this c can handle only x quantities (capacity constraints for a carrier), then the model picks a combination that is a fake rate meaning the big number that i artificially tried to fill in. SAS is perfectly fine that it results in infeasibility. But I was just looking for ideas to see if there is anything that you guys encountered similar to this and/or to prevent this.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 17:12:41 GMT</pubDate>
    <dc:creator>Santha</dc:creator>
    <dc:date>2021-12-06T17:12:41Z</dc:date>
    <item>
      <title>Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784346#M3553</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have four nodes. Call it p,t,c, and d. Products flow from p (that is the actual origin) and go to d (actual destination). The input data is in terms of quantities from p to d (origin to destination). However, there are carriers (c) and transits (t). The quantity from a given p to given d can flow from any combination of c and d. Each combination of p,t,c,d has its own rates. Model is set to solve the optimal cost.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS modeling works just fine. However, I have problem with my data that i am trying to see if we can have ideas with SAS to resolve.&lt;/P&gt;&lt;P&gt;For example, for p1 to d1, lets say there are 5 carriers and 4transits. so there are 20 combination possible. however, i do not have a real rate for all the 20 combinations. Reason is that not all carries operate via all ports. As a result there are some holes. I tried to fill in those holes by giving those holes a big number (max rate of that p-d pair). That works fine when i do not have many constraints. But when i do have constraints like this c can handle only x quantities (capacity constraints for a carrier), then the model picks a combination that is a fake rate meaning the big number that i artificially tried to fill in. SAS is perfectly fine that it results in infeasibility. But I was just looking for ideas to see if there is anything that you guys encountered similar to this and/or to prevent this.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784346#M3553</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2021-12-06T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784349#M3554</link>
      <description>&lt;P&gt;Did you try including a missing values for the input data instead of a "large value" for c*t combinations that don't actually occur?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also want to post your code so someone with more familiarity than I have can see the options you are using. That would eliminate suggestions of what you have tried that might appear.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784349#M3554</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-12-06T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784527#M3555</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;proc optmodel;

set &amp;lt;str&amp;gt; P;
set &amp;lt;str&amp;gt; D; 
set &amp;lt;str&amp;gt; C; 
set &amp;lt;str&amp;gt; T;

read data STDOPT.PN3510_P into P=[PortSource];
read data STDOPT.PN3510_D into D=[RateMatchDest];
read data STDOPT.PN3510_L into L=[LSP];
read data STDOPT.PN3510_T into T=[Transit];

num Containers {P,D} init 0;
read data STDOPT.Data into [PortSource RateMatchDest] Containers=FEU;


num InboundLinehaul {P,T,C,D}; 
read data STDOPT.RATES into [PortSource Transit LSP RateMatchDest] InboundLinehaul=Rate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Dec 2021 14:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784527#M3555</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2021-12-07T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784530#M3556</link>
      <description>&lt;P&gt;thank you for your reply. i tried that earlier but did not help. I have posted my code above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 14:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784530#M3556</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2021-12-07T14:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784556#M3558</link>
      <description>&lt;P&gt;You can use sparse index sets of tuples as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;set &amp;lt;str,str&amp;gt; PD;
num Containers {PD} init 0;
read data STDOPT.Data into PD=[PortSource RateMatchDest] Containers=FEU;

set &amp;lt;str,str,str,str&amp;gt; PTCD;
num InboundLinehaul {PTCD}; 
read data STDOPT.RATES into PTCD=[PortSource Transit LSP RateMatchDest] InboundLinehaul=Rate;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please see&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_020/casmopt/casmopt_optmodel_examples07.htm" target="_blank"&gt;SAS Help Center: Sparse Modeling&lt;/A&gt;&amp;nbsp;for another example.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 15:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784556#M3558</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2021-12-07T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784890#M3559</link>
      <description>&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;Thank you. that makes sense.&lt;/P&gt;&lt;P&gt;Is there&amp;nbsp; a way where I can tell SAS when we do the READ DATA step to omit/ignore the values where we have a null or 0 values in the rates? This question I am asking when we declare&amp;nbsp;num InboundLinehaul {Ports,Transit,LSP,DC}; ie. 4 individual sets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 13:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784890#M3559</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2021-12-08T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784922#M3560</link>
      <description>&lt;P&gt;You can use a WHERE clause in the READ DATA statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;read data STDOPT.RATES(where=(Rate ne 0)) into [PortSource Transit LSP RateMatchDest] InboundLinehaul=Rate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/784922#M3560</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2021-12-08T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data Rate holes</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/785054#M3561</link>
      <description>&lt;P&gt;oh thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 02:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Data-Rate-holes/m-p/785054#M3561</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2021-12-09T02:12:41Z</dc:date>
    </item>
  </channel>
</rss>

