<div dir="ltr"><font face="courier new, monospace">Hi all,</font><div><font face="courier new, monospace">I'm trying to use SOS and LotSize/SemiContinuous objects without success.</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace">I have created a very simple program (attached) containing a small problem with SOS and a small problem using LotSize objects... </font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace">The SOS test problem is the following:</font></div><div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace">max 3 * x0 + 2 * x1 + 4 * x2</font></div>
<div><font face="courier new, monospace">subject to</font></div><div><font face="courier new, monospace"> x0, x1, x2 binary</font></div><div><font face="courier new, monospace"> sos1(x0, x1, x2)</font></div>
</div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">and solving it, I get x0 = 1, x1= 1, x2 = 1 where I expected just one single 1...</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace">The LotSize/SemiContinuous test problem is the following:</font></div><div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace">min 2 * x0 + 3 * x1 + x2</font></div>
<div><font face="courier new, monospace">subject to</font></div><div><font face="courier new, monospace"> 3 * x0 + 5 * x1 + 7 * x2 <= 42</font></div><div><font face="courier new, monospace"> 4 * x0 + 3 * x1 + 2 * x2 <= 31</font></div>
<div><font face="courier new, monospace"> 2 * x0 + 1 * x1 + 5 * x2 <= 23</font></div><div><font face="courier new, monospace"> x0, x1, x2 integers [0,4]</font></div><div><font face="courier new, monospace"> x1 semi-continuous can be 0 or [3,4]</font></div>
</div><div><font face="courier new, monospace"><br></font></div><div><span style="font-family:'courier new',monospace">and solving it, I get x0 = 4, x1 = 2 where I expected x1 being 0,3 or 4</span><font face="courier new, monospace"><br>
</font></div><div><span style="font-family:'courier new',monospace"><br></span></div><div><font face="courier new, monospace">Am I doing something wrong ?</font></div><div><font face="courier new, monospace"><br></font></div>
<div><font face="courier new, monospace">Thanks in advance,</font></div><div><font face="courier new, monospace">Marco</font></div></div>