[Scip] help in checking the type of transformed variables
Gerald Gamrath
gamrath at zib.de
Wed Jul 2 15:59:12 CEST 2014
Dear Abdelkader,
I undestand your confusion, because this sounds strange and I don't see
how this can happen.
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.
Which SCIP version do you use? Did you compile SCIP in debug mode? If
not, please do so and try it again.
Best,
Gerald
On 02.07.2014 12:01, Abdelkader Ouali wrote:
> Dear List,
> In pricing process, i want to check if a transformed variable has a binary
> type, and logically it is so, but when i use SCIPvarIsBinary(colVar),
> it returns false !
> I used SCIPvarGetType(colVar) to get the type of the variable, and it returns 0,
> meaning that, the colVar is binary variable.
> From the solver messsage, it shows that all
> problems (transformed/origin) contains only binary variables
> Any explanations will be grateful
> Kind regards
> ---
> Abdelkader Ouali
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20140702/3215a53c/attachment.html>
More information about the Scip
mailing list