get_reduced_cost
get_reduced_cost |
Purpose
Get the reduced cost for a variable from a linear relaxation solver
Synopsis
function get_reduced_cost(linsolver:cplinrelaxsolver, var:cpvar) : real
function get_reduced_cost(linsolver:cplinrelaxsolver, var:cpfloatvar) : real
Arguments
linsolver
|
the linear relaxation solver
|
var
|
a CP variable
|
Return value
The reduced cost value
Example
The following example shows how to use the get_reduced_cost function.
rc := get_reduced_cost(linsolver, x)
Related topics