<?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 Newbie: Not getting Integer values while running network flows in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548387#M2647</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to run a network flow and get integer values for the flows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective is to use generalized network as nodes L1, L2 has to be visited only once. However, I am unable to get integer values for the formulation. For some reason, interior point algorithm is triggered and not network simplex optimizer. I am not sure if I have used the right way to specify the lower and upper bounds. Please let me know if I am missing something.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*

_from_  = from node, _to_ = to node, _cost_ = cost to objective function, _mult_ = multiplier, _ lo_ = lower_bound , _up_ = upper_bound

*/

 

proc netflow 
arcdata = garcs 
nodedata = gnodes
conout = gnetout
source=A1
sink=COLLECT;
capacity _up_;
lo _lo_;
mult _mult_;
cost _cost_;
run;

 

data gnodes;
infile datalines dlm="|";
input _node_ :$25. _sd_ :8.;
datalines;
A1|1
COLLECT|-3

;
run;

/*

_from_  = from node, _to_ = to node, _cost_ = cost to objective function, _mult_ = multiplier, _ lo_ = lower_bound , _up_ = upper_bound

*/

 

data garcs;
infile datalines dlm="|";
input _from_ :$25. _to_ :$25. _cost_ :8. _mult_ :8. _lo_ :8. _up_ :8.;
datalines;
A1|L1T0|19|1|0|1
A1|L2T0|1|1|0|1
L1T0|L1T0P|0|2|0|1
L2T0|L2T0P|0|2|0|1
L1T0P|L1SUPER|0|1|0|1
L1T0P|L2T1|7|1|0|1
L2T0P|L2SUPER|0|1|0|1
L2T0P|L1T1|4|1|0|1
L1T1|L1T1P|0|2|0|1
L2T1|L2T1P|0|2|0|1
L1T1P|L1SUPER|0|1|0|1
L2T1P|L2SUPER|0|1|0|1
L1T1P|A1SINK|116|1|0|1
L2T1P|A1SINK|95|1|0|1
L1SUPER|COLLECT|0|1|0|1
L2SUPER|COLLECT|0|1|0|1
A1SINK|COLLECT|0|1|0|1
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Apr 2019 03:12:09 GMT</pubDate>
    <dc:creator>nvidia39</dc:creator>
    <dc:date>2019-04-04T03:12:09Z</dc:date>
    <item>
      <title>Newbie: Not getting Integer values while running network flows</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548387#M2647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to run a network flow and get integer values for the flows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective is to use generalized network as nodes L1, L2 has to be visited only once. However, I am unable to get integer values for the formulation. For some reason, interior point algorithm is triggered and not network simplex optimizer. I am not sure if I have used the right way to specify the lower and upper bounds. Please let me know if I am missing something.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*

_from_  = from node, _to_ = to node, _cost_ = cost to objective function, _mult_ = multiplier, _ lo_ = lower_bound , _up_ = upper_bound

*/

 

proc netflow 
arcdata = garcs 
nodedata = gnodes
conout = gnetout
source=A1
sink=COLLECT;
capacity _up_;
lo _lo_;
mult _mult_;
cost _cost_;
run;

 

data gnodes;
infile datalines dlm="|";
input _node_ :$25. _sd_ :8.;
datalines;
A1|1
COLLECT|-3

;
run;

/*

_from_  = from node, _to_ = to node, _cost_ = cost to objective function, _mult_ = multiplier, _ lo_ = lower_bound , _up_ = upper_bound

*/

 

data garcs;
infile datalines dlm="|";
input _from_ :$25. _to_ :$25. _cost_ :8. _mult_ :8. _lo_ :8. _up_ :8.;
datalines;
A1|L1T0|19|1|0|1
A1|L2T0|1|1|0|1
L1T0|L1T0P|0|2|0|1
L2T0|L2T0P|0|2|0|1
L1T0P|L1SUPER|0|1|0|1
L1T0P|L2T1|7|1|0|1
L2T0P|L2SUPER|0|1|0|1
L2T0P|L1T1|4|1|0|1
L1T1|L1T1P|0|2|0|1
L2T1|L2T1P|0|2|0|1
L1T1P|L1SUPER|0|1|0|1
L2T1P|L2SUPER|0|1|0|1
L1T1P|A1SINK|116|1|0|1
L2T1P|A1SINK|95|1|0|1
L1SUPER|COLLECT|0|1|0|1
L2SUPER|COLLECT|0|1|0|1
A1SINK|COLLECT|0|1|0|1
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Apr 2019 03:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548387#M2647</guid>
      <dc:creator>nvidia39</dc:creator>
      <dc:date>2019-04-04T03:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: Not getting Integer values while running network flows</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548392#M2648</link>
      <description>&lt;P&gt;Generalized network flow problems do not have the integrality property, so there might not be an optimal solution that takes only integer values.&amp;nbsp; Also, PROC NETFLOW is a legacy procedure that is no longer documented.&amp;nbsp; The SAS/OR 14.1 documentation provides an example that illustrates how to solve a generalized network flow problem with PROC OPTMODEL:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormplpug/68158/HTML/default/viewer.htm#ormplpug_netflow_sect159.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/ormplpug/68158/HTML/default/viewer.htm#ormplpug_netflow_sect159.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 03:49:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548392#M2648</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-04-04T03:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: Not getting Integer values while running network flows</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548468#M2649</link>
      <description>Thank you so much for your response.&lt;BR /&gt;&lt;BR /&gt;Another quick question, which SAS procedure is used for pure network flow?&lt;BR /&gt;Could you please share an example of the same?&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2019 12:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548468#M2649</guid>
      <dc:creator>nvidia39</dc:creator>
      <dc:date>2019-04-04T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: Not getting Integer values while running network flows</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548517#M2651</link>
      <description>&lt;P&gt;SAS/OR: &lt;A href="https://go.documentation.sas.com/?docsetId=ornoaug&amp;amp;docsetTarget=titlepage.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;PROC OPTNET&lt;/A&gt;&amp;nbsp;or the &lt;A href="https://go.documentation.sas.com/?docsetId=ormpug&amp;amp;docsetTarget=ormpug_networksolver_toc.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;network solver in PROC OPTMODEL&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;SAS Optimization on SAS Viya: &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=casnopt&amp;amp;docsetTarget=titlepage.htm&amp;amp;locale=en" target="_self"&gt;PROC OPTNETWORK&lt;/A&gt; or the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=casmopt&amp;amp;docsetTarget=casmopt_networksolver_toc.htm&amp;amp;locale=en" target="_self"&gt;network solver in PROC OPTMODEL&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All those linked docs have lots of examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 14:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Newbie-Not-getting-Integer-values-while-running-network-flows/m-p/548517#M2651</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-04-04T14:35:24Z</dc:date>
    </item>
  </channel>
</rss>

