[Scip] help in checking the type of transformed variables
Abdelkader Ouali
oualiaek at hotmail.fr
Wed Jul 2 16:39:22 CEST 2014
Dear Gerald,
Thank's for replaying.I found where the problem comes out,It wasn't from SCIP but some bad indexation of c++ map
I used map to index the variables by their names to get their valuesfor only binary variables using SCIPvarGetName() as index,but after, i used char * (string of characters like colvars["name_of_variable"]) to get their value,this doesn't work, pointer problem upon my guess.
Using SCIPvarIsBinary() or SCIPvarGetType() in such case return always 0
Regards
---Abdelkader Ouali
Date: Wed, 2 Jul 2014 15:59:12 +0200
From: gamrath at zib.de
To: oualiaek at hotmail.fr; scip at zib.de
Subject: Re: [Scip] help in checking the type of transformed variables
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/6b7e25c8/attachment.html>
More information about the Scip
mailing list