DSIMA
 All Classes Namespaces Files Functions Variables
ScipSolver Class Reference
Inheritance diagram for ScipSolver:
Collaboration diagram for ScipSolver:

Public Member Functions

def __init__
 Constructor. More...
 
def solve
 
def isFeasible
 
def isOptimal
 
def objectiveValue
 
def variableValue
 

Public Attributes

 lp
 Binary equal to True if the solver writes the LP problem file. More...
 
 timeLimit
 Time limit in seconds. More...
 
 maxTrials
 Maximum calling trials of the solver. More...
 
 debugInfo
 

Private Member Functions

def _parseSolution
 Parse the solution file. More...
 

Private Attributes

 _sol
 Solution dictionary. More...
 
 _scip
 Path to the SCIP binary. More...
 

Constructor & Destructor Documentation

def __init__ (   self,
  scipBin = '../scip',
  lp = False,
  timeLimit = 5*60,
  maxTrials = 2 
)

Constructor.

Parameters
scipBinPath to the SCIP binary.
lpBinary equal to True if the solver writes the LP problem file.
timeLimitTime limit in seconds
maxTrialsMaximum calling trials of the solver.

Member Function Documentation

def _parseSolution (   self,
  filePath 
)
private

Parse the solution file.

Parameters
filePathPath to the solution file.
def isFeasible (   self)
def isOptimal (   self)
def objectiveValue (   self)
def solve (   self,
  model,
  solution,
  cwd = "" 
)
def variableValue (   self,
  variableName = 'x' 
)

Member Data Documentation

_scip
private

Path to the SCIP binary.

_sol
private

Solution dictionary.

debugInfo
lp

Binary equal to True if the solver writes the LP problem file.

maxTrials

Maximum calling trials of the solver.

timeLimit

Time limit in seconds.


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