<?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: Run without errors but &amp;quot;Infeasible or Unbounded&amp;quot; in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198909#M1018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That note is because you declare M as a numeric parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num M = 1000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then later use it as a dummy index:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m in RAW_MATERIALS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(M and m are treated the same because PROC OPTMODEL is case-insensitive.)&amp;nbsp; It is better to rename one of them, say bigM instead of M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make these changes and then attach the new code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2015 18:16:22 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2015-07-10T18:16:22Z</dc:date>
    <item>
      <title>Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198904#M1013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is about cost minimization in a serial supply chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code for optimization runs without error, but always shows "Infeasible or Unbounded" for solution status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed parameters of demand and initial or ending inventory, but still remains same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! And below in the attachment is the code as well as diagram description.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 19:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198904#M1013</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2015-07-08T19:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198905#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have indexing issues in several constraint declarations.&amp;nbsp; For example, it does not make sense to use "j in SUPPLIERS" and "p in PRODUCTS" in both places here:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;constraint inv_flow1 {j in SUPPLIERS, m in RAW_MATERIALS, p in PRODUCTS}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum {j in SUPPLIERS} raw_quantity_1[j,m] + initial_1&lt;M&gt; = inv_raw1&lt;M&gt; + sum {p in Products} bill_ratio[m,p]*pro_size1&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I suspect that you mean instead:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;constraint inv_flow1 {m in RAW_MATERIALS}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum {j in SUPPLIERS} raw_quantity_1[j,m] + initial_1&lt;M&gt; = inv_raw1&lt;M&gt; + sum {p in Products} bill_ratio[m,p]*pro_size1&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But you might have meant:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;constraint inv_flow1 {j in SUPPLIERS, m in RAW_MATERIALS, p in PRODUCTS}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; raw_quantity_1[j,m] + initial_1&lt;M&gt; = inv_raw1&lt;M&gt; + bill_ratio[m,p]*pro_size1&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please correct these and see if that takes care of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, you might find the EXPAND statement helpful to see whether the model you generated is what you intended:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax11.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax11.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 20:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198905#M1014</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-07-08T20:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198906#M1015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried to change my constraints in the way you mentioned, where this is what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;constraint inv_flow1 {m in RAW_MATERIALS}:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; sum {j in SUPPLIERS} raw_quantity_1[j,m] + initial_1&lt;M&gt; = inv_raw1&lt;M&gt; + sum {p in Products} bill_ratio[m,p]*pro_size1&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But errors come out for example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; con raw_interval1 {m in RAW_MATERIALS}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum {q in PRICE_INTERVALS} raw_quantity1_1[m,q]+raw_quantity2_1[m,q]+raw_quantity3_1[m,q] = sum {j in SUPPLIERS} raw_quantity_1[j,m];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 537-782: The symbol 'q' is unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And similar errors show up. I guess whether it should be at the prior way I did?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 20:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198906#M1015</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2015-07-08T20:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198907#M1016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need parentheses around the entire summand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum {q in PRICE_INTERVALS} (raw_quantity1_1[m,q]+raw_quantity2_1[m,q]+raw_quantity3_1[m,q])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198907#M1016</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-07-08T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198908#M1017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I tried to change the constraints in this way, and run the code again. &lt;/P&gt;&lt;P&gt;Still no errors, but the Solution Status is still Infeasible or Unbounded.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I noticed that in the log file, the following conditions happen a lot :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constraint inv_flow1 {m in RAW_MATERIALS}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 777&lt;/P&gt;&lt;P&gt;NOTE 777-782: The name 'm' hides an outer declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it matter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 17:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198908#M1017</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2015-07-10T17:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198909#M1018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That note is because you declare M as a numeric parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num M = 1000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then later use it as a dummy index:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m in RAW_MATERIALS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(M and m are treated the same because PROC OPTMODEL is case-insensitive.)&amp;nbsp; It is better to rename one of them, say bigM instead of M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make these changes and then attach the new code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 18:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198909#M1018</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-07-10T18:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Run without errors but "Infeasible or Unbounded"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198910#M1019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 18:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Run-without-errors-but-quot-Infeasible-or-Unbounded-quot/m-p/198910#M1019</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2015-07-10T18:37:28Z</dc:date>
    </item>
  </channel>
</rss>

