[SCIP] Slack of a dual constraint

Lukas Schürmann lschuermann at cs.uni-bonn.de
Fri Jan 29 10:51:27 CET 2021


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



More information about the Scip mailing list