Row API#

class pyscipopt.scip.Row#

Base class holding a pointer to corresponding SCIP_ROW.

getAge()#

Gets the age of the row. (The consecutive times the row has been non-active in the LP).

Return type:

int

getBasisStatus()#

Gets the basis status of a row in the LP solution.

Returns:

Possible values are “lower”, “basic”, and “upper”

Return type:

str

Raises:

Exception – If SCIP returns an unknown or “zero” basis status

Notes

Returns basis status “basic” for rows not in the current SCIP LP.

getCols()#

Gets list with columns of nonzero entries

Return type:

list of Column

getConsOriginConshdlrtype()#

Returns type of constraint handler that created the row.

Return type:

str

getConstant()#

Gets constant shift of row.

Return type:

float

getDualfarkas()#

Returns the dual Farkas solution of row.

Return type:

float

getDualsol()#

Returns the dual solution of row.

Return type:

float

getLPPos()#

Gets position of row in current LP, or -1 if it is not in LP.

Return type:

int

getLhs()#

Returns the left hand side of row.

Return type:

float

getNLPNonz()#

Get number of nonzero entries in row vector that correspond to columns currently in the SCIP LP.

Return type:

int

getNNonz()#

Get number of nonzero entries in row vector.

Return type:

int

getNorm()#

Gets Euclidean norm of row vector.

Return type:

float

getOrigintype()#

Returns type of origin that created the row.

Return type:

PY_SCIP_ROWORIGINTYPE

getRhs()#

Returns the right hand side of row.

Return type:

float

getVals()#

Gets list with coefficients of nonzero entries.

Return type:

list of int

isInGlobalCutpool()#

Return TRUE iff row is a member of the global cut pool.

Return type:

bool

isIntegral()#

Returns TRUE iff the activity of the row (without the row’s constant) is always integral in a feasible solution.

Return type:

bool

isLocal()#

Returns TRUE iff the row is only valid locally.

Return type:

bool

isModifiable()#

Returns TRUE iff row is modifiable during node processing (subject to column generation).

Return type:

bool

isRemovable()#

Returns TRUE iff row is removable from the LP (due to aging or cleanup).

Return type:

bool