<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Dear Abdelkader,<br>
<br>
I undestand your confusion, because this sounds strange and I
don't see how this can happen.<br>
<br>
Do you call SCIPvarIsBinary(colVar) and SCIPvarGetType(colVar) at
the same place? The first thing the former one checks is whether
the vartype of the variable is binary (=0), in this case it should
return TRUE.<br>
<br>
Which SCIP version do you use? Did you compile SCIP in debug mode?
If not, please do so and try it again.<br>
<br>
Best,<br>
Gerald<br>
<br>
<br>
On 02.07.2014 12:01, Abdelkader Ouali wrote:<br>
</div>
<blockquote cite="mid:DUB129-W61AAF99C85098E024D92ADAB060@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Dear List,</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">In pricing process, i want to check if a transformed variable has a binary</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">type, and logically it is so, but when i use SCIPvarIsBinary(colVar),</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">it returns false ! </pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">I used SCIPvarGetType(colVar) to get the type of the variable, and it returns 0,</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">meaning that, the colVar is binary variable.</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">From the solver messsage, it shows that all</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">problems (transformed/origin) contains only binary variables</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Any explanations will be grateful</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">
</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Kind regards</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">---</pre>
<pre style="line-height: 21.30000114440918px; white-space: normal; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Abdelkader Ouali</pre>
</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="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<br>
</body>
</html>