@@ -12,7 +12,7 @@ cdef class Reader:
12
12
''' calls read method of reader'''
13
13
return {}
14
14
15
- def readerwrite (self , file , name , transformed , objsense , objscale , objoffset , binvars , intvars ,
15
+ def readerwrite (self , file , name , transformed , objsense , objoffset , objscale , binvars , intvars ,
16
16
implvars , contvars , fixedvars , startnvars , conss , maxnconss , startnconss , genericnames ):
17
17
''' calls write method of reader'''
18
18
return {}
@@ -40,7 +40,8 @@ cdef SCIP_RETCODE PyReaderRead (SCIP* scip, SCIP_READER* reader, const char* fil
40
40
41
41
cdef SCIP_RETCODE PyReaderWrite (SCIP* scip, SCIP_READER* reader, FILE* file ,
42
42
const char * name, SCIP_PROBDATA* probdata, SCIP_Bool transformed,
43
- SCIP_OBJSENSE objsense, SCIP_Real objscale, SCIP_Real objoffset,
43
+ SCIP_OBJSENSE objsense, SCIP_Real objoffset, SCIP_Real objscale,
44
+ SCIP_RATIONAL* objoffsetexact, SCIP_RATIONAL* objscaleexact,
44
45
SCIP_VAR** vars , int nvars, int nbinvars, int nintvars, int nimplvars, int ncontvars,
45
46
SCIP_VAR** fixedvars, int nfixedvars, int startnvars,
46
47
SCIP_CONS** conss, int nconss, int maxnconss, int startnconss,
@@ -58,7 +59,8 @@ cdef SCIP_RETCODE PyReaderWrite (SCIP* scip, SCIP_READER* reader, FILE* file,
58
59
PyFixedVars = [Variable.create(fixedvars[i]) for i in range (nfixedvars)]
59
60
PyConss = [Constraint.create(conss[i]) for i in range (nconss)]
60
61
PyReader = < Reader> readerdata
61
- result_dict = PyReader.readerwrite(PyFile, PyName, transformed, objsense, objscale, objoffset,
62
+ # TODO: provide rational objoffsetexact and objscaleexact
63
+ result_dict = PyReader.readerwrite(PyFile, PyName, transformed, objsense, objoffset, objscale,
62
64
PyBinVars, PyIntVars, PyImplVars, PyContVars, PyFixedVars, startnvars,
63
65
PyConss, maxnconss, startnconss, genericnames)
64
66
result[0 ] = result_dict.get(" result" , < SCIP_RESULT> result[0 ])
0 commit comments