<?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 creating a decision variable which is binary but also could be range in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/creating-a-decision-variable-which-is-binary-but-also-could-be/m-p/585691#M2857</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the proc optmodel, I am trying to make a water valve as a decision variable. It could be either on and off, once it on, it is limited in range from 200 to 1000. How should I set up this? Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 04:02:07 GMT</pubDate>
    <dc:creator>DanielZhang</dc:creator>
    <dc:date>2019-09-03T04:02:07Z</dc:date>
    <item>
      <title>creating a decision variable which is binary but also could be range</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/creating-a-decision-variable-which-is-binary-but-also-could-be/m-p/585691#M2857</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the proc optmodel, I am trying to make a water valve as a decision variable. It could be either on and off, once it on, it is limited in range from 200 to 1000. How should I set up this? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 04:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/creating-a-decision-variable-which-is-binary-but-also-could-be/m-p/585691#M2857</guid>
      <dc:creator>DanielZhang</dc:creator>
      <dc:date>2019-09-03T04:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: creating a decision variable which is binary but also could be range</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/creating-a-decision-variable-which-is-binary-but-also-could-be/m-p/585802#M2858</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a way to do it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   var valve binary;
   var flow;
   con flow_lb: flow &amp;gt;= valve * 200;
   con flow_ub: flow &amp;lt;= valve * 1000;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are adding a binary variable for the valve (on/off behavior) and another one for the numerical value you want.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 13:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/creating-a-decision-variable-which-is-binary-but-also-could-be/m-p/585802#M2858</guid>
      <dc:creator>sertalpb</dc:creator>
      <dc:date>2019-09-03T13:01:44Z</dc:date>
    </item>
  </channel>
</rss>

