PySCIPOpt  5.1.1
Python Interface for the SCIP Optimization Suite
pyscipopt.conshdlr Namespace Reference

Classes

class  Conshdlr
 

Functions

def consactive (self, constraint)
 
def conscheck (self, constraints, solution, checkintegrality, checklprows, printreason, completely)
 
def conscopy (self)
 
def consdeactive (self, constraint)
 
def consdelete (self, constraint)
 
def consdelvars (self, constraints)
 
def consdisable (self, constraint)
 
def consenable (self, constraint)
 
def consenfolp (self, constraints, nusefulconss, solinfeasible)
 
def consenfops (self, constraints, nusefulconss, solinfeasible, objinfeasible)
 
def consenforelax (self, solution, constraints, nusefulconss, solinfeasible)
 
def consexit (self, constraints)
 
def consexitpre (self, constraints)
 
def consexitsol (self, constraints, restart)
 
def consfree (self)
 
def consgetdivebdchgs (self)
 
def consgetnvars (self, constraint)
 
def consgetpermsymgraph (self)
 
def consgetsignedpermsymgraph (self)
 
def consgetvars (self, constraint)
 
def consinit (self, constraints)
 
def consinitlp (self, constraints)
 
def consinitpre (self, constraints)
 
def consinitsol (self, constraints)
 
def conslock (self, constraint, locktype, nlockspos, nlocksneg)
 
def consparse (self)
 
def conspresol (self, constraints, nrounds, presoltiming, nnewfixedvars, nnewaggrvars, nnewchgvartypes, nnewchgbds, nnewholes, nnewdelconss, nnewaddconss, nnewupgdconss, nnewchgcoefs, nnewchgsides, result_dict)
 
def consprint (self, constraint)
 
def consprop (self, constraints, nusefulconss, nmarkedconss, proptiming)
 
def consresprop (self)
 
def conssepalp (self, constraints, nusefulconss)
 
def conssepasol (self, constraints, nusefulconss, solution)
 
def constrans (self, sourceconstraint)
 

Variables

 consdata = SCIPconsGetData(cons)
 
 conshdlrdata = SCIPconshdlrGetData(conshdlr)
 
 constraints
 
 PyCons = getPyCons(cons)
 
 PyConshdlr = getPyConshdlr(conshdlr)
 
 PySourceCons = getPyCons(sourcecons)
 
def PyTargetCons = result_dict.get("targetcons")
 
def result_dict = PyConshdlr.constrans(PySourceCons)
 
 solution = Solution.create(scip, sol)
 

Function Documentation

◆ consactive()

def pyscipopt.conshdlr.consactive (   self,
  constraint 
)
sets activation notification method of constraint handler 

Definition at line 95 of file conshdlr.pxi.

◆ conscheck()

def pyscipopt.conshdlr.conscheck (   self,
  constraints,
  solution,
  checkintegrality,
  checklprows,
  printreason,
  completely 
)
calls feasibility check method of constraint handler 

Definition at line 71 of file conshdlr.pxi.

◆ conscopy()

def pyscipopt.conshdlr.conscopy (   self)
sets copy method of both the constraint handler and each associated constraint

Definition at line 119 of file conshdlr.pxi.

◆ consdeactive()

def pyscipopt.conshdlr.consdeactive (   self,
  constraint 
)
sets deactivation notification method of constraint handler 

Definition at line 99 of file conshdlr.pxi.

◆ consdelete()

def pyscipopt.conshdlr.consdelete (   self,
  constraint 
)
sets method of constraint handler to free specific constraint data 

Definition at line 36 of file conshdlr.pxi.

◆ consdelvars()

def pyscipopt.conshdlr.consdelvars (   self,
  constraints 
)
calls variable deletion method of constraint handler

Definition at line 111 of file conshdlr.pxi.

◆ consdisable()

def pyscipopt.conshdlr.consdisable (   self,
  constraint 
)
sets disabling notification method of constraint handler 

Definition at line 107 of file conshdlr.pxi.

◆ consenable()

def pyscipopt.conshdlr.consenable (   self,
  constraint 
)
sets enabling notification method of constraint handler 

Definition at line 103 of file conshdlr.pxi.

◆ consenfolp()

def pyscipopt.conshdlr.consenfolp (   self,
  constraints,
  nusefulconss,
  solinfeasible 
)
calls enforcing method of constraint handler for LP solution for all constraints added

Definition at line 56 of file conshdlr.pxi.

◆ consenfops()

def pyscipopt.conshdlr.consenfops (   self,
  constraints,
  nusefulconss,
  solinfeasible,
  objinfeasible 
)
calls enforcing method of constraint handler for pseudo solution for all constraints added

Definition at line 66 of file conshdlr.pxi.

◆ consenforelax()

def pyscipopt.conshdlr.consenforelax (   self,
  solution,
  constraints,
  nusefulconss,
  solinfeasible 
)
calls enforcing method of constraint handler for a relaxation solution for all constraints added

Definition at line 61 of file conshdlr.pxi.

◆ consexit()

def pyscipopt.conshdlr.consexit (   self,
  constraints 
)
calls exit method of constraint handler 

Definition at line 16 of file conshdlr.pxi.

◆ consexitpre()

def pyscipopt.conshdlr.consexitpre (   self,
  constraints 
)
informs constraint handler that the presolving is finished 

Definition at line 24 of file conshdlr.pxi.

◆ consexitsol()

def pyscipopt.conshdlr.consexitsol (   self,
  constraints,
  restart 
)
informs constraint handler that the branch and bound process data is being freed 

