get_linrelax
get_linrelax |
Purpose
Get the linear relaxation for a constraint.
Synopsis
function get_linrelax(ctr:cpctr, orientation:integer) : cplinrelax
Arguments
ctr
|
the constraint to relax
|
orientation
|
0 for a 'LP oriented' relaxation and 1 for a 'MIP oriented' one
|
Return value
A linear relaxation
Example
The following example shows how to get a 'MIP oriented' linear relaxation of a constraint 'ctr'.
get_linrelax(ctr,1)
Related topics