PySCIPOpt
Python Interface to the SCIP Optimization Suite
conshdlr.pxi File Reference

base class of the Constraint Handler plugin More...

Go to the source code of this file.

Classes

class  Conshdlr
 

Functions

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

Variables

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

Detailed Description

base class of the Constraint Handler plugin

Definition in file conshdlr.pxi.

Function Documentation

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

Definition at line 95 of file conshdlr.pxi.

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.

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.

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

Definition at line 99 of file conshdlr.pxi.

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

Definition at line 36 of file conshdlr.pxi.

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

Definition at line 111 of file conshdlr.pxi.

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

Definition at line 107 of file conshdlr.pxi.

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

Definition at line 103 of file conshdlr.pxi.

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.

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.

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.

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

Definition at line 16 of file conshdlr.pxi.

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

Definition at line 24 of file conshdlr.pxi.

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.

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

Definition at line 8 of file conshdlr.pxi.

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

Definition at line 135 of file conshdlr.pxi.

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

Definition at line 131 of file conshdlr.pxi.

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

Definition at line 127 of file conshdlr.pxi.

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

Definition at line 12 of file conshdlr.pxi.

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.

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

Definition at line 20 of file conshdlr.pxi.

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.

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

Definition at line 90 of file conshdlr.pxi.

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

Definition at line 123 of file conshdlr.pxi.

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 82 of file conshdlr.pxi.

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

Definition at line 115 of file conshdlr.pxi.

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

Definition at line 76 of file conshdlr.pxi.

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

Definition at line 86 of file conshdlr.pxi.

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.

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.

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.