PySCIPOpt  5.1.1
Python Interface for the SCIP Optimization Suite
Constraint Class Reference

Public Member Functions

def __eq__ (self, other)
 
def __get__ (self)
 
def __hash__ (self)
 
def __repr__ (self)
 
def getConshdlrName (self)
 
def isActive (self)
 
def isChecked (self)
 
def isDynamic (self)
 
def isEnforced (self)
 
def isInitial (self)
 
def isLinear (self)
 
def isLocal (self)
 
def isModifiable (self)
 
def isNonlinear (self)
 
def isOriginal (self)
 
def isPropagated (self)
 
def isRemovable (self)
 
def isSeparated (self)
 
def isStickingAtNode (self)
 

Static Public Attributes

 cons = Constraint()
 
 scip_cons
 

Detailed Description

Base class holding a pointer to corresponding SCIP_CONS

Definition at line 907 of file scip.pxi.

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __get__()

def __get__ (   self)

Definition at line 919 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsGetName().

◆ __hash__()

def __hash__ (   self)

Definition at line 989 of file scip.pxi.

References Constraint.scip_cons.

◆ __repr__()

◆ getConshdlrName()

def getConshdlrName (   self)
Return the constraint handler's name

Definition at line 984 of file scip.pxi.

References Constraint.scip_cons, SCIPconsGetHdlr(), and SCIPconshdlrGetName().

◆ isActive()

def isActive (   self)
returns True iff constraint is active in the current node

Definition at line 970 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsActive().

◆ isChecked()

def isChecked (   self)
Retrieve True if constraint should be checked for feasibility

Definition at line 942 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsChecked().

◆ isDynamic()

def isDynamic (   self)
Retrieve True if constraint is subject to aging

Definition at line 958 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsDynamic().

◆ isEnforced()

def isEnforced (   self)
Retrieve True if constraint should be enforced during node processing

Definition at line 938 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsEnforced().

◆ isInitial()

def isInitial (   self)
Retrieve True if the relaxation of the constraint should be in the initial LP

Definition at line 930 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsInitial().

◆ isLinear()

def isLinear (   self)
Retrieve True if constraint is linear

Definition at line 974 of file scip.pxi.

References Constraint.scip_cons, SCIPconsGetHdlr(), and SCIPconshdlrGetName().

◆ isLocal()

def isLocal (   self)
Retrieve True if constraint is only locally valid or not added to any (sub)problem

Definition at line 950 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsLocal().

◆ isModifiable()

def isModifiable (   self)
Retrieve True if constraint is modifiable (subject to column generation)

Definition at line 954 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsModifiable().

◆ isNonlinear()

def isNonlinear (   self)
Retrieve True if constraint is nonlinear

Definition at line 979 of file scip.pxi.

References Constraint.scip_cons, SCIPconsGetHdlr(), and SCIPconshdlrGetName().

◆ isOriginal()

def isOriginal (   self)
Retrieve whether the constraint belongs to the original problem

Definition at line 926 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsOriginal().

◆ isPropagated()

def isPropagated (   self)
Retrieve True if constraint should be propagated during node processing

Definition at line 946 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsPropagated().

◆ isRemovable()

def isRemovable (   self)
Retrieve True if constraint's relaxation should be removed from the LP due to aging or cleanup

Definition at line 962 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsRemovable().

◆ isSeparated()

def isSeparated (   self)
Retrieve True if constraint should be separated during LP processing

Definition at line 934 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsSeparated().

◆ isStickingAtNode()

def isStickingAtNode (   self)
Retrieve True if constraint is only locally valid or not added to any (sub)problem

Definition at line 966 of file scip.pxi.

References Constraint.scip_cons, and SCIPconsIsStickingAtNode().

Member Data Documentation

◆ cons

cons = Constraint()
static

Definition at line 914 of file scip.pxi.

◆ scip_cons

scip_cons
static

Definition at line 915 of file scip.pxi.


The documentation for this class was generated from the following file: