[SCIP] Dual value of constraints
Gerald Gamrath
gamrath at zib.de
Sat Mar 24 11:20:37 CET 2018
Dear Mahdi,
we could probably help you if you would tell us what errors you got.
Until then, here are some wild guesses: Both methods only work for
linear constraints. part_con suggests that those are partitioning
constraints, if you created them as setppc constraints, you should use
the respective method there. For the first variant, dualval and
checkbool need to be pointers to a real and a bool, respectively, it
does not look like this (normally, it would be &dualval, &checkbool).
Best,
Gerald
On 24.03.2018 11:04, Mahdi Noorizadegan wrote:
> Dear SCIPers,
>
> I need to compute the reduced cost of basic variables in the optimal
> solution.
> How can I do it?
> I tried to use SCIPgetDualsolLinear and SCIPgetDualSolVal .
> as follows
> SCIP_CALL(SCIPgetDualSolVal(scip,part_con[0][1],dualval,checkbool ));
> or cout<< SCIPgetDualsolLinear(scip, part_con[0][1]);
> But it did not work and I got errors.
>
> Looking forward to haring from you,
> Regards,
> Mahdi
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20180324/8072ba9a/attachment.html>
More information about the Scip
mailing list