<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;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Dear Benny,</p>
<p><br>
</p>
<p>Thanks a lot for your suggestion.  I found out that there was an issue with my implementation of  constraint handler class (the way z was being passed).  It seems to work fine now.</p>
<p><br>
</p>
<p>Regards</p>
<p>Sakib</p>
<p><br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Benjamin Müller <benjamin.mueller@zib.de><br>
<b>Sent:</b> Tuesday, May 30, 2017 6:28 AM<br>
<b>To:</b> sakib mondal; scip@zib.de<br>
<b>Subject:</b> Re: [SCIP] problem with objective value</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Dear Sakib,<br>
<br>
how large is the difference between what you expect and what SCIP is <br>
returning? Note that SCIP is using feasibility tolerances for deciding <br>
whether a constraint is satisfied or not. This could cause a difference <br>
in the order of 10^-6.<br>
<br>
It would be nice if you could send me your python model, in case your <br>
objective values differ quite a lot.<br>
<br>
Cheers,<br>
Benny<br>
<br>
On 05/24/2017 02:48 PM, sakib mondal wrote:<br>
> Hi,<br>
><br>
><br>
> I have a problem in which due to certain transformation, I have<br>
> rewritten the objective function as a constraint.<br>
><br>
><br>
> Original problem is max exp(cx) st constraint set C1.<br>
><br>
><br>
> I rewrite it as max z st exp(cx)=z and constraint set C1.<br>
><br>
><br>
> Scip solves it without any error or warning message. However, when I<br>
> check the objective value (model.getObjVal() ), it is always giving a<br>
> value which is different from the actual value (I compute it from the<br>
>  optimum x value).  Even if I change the problem parameters,<br>
> model.getObjVal() gives the same value.<br>
><br>
><br>
> Also checked that model.getObjVal() is same as model.getVal(z)<br>
><br>
><br>
><br>
> Wondering what could be the problem.  Thanks a  lot for the help.<br>
><br>
><br>
> Regards<br>
><br>
> Sakib<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Scip mailing list<br>
> Scip@zib.de<br>
> <a href="https://listserv.zib.de/mailman/listinfo/scip" id="LPlnk389080" previewremoved="true">
https://listserv.zib.de/mailman/listinfo/scip</a>
<div id="LPBorder_GT_14968357775800.8429867892819578" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14968357775730.94030495289816" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14968357775760.7600828073742361" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14968357775760.40040559766579187"></div>
<div id="LPTitle_14968357775760.8717832245207053" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14968357775770.6191881709057845" href="https://listserv.zib.de/mailman/listinfo/scip" target="_blank" style="text-decoration: none;">Scip Info Page - Zuse Institute Berlin</a></div>
<div id="LPMetadata_14968357775780.3822232042049716" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
listserv.zib.de</div>
<div id="LPDescription_14968357775790.9901832946059699" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the Scip Archives. Using the Scip mailing list: You can subscribe to the list, or change ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
><br>
<br>
-- <br>
______________________________<br>
Benjamin Müller<br>
Zuse Institute Berlin<br>
Takustr. 7, 14195 Berlin<br>
benjamin.mueller@zib.de<br>
+49 30 841 85-195<br>
</div>
</span></font></div>
</div>
</body>
</html>