[Scip] casting and objvardata
Gerald Gamrath
gamrath at zib.de
Tue Apr 22 22:18:57 CEST 2014
Dear Shahin,
you created your variable with SCIPcreateObjVar()? Then you should use
SCIPgetObjVardata() in order to get the vardata your class specifies.
Best,
Gerald
Am 22.04.2014 11:40, schrieb Shahin Gelareh:
> Dear SCIPers
>
> I make class extending ObjVardata, let say MYObjVardata and store my
> information in an instance of this class.
>
> When I say:
>
> SCIP_VARDATA* vardata= NULL;
> vardata = SCIPvarGetData(var);
> I cannot access to the variables and the method of class in vardata
> (in Visual Studio debug mode I can only see that the content of
> vardata is correct).
> When i cast it to MYObjVardat, all the information is lost.
>
> I wonder if there is any functionality in SCIP which work as
> SCIPvarGetData for the instance of ObjVardata?
> Of any particular method which has to be implemented?
>
> Cheers
> Shahin
>
>
>
> _______________________________________________
> 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/20140422/7027ebe4/attachment.html>
More information about the Scip
mailing list