[SCIP] Variable value at node
Gerald Gamrath
gamrath at zib.de
Mon Feb 20 10:04:44 CET 2017
Hi Mahdi,
you already have the correct method: SCIPgetSolVal. The documentation
for its second parameter sol says "primal solution, or NULL for current
LP/pseudo solution". So if you supply a solution, you get the value of
the variable in that solution. For example, you could ask for the
incumbent via SCIPgetBestSol() and pass it to the method.
However, if you pass NULL as solution, you will get the value of the
variable in the current LP relaxation solution (if the LP was already
solved at the current node).
Best,
Gerald
Am 17.02.2017 um 13:13 schrieb Mahdi Noorizadegan:
> Hi,
>
> How can I get the value of a specific binary variable at current node
> of the branch-and-bound tree when I am solving the problem
> via the branch-and-price method?
> I guess “SCIPgetSolVal” gives the value of variables for the best
> integer solution.
> Right?
>
> Regards,
> Mahdi
>
>
> _______________________________________________
> 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/20170220/0cb0925d/attachment.html>
More information about the Scip
mailing list