Model Class Reference
Public Member Functions
def __dealloc__ (self)
def __eq__ (self, other)
def __hash__ (self)
def __init__ (self, problemName='model', defaultPlugins=True, Model, sourceModel=None, origcopy=False, globalcopy=True, enablepricing=False, createscip=True,
threadsafe=False)
def activateBenders (self, Benders, benders, int, nsubproblems)
def addBendersSubproblem (self, Benders, benders, subproblem)
def addCons (self, cons, name='', initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, modifiable=False, dynamic=False,
removable=False, stickingatnode=False)
def addConsAnd (self, vars, resvar, name="ANDcons", initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, modifiable=False,
dynamic=False, removable=False, stickingatnode=False)
def addConsCardinality (self, consvars, cardval, indvars=None, weights=None, name="CardinalityCons", initial=True, separate=True, enforce=True, check=True,
propagate=True, local=False, dynamic=False, removable=False, stickingatnode=False)
def addConsCoeff (self, Constraint, cons, Variable, var, coeff)
def addConsIndicator (self, cons, binvar=None, activeone=True, name="IndicatorCons", initial=True, separate=True, enforce=True, check=True, propagate=True,
local=False, dynamic=False, removable=False, stickingatnode=False)
def addConsLocal (self, Constraint, cons, Node, validnode=None)
def addConsNode (self, Node, node, Constraint, cons, Node, validnode=None)
def addConsOr (self, vars, resvar, name="ORcons", initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, modifiable=False,
dynamic=False, removable=False, stickingatnode=False)
def addConss (self, conss, name='', initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, modifiable=False, dynamic=False,
removable=False, stickingatnode=False)
def addConsSOS1 (self, vars, weights=None, name="SOS1cons", initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, dynamic=False,
removable=False, stickingatnode=False)
def addConsSOS2 (self, vars, weights=None, name="SOS2cons", initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, dynamic=False,
removable=False, stickingatnode=False)
def addConsXor (self, vars, rhsvar, name="XORcons", initial=True, separate=True, enforce=True, check=True, propagate=True, local=False, modifiable=False,
dynamic=False, removable=False, stickingatnode=False)
def addCut (self, Row, cut, not, None, forcecut=False)
def addObjoffset (self, offset, solutions=False)
def addPoolCut (self, Row, row, not, None)
def addPyCons (self, Constraint, cons)
def addRowDive (self, Row, row)
def addSol (self, Solution, solution, free=True)
def addVar (self, name='', vtype='C', lb=0.0, ub=None, obj=0.0, pricedVar=False)
def addVarLocks (self, Variable, var, nlocksdown, nlocksup)
def addVarSOS1 (self, Constraint, cons, Variable, var, weight)
def addVarSOS2 (self, Constraint, cons, Variable, var, weight)
def addVarToRow (self, Row, row, not, None, Variable, var, not, None, value)
def appendVarSOS1 (self, Constraint, cons, Variable, var)
def appendVarSOS2 (self, Constraint, cons, Variable, var)
def applyCutsProbing (self)
def backtrackProbing (self, probingdepth)
def branchVar (self, variable)
def branchVarVal (self, variable, value)
def cacheRowExtensions (self, Row, row, not, None)
def calcChildEstimate (self, Variable, variable, targetvalue)
def calcNodeselPriority (self, Variable, variable, branchdir, targetvalue)
def catchEvent (self, eventtype, Eventhdlr, eventhdlr)
def catchRowEvent (self, Row, row, eventtype, Eventhdlr, eventhdlr)
def catchVarEvent (self, Variable, var, eventtype, Eventhdlr, eventhdlr)
def checkBendersSubproblemOptimality (self, Solution, solution, probnumber, Benders, benders=None)
def checkQuadraticNonlinear (self, Constraint, cons)
def checkSol (self, Solution, solution, printreason=True, completely=False, checkbounds=True, checkintegrality=True, checklprows=True, original=False)
def chgLhs (self, Constraint, cons, lhs)
def chgReoptObjective (self, coeffs, sense='minimize')
def chgRhs (self, Constraint, cons, rhs)
def chgRowLhsDive (self, Row, row, newlhs)
def chgRowRhsDive (self, Row, row, newrhs)
评论5