<?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: Mixed integer Linear Programing in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Mixed-integer-Linear-Programing/m-p/316580#M1557</link>
    <description>&lt;P&gt;You have not specified any integer variables. &amp;nbsp;Use the INTEGER option in the VAR statement and then the .RELAX suffix to relax x[2].&amp;nbsp; Also, you need not enter the zero coefficients explicitly. &amp;nbsp;In fact, you can avoid those last three constraints by instead using the .UB variable suffix:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   var x{1..3}&amp;gt;=0 integer;
   x[2].relax = 1;
   max z=900*x[1]+1500*x[2]+1000*x[3];
   con c1: 50000*x[1]+12000*x[2]+8000*x[3]&amp;lt;=250000;
   x[1].ub = 4;
   x[2].ub = 15;
   x[3].ub = 20;
   solve with milp/presolver=none;
   print x;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you change the&amp;nbsp;objective coefficient for x[1] from 900 to 9000, you do get an&amp;nbsp;optimal objective value of 42,250.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Dec 2016 20:40:46 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2016-12-04T20:40:46Z</dc:date>
    <item>
      <title>Mixed integer Linear Programing</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Mixed-integer-Linear-Programing/m-p/316570#M1556</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting optimal feasible solution as 31250 with decision variable values 0, 7.5 and 20.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc optmodel;&lt;BR /&gt;var x{1..3}&amp;gt;=0;&lt;BR /&gt;max z=900*x[1]+1500*x[2]+1000*x[3];&lt;BR /&gt;con c1: 50000*x[1]+12000*x[2]+8000*x[3]&amp;lt;=250000;&lt;BR /&gt;con c2: 1*x[1]+0*x[2]+0*x[3]&amp;lt;=4;&lt;BR /&gt;con c3: 0*x[1]+1*x[2]+0*x[3]&amp;lt;=15;&lt;BR /&gt;con c4: 0*x[1]+0*x[2]+1*x[3]&amp;lt;=20;&lt;BR /&gt;solve with milp/presolver=none;&lt;BR /&gt;print x[1] x[2] x[3];&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x1,x3&amp;gt;=0 or integer&lt;/P&gt;
&lt;P&gt;x2&amp;gt;=0.&lt;/P&gt;
&lt;P&gt;But in excel it is given as 42,250 optimal feasible solution with decision variable values 4, 4.16,0. Please help if I am going wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 17:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Mixed-integer-Linear-Programing/m-p/316570#M1556</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2016-12-04T17:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed integer Linear Programing</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Mixed-integer-Linear-Programing/m-p/316580#M1557</link>
      <description>&lt;P&gt;You have not specified any integer variables. &amp;nbsp;Use the INTEGER option in the VAR statement and then the .RELAX suffix to relax x[2].&amp;nbsp; Also, you need not enter the zero coefficients explicitly. &amp;nbsp;In fact, you can avoid those last three constraints by instead using the .UB variable suffix:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   var x{1..3}&amp;gt;=0 integer;
   x[2].relax = 1;
   max z=900*x[1]+1500*x[2]+1000*x[3];
   con c1: 50000*x[1]+12000*x[2]+8000*x[3]&amp;lt;=250000;
   x[1].ub = 4;
   x[2].ub = 15;
   x[3].ub = 20;
   solve with milp/presolver=none;
   print x;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you change the&amp;nbsp;objective coefficient for x[1] from 900 to 9000, you do get an&amp;nbsp;optimal objective value of 42,250.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 20:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Mixed-integer-Linear-Programing/m-p/316580#M1557</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2016-12-04T20:40:46Z</dc:date>
    </item>
  </channel>
</rss>

