<?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: Conditional Constraint Syntax - Please Help in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147280#M775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the help. I truly appreciate it. The constraint is working beautifully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2015 05:12:17 GMT</pubDate>
    <dc:creator>V12DBS</dc:creator>
    <dc:date>2015-01-31T05:12:17Z</dc:date>
    <item>
      <title>Conditional Constraint Syntax - Please Help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147278#M773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a constraint that needs a conditional statement and not sure what are the syntax to handle in proc optmodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all "i" in PickUpNode table, if "i" = Cary, NC then&lt;/P&gt;&lt;P&gt;sum{&amp;lt;s,d&amp;gt; in RouteTable: s=i} 1 * MS[s,d] = 1;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;sum{&amp;lt;s,d&amp;gt; in RouteTable: s=i} 1 * MS[s,d] &amp;lt;= 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 00:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147278#M773</guid>
      <dc:creator>V12DBS</dc:creator>
      <dc:date>2015-01-31T00:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Constraint Syntax - Please Help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147279#M774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming MS &amp;gt;= 0, here are three ways, in increasing order of compactness:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; con Mycon {i in PickUpNode}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if i = 'Cary, NC' then 1 else 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;= sum{&amp;lt;s,d&amp;gt; in RouteTable: s=i} MS[s,d]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;= 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; con Mycon {i in PickUpNode}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if i = 'Cary, NC' then 1 else 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;= sum{&amp;lt;(i),d&amp;gt; in RouteTable} MS[i,d]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;= 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; con Mycon {i in PickUpNode}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (i = 'Cary, NC')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;= sum{&amp;lt;(i),d&amp;gt; in RouteTable} MS[i,d]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;= 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might find these examples useful:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormpex/67518/HTML/default/viewer.htm#titlepage.htm" title="http://support.sas.com/documentation/cdl/en/ormpex/67518/HTML/default/viewer.htm#titlepage.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming Examples&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 00:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147279#M774</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-01-31T00:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Constraint Syntax - Please Help</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147280#M775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the help. I truly appreciate it. The constraint is working beautifully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 05:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Conditional-Constraint-Syntax-Please-Help/m-p/147280#M775</guid>
      <dc:creator>V12DBS</dc:creator>
      <dc:date>2015-01-31T05:12:17Z</dc:date>
    </item>
  </channel>
</rss>