Definition at line 32 of file conshdlr.pxi.

◆ consfree()

def pyscipopt.conshdlr.consfree (   self)
calls destructor and frees memory of constraint handler 

Definition at line 8 of file conshdlr.pxi.

◆ consgetdivebdchgs()

def pyscipopt.conshdlr.consgetdivebdchgs (   self)
calls diving solution enforcement callback of constraint handler, if it exists 

Definition at line 135 of file conshdlr.pxi.

◆ consgetnvars()

def pyscipopt.conshdlr.consgetnvars (   self,
  constraint 
)
sets constraint variable number getter method of constraint handler 

Definition at line 131 of file conshdlr.pxi.

◆ consgetpermsymgraph()

def pyscipopt.conshdlr.consgetpermsymgraph (   self)
permutation symmetry detection graph getter callback, if it exists 

Definition at line 139 of file conshdlr.pxi.

◆ consgetsignedpermsymgraph()

def pyscipopt.conshdlr.consgetsignedpermsymgraph (   self)
signed permutation symmetry detection graph getter callback, if it exists 

Definition at line 143 of file conshdlr.pxi.

◆ consgetvars()

def pyscipopt.conshdlr.consgetvars (   self,
  constraint 
)
sets constraint variable getter method of constraint handler

Definition at line 127 of file conshdlr.pxi.

◆ consinit()

def pyscipopt.conshdlr.consinit (   self,
  constraints 
)
calls initialization method of constraint handler 

Definition at line 12 of file conshdlr.pxi.

◆ consinitlp()

def pyscipopt.conshdlr.consinitlp (   self,
  constraints 
)
calls LP initialization method of constraint handler to separate all initial active constraints 

Definition at line 44 of file conshdlr.pxi.

◆ consinitpre()

def pyscipopt.conshdlr.consinitpre (   self,
  constraints 
)
informs constraint handler that the presolving process is being started 

Definition at line 20 of file conshdlr.pxi.

◆ consinitsol()

def pyscipopt.conshdlr.consinitsol (   self,
  constraints 
)
informs constraint handler that the branch and bound process is being started 

Definition at line 28 of file conshdlr.pxi.

◆ conslock()

def pyscipopt.conshdlr.conslock (   self,
  constraint,
  locktype,
  nlockspos,
  nlocksneg 
)
variable rounding lock method of constraint handler

Definition at line 90 of file conshdlr.pxi.

◆ consparse()

def pyscipopt.conshdlr.consparse (   self)
sets constraint parsing method of constraint handler 

Definition at line 123 of file conshdlr.pxi.

◆ conspresol()

def pyscipopt.conshdlr.conspresol (   self,
  constraints,
  nrounds,
  presoltiming,
  nnewfixedvars,
  nnewaggrvars,
  nnewchgvartypes,
  nnewchgbds,
  nnewholes,
  nnewdelconss,
  nnewaddconss,
  nnewupgdconss,
  nnewchgcoefs,
  nnewchgsides,
  result_dict 
)
calls presolving method of constraint handler 

Definition at line 80 of file conshdlr.pxi.

◆ consprint()

def pyscipopt.conshdlr.consprint (   self,
  constraint 
)
sets constraint display method of constraint handler 

Definition at line 115 of file conshdlr.pxi.

◆ consprop()

def pyscipopt.conshdlr.consprop (   self,
  constraints,
  nusefulconss,
  nmarkedconss,
  proptiming 
)
calls propagation method of constraint handler 

Definition at line 76 of file conshdlr.pxi.

◆ consresprop()

def pyscipopt.conshdlr.consresprop (   self)
sets propagation conflict resolving method of constraint handler 

Definition at line 86 of file conshdlr.pxi.

◆ conssepalp()

def pyscipopt.conshdlr.conssepalp (   self,
  constraints,
  nusefulconss 
)
calls separator method of constraint handler to separate LP solution 

Definition at line 48 of file conshdlr.pxi.

◆ conssepasol()

def pyscipopt.conshdlr.conssepasol (   self,
  constraints,
  nusefulconss,
  solution 
)
calls separator method of constraint handler to separate given primal solution 

Definition at line 52 of file conshdlr.pxi.

◆ constrans()

def pyscipopt.conshdlr.constrans (   self,
  sourceconstraint 
)
sets method of constraint handler to transform constraint data into data belonging to the transformed problem 

Definition at line 40 of file conshdlr.pxi.

Variable Documentation

◆ consdata

consdata = SCIPconsGetData(cons)

Definition at line 156 of file conshdlr.pxi.

◆ conshdlrdata

conshdlrdata = SCIPconshdlrGetData(conshdlr)

Definition at line 151 of file conshdlr.pxi.

◆ constraints

constraints

Definition at line 172 of file conshdlr.pxi.

◆ PyCons

PyCons = getPyCons(cons)

Definition at line 220 of file conshdlr.pxi.

◆ PyConshdlr

PyConshdlr = getPyConshdlr(conshdlr)

Definition at line 165 of file conshdlr.pxi.

◆ PySourceCons

PySourceCons = getPyCons(sourcecons)

Definition at line 230 of file conshdlr.pxi.

◆ PyTargetCons

def PyTargetCons = result_dict.get("targetcons")

Definition at line 236 of file conshdlr.pxi.

◆ result_dict

def result_dict = PyConshdlr.constrans(PySourceCons)

Definition at line 231 of file conshdlr.pxi.

◆ solution

solution = Solution.create(scip, sol)

Definition at line 270 of file conshdlr.pxi.