Column API#

class pyscipopt.scip.Column#

Base class holding a pointer to corresponding SCIP_COL.

getAge()#

Gets the age of the column, i.e., the total number of successive times a column was in the LP and was 0.0 in the solution.

Return type:

int

getBasisStatus()#

Gets the basis status of a column in the LP solution

Returns:

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

Return type:

str

Raises:

Exception – If SCIP returns an unknown basis status

Notes

Returns basis status “zero” for columns not in the current SCIP LP.

getLPPos()#

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

Return type:

int

getLb()#

Gets lower bound of column.

Return type:

float

getObjCoeff()#

Gets objective value coefficient of a column.

Return type:

float

getPrimsol()#

Gets the primal LP solution of a column.

Return type:

float

getUb()#

Gets upper bound of column.

Return type:

float

getVar()#

Gets variable this column represents.

Return type:

Variable

isIntegral()#

Returns whether the associated variable is of integral type (binary, integer, implicit integer).

Return type:

bool