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

Classes

class  Reader
 

Functions

def readerfree (self)
 
def readerread (self, filename)
 
def readerwrite (self, file, name, transformed, objsense, objscale, objoffset, binvars, intvars, implvars, contvars, fixedvars, startnvars, conss, maxnconss, startnconss, genericnames)
 

Variables

 fd
 
list PyBinVars = [Variable.create(vars[i]) for i in range(nbinvars)]
 
list PyConss = [Constraint.create(conss[i]) for i in range(nconss)]
 
list PyContVars = [Variable.create(vars[i]) for i in range(nimplvars, ncontvars)]
 
 PyFile = os.fdopen(fd, "w", closefd=False)
 
 PyFilename = filename.decode('utf-8')
 
list PyFixedVars = [Variable.create(fixedvars[i]) for i in range(nfixedvars)]
 
list PyImplVars = [Variable.create(vars[i]) for i in range(nintvars, nimplvars)]
 
list PyIntVars = [Variable.create(vars[i]) for i in range(nbinvars, nintvars)]
 
 PyName = name.decode('utf-8')
 
 PyReader = <Reader>readerdata
 
 readerdata = SCIPreaderGetData(reader)
 
def result_dict = PyReader.readerread(PyFilename)
 

Function Documentation

◆ readerfree()

def pyscipopt.reader.readerfree (   self)
calls destructor and frees memory of reader

Definition at line 7 of file reader.pxi.

◆ readerread()

def pyscipopt.reader.readerread (   self,
  filename 
)
calls read method of reader

Definition at line 11 of file reader.pxi.

◆ readerwrite()

def pyscipopt.reader.readerwrite (   self,
  file,
  name,
  transformed,
  objsense,
  objscale,
  objoffset,
  binvars,
  intvars,
  implvars,
  contvars,
  fixedvars,
  startnvars,
  conss,
  maxnconss,
  startnconss,
  genericnames 
)
calls write method of reader

Definition at line 15 of file reader.pxi.

Variable Documentation

◆ fd

fd

Definition at line 50 of file reader.pxi.

◆ PyBinVars

list PyBinVars = [Variable.create(vars[i]) for i in range(nbinvars)]

Definition at line 53 of file reader.pxi.

◆ PyConss

list PyConss = [Constraint.create(conss[i]) for i in range(nconss)]

Definition at line 58 of file reader.pxi.

◆ PyContVars

list PyContVars = [Variable.create(vars[i]) for i in range(nimplvars, ncontvars)]

Definition at line 56 of file reader.pxi.

◆ PyFile

PyFile = os.fdopen(fd, "w", closefd=False)

Definition at line 51 of file reader.pxi.

◆ PyFilename

PyFilename = filename.decode('utf-8')

Definition at line 36 of file reader.pxi.

◆ PyFixedVars

list PyFixedVars = [Variable.create(fixedvars[i]) for i in range(nfixedvars)]

Definition at line 57 of file reader.pxi.

◆ PyImplVars

list PyImplVars = [Variable.create(vars[i]) for i in range(nintvars, nimplvars)]

Definition at line 55 of file reader.pxi.

◆ PyIntVars

list PyIntVars = [Variable.create(vars[i]) for i in range(nbinvars, nintvars)]

Definition at line 54 of file reader.pxi.

◆ PyName

PyName = name.decode('utf-8')

Definition at line 52 of file reader.pxi.

◆ PyReader

PyReader = <Reader>readerdata

Definition at line 27 of file reader.pxi.

◆ readerdata

readerdata = SCIPreaderGetData(reader)

Definition at line 26 of file reader.pxi.

◆ result_dict

def result_dict = PyReader.readerread(PyFilename)

Definition at line 37 of file reader.pxi.