<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dear Mahdi,<br>
<br>
we could probably help you if you would tell us what errors you got.<br>
<br>
Until then, here are some wild guesses: Both methods only work for
linear constraints. part_con suggests that those are partitioning
constraints, if you created them as setppc constraints, you should
use the respective method there. For the first variant, dualval and
checkbool need to be pointers to a real and a bool, respectively, it
does not look like this (normally, it would be &dualval,
&checkbool).<br>
<br>
Best,<br>
Gerald<br>
<br>
<div class="moz-cite-prefix">On 24.03.2018 11:04, Mahdi Noorizadegan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:F5274C3F-874A-49E4-8D6C-1E8A32B1C909@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Dear SCIPers,
<div class=""><br class="">
</div>
<div class="">I need to compute the reduced cost of basic
variables in the optimal solution.</div>
<div class="">How can I do it?</div>
<div class="">I tried to use <span style="font-family: Menlo;
font-size: 13px;" class="">SCIPgetDualsolLinear</span> and <span
style="font-family: Menlo; font-size: 13px;" class="">SCIPgetDualSolVal</span> .</div>
<div class="">as follows <span style="font-family: Menlo;
font-size: 13px; font-variant-ligatures: no-common-ligatures;"
class="">SCIP_CALL(SCIPgetDualSolVal(scip,part_con[</span><span
style="font-family: Menlo; font-size: 13px;
font-variant-ligatures: no-common-ligatures; color: rgb(39,
42, 216);" class="">0</span><span style="font-family: Menlo;
font-size: 13px; font-variant-ligatures: no-common-ligatures;"
class="">][</span><span style="font-family: Menlo; font-size:
13px; font-variant-ligatures: no-common-ligatures; color:
rgb(39, 42, 216);" class="">1</span><span style="font-family:
Menlo; font-size: 13px; font-variant-ligatures:
no-common-ligatures;" class="">],dualval,checkbool ));</span></div>
<div class=""><span style="font-family: Menlo; font-size: 13px;
font-variant-ligatures: no-common-ligatures;" class="">or </span><span
style="font-family: Menlo; font-size: 13px;
font-variant-ligatures: no-common-ligatures;" class="">cout<<
SCIPgetDualsolLinear(scip, part_con[</span><span
style="font-family: Menlo; font-size: 13px;
font-variant-ligatures: no-common-ligatures; color: rgb(39,
42, 216);" class="">0</span><span style="font-family: Menlo;
font-size: 13px; font-variant-ligatures: no-common-ligatures;"
class="">][</span><span style="font-family: Menlo; font-size:
13px; font-variant-ligatures: no-common-ligatures; color:
rgb(39, 42, 216);" class="">1</span><span style="font-family:
Menlo; font-size: 13px; font-variant-ligatures:
no-common-ligatures;" class="">]);</span></div>
<div class="">But it did not work and I got errors.</div>
<div class=""><br class="">
</div>
<div class="">Looking forward to haring from you,</div>
<div class="">Regards,</div>
<div class="">Mahdi </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="https://listserv.zib.de/mailman/listinfo/scip">https://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<br>
</body>
</html>