[SCIP] Slack of a dual constraint
Marc Pfetsch
pfetsch at mathematik.tu-darmstadt.de
Fri Jan 29 17:05:39 CET 2021
Hi Lukas,
I think you are asking for the reduced cost, since the dual rows
correspond to the primal columns. This is of course available:
SCIPgetVarRedcost(scip, var).
Best
Marc
On 29/01/2021 10:51, Lukas Schürmann wrote:
> Hi all,
>
> I was wondering if there is a SCIP function that returns the slack of a
> dual (\leq) constraint (= Rhs - Lhs).
>
> I am trying to sort my (primal) variables by that value as i am
> interested in the one with a low dual slack.
>
> Obviously, (due to the complementary slackness) the variable that are
> not 0 have a dual slack of 0, but i am also interested in the rest of
> the variables.
>
> For sure i could just calculate it by hand, but if such a function
> already exists i would like to use it.
>
> Many thanks,
>
> Lukas
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list