[Scip] Unecessary SCIP pointers in cons_*.c getter methods
Stefan Heinz
heinz at zib.de
Wed Dec 14 16:43:52 MET 2011
Hi Martin,
yes the SCIP pointer is not used in these functions. We could remove it
but probably we never will do it since it does not hurt. Or does it?
Best Stefan
On 12/13/11 15:22, Martin Bergner wrote:
> Hi all,
>
> The cons_setppc handler contains methods such as SCIPgetSetppcType or
> SCIPgetDualSolSetppc which all get passed a SCIP pointer.
>
> I don't see the pointer used anywhere in the method. Do you keep it for
> backwards compatibility or did you just forget to get rid of it?
>
> The same is actually valid for the SCIPgetDualsol Method of all
> constraint handlers which implement it (namely linear, varbound,
> knapsack, logicor and setppc). In fact, it's not even checked to be
> different from NULL.
>
> Regards,
> Martin
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list