PySCIPOpt  4.3.0
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 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 842 of file scip.pyx.

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __get__()

def __get__ (   self)

Definition at line 854 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsGetName().

◆ __hash__()

def __hash__ (   self)

Definition at line 919 of file scip.pyx.

References Constraint.scip_cons.

◆ __repr__()

◆ isActive()

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

Definition at line 905 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsActive().

◆ isChecked()

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

Definition at line 877 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsChecked().

◆ isDynamic()

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

Definition at line 893 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsDynamic().

◆ isEnforced()

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

Definition at line 873 of file scip.pyx.

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 865 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsInitial().

◆ isLinear()

def isLinear (   self)
Retrieve True if constraint is linear

Definition at line 909 of file scip.pyx.

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 885 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsLocal().

◆ isModifiable()

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

Definition at line 889 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsModifiable().

◆ isNonlinear()

def isNonlinear (   self)
Retrieve True if constraint is nonlinear

Definition at line 914 of file scip.pyx.

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

◆ isOriginal()

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

Definition at line 861 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsOriginal().

◆ isPropagated()

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

Definition at line 881 of file scip.pyx.

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 897 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsRemovable().

◆ isSeparated()

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

Definition at line 869 of file scip.pyx.

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 901 of file scip.pyx.

References Constraint.scip_cons, and SCIPconsIsStickingAtNode().

Member Data Documentation

◆ cons

cons = Constraint()
static

Definition at line 849 of file scip.pyx.

◆ scip_cons

scip_cons
static

Definition at line 850 of file scip.pyx.


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