<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi All,</p>
<p><br>
</p>
<p>I have modeled a convex nonlinear problem using Bonmin's c&#43;&#43; interface. </p>
<p><br>
</p>
<p>The problem also has absolute value constraints of the following format,</p>
<p><br>
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: &quot;Courier New&quot;,monospace;">abs(x[i]-x[j]) &gt; threshold</span></p>
<p><br>
</p>
<p>I have modeled these absolute value constraints using the Big M approach and have introduced integer variables as below:</p>
<p><br>
</p>
<p><span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;x[i]-x[j] &#43; M*B &gt; threshold and</span></p>
<p><span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;-x[i] &#43;x[j] &#43;M*(1-B) &gt; threshold</span></p>
<p><br>
</p>
<p>where M is a large value&nbsp;(based on&nbsp;my problem and&nbsp;not random) and B is the newly introduced binary/integer variable ( Have tried&nbsp;both approaches).</p>
<p><br>
</p>
<p><br>
</p>
<p>While using a branch and bound&nbsp;algorithm, I&nbsp;printed the variable values&nbsp;for a&nbsp;particular iteration&nbsp;and see that the&nbsp;integer/binary variables have the&nbsp;values like below.</p>
<p><br>
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: &quot;Courier New&quot;,monospace;">x[20]= 0.229109</span></p>
<p><span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp; x[109]= 0.254611</span></p>
<p><br>
</p>
<p>due to which the trial point which seems to be the best is being rejected due to in- feasibility &nbsp;and the algorithm exits stating that my problem is infeasible ( which is obvious if the integer/binary variables are varied continuously)
</p>
<p><br>
</p>
<p><br>
</p>
<p>I even tried changing the&nbsp;option integer_tolerance&nbsp;as below</p>
<p><br>
</p>
<p>&nbsp;<span style="font-family: &quot;Courier New&quot;,monospace;">bonmin.options()-&gt;SetIntegerValue(&quot;bonmin.integer_tolerance&quot;,1);</span></p>
<p><br>
</p>
<p>which by default is 1e-06 but is not respected by the solver.</p>
<p><br>
</p>
<p>Could anyone comment if I am missing something or using a faulty model.</p>
<p><br>
</p>
<p>Thanks in advance for your help.</p>
<p><br>
</p>
<p>I can furnish more details of my problem if required. </p>
<p><br>
</p>
<p>Thanks and Regards,<br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><font size="4" face="Verdana">Ujwal Ramesh</font>
<div><font size="2" face="Verdana">Graduate Student,</font></div>
<div><font size="2" face="Verdana">University Of Cincinnati</font></div>
<div><font size="2" face="Verdana">Ph: &#43;1-513-302-4771</font></div>
</div>
</div>
</div>
</body>
</html>