<?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: Constraints verification in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598304#M2915</link>
    <description>&lt;P&gt;I think you want the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   con c28{i in rxid: calculation[i] = 1 and dollars[i] = 1 &amp;gt; current_copay[i] + 5}:
      n_ingred_cost[i] + n_disp_fee_final[i] &amp;lt;= (current_copay[i] + 5) - bill_tax[i];
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Oct 2019 03:26:45 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2019-10-22T03:26:45Z</dc:date>
    <item>
      <title>Constraints verification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598116#M2911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code in the optmodel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for {i in rxid} do;&lt;BR /&gt;if calculation[i] = 1 and dollars[i] =1 &amp;gt; current_copay[i] +5 then do;&lt;BR /&gt;fix copay1_lhs[i]= n_ingred_cost[i] + n_disp_fee_final[i] ;&lt;BR /&gt;fix copay1_rhs[i]=(current_copay[i] +5) - bill_tax[i];&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;con c28{i in rxid}:copay1_lhs[i] &amp;lt;= copay1_rhs[i];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i expand it, i see the results below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Constraint c28[674523592]: copay1_lhs[674523592] - copay1_rhs[674523592] &amp;lt;= 0&lt;BR /&gt;Constraint c28[674563238]: copay1_lhs[674563238] - copay1_rhs[674563238] &amp;lt;= 0&lt;BR /&gt;Constraint c28[674563792]: copay1_lhs[674563792] - copay1_rhs[674563792] &amp;lt;= 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it right to pass the variable in the constraint function; please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598116#M2911</guid>
      <dc:creator>sarathgk</dc:creator>
      <dc:date>2019-10-21T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Constraints verification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598304#M2915</link>
      <description>&lt;P&gt;I think you want the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   con c28{i in rxid: calculation[i] = 1 and dollars[i] = 1 &amp;gt; current_copay[i] + 5}:
      n_ingred_cost[i] + n_disp_fee_final[i] &amp;lt;= (current_copay[i] + 5) - bill_tax[i];
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Oct 2019 03:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598304#M2915</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-10-22T03:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Constraints verification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598353#M2918</link>
      <description>&lt;P&gt;ya exactly, i tried your code ,but could not see anything in the expand results. will the constraints be applied there?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 09:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/598353#M2918</guid>
      <dc:creator>sarathgk</dc:creator>
      <dc:date>2019-10-22T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Constraints verification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/599197#M2920</link>
      <description>&lt;P&gt;If the logical conditions after the colon operator are never satisfied, then the index set is empty and EXPAND will not display anything.&amp;nbsp; This part of the condition is suspicious:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dollars[i] = 1 &amp;gt; current_copay[i] + 5&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is the intent here?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 22:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Constraints-verification/m-p/599197#M2920</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-10-24T22:15:18Z</dc:date>
    </item>
  </channel>
</rss>

