<?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 Constraint for specific set of Varibles in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraint-for-specific-set-of-Varibles/m-p/212335#M1069</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;how do you define a constraint for a specific set of variales (using "in" not GE or LE, etc.)? For example, instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in Components:&lt;SPAN style="text-decoration: underline;"&gt;c="R2"&lt;/SPAN&gt;}:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like something similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in Components:&lt;SPAN style="text-decoration: underline;"&gt;c in ("R2", "R5")}&lt;/SPAN&gt;:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 08:32:24 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2015-07-28T08:32:24Z</dc:date>
    <item>
      <title>Constraint for specific set of Varibles</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraint-for-specific-set-of-Varibles/m-p/212335#M1069</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;how do you define a constraint for a specific set of variales (using "in" not GE or LE, etc.)? For example, instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in Components:&lt;SPAN style="text-decoration: underline;"&gt;c="R2"&lt;/SPAN&gt;}:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like something similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in Components:&lt;SPAN style="text-decoration: underline;"&gt;c in ("R2", "R5")}&lt;/SPAN&gt;:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 08:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Constraint-for-specific-set-of-Varibles/m-p/212335#M1069</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2015-07-28T08:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint for specific set of Varibles</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Constraint-for-specific-set-of-Varibles/m-p/212336#M1070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two ways (note the curly braces instead of parentheses):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in Components:c in {"R2", "R5"}}:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in Components inter {"R2", "R5"}}:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know that "R2" and "R5" are both in Components, you can make it even simpler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con Cns_Ex{c in {"R2", "R5"}}:Sum{p in Products} X&lt;/P&gt;&lt;P&gt;*Qty[p,c]&amp;lt;=8;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Constraint-for-specific-set-of-Varibles/m-p/212336#M1070</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-07-28T14:12:41Z</dc:date>
    </item>
  </channel>
</rss>

