@@ -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,8 +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 ,
44
- SCIP_RATIONAL* objoffsetexact, SCIP_RATIONAL* objscaleexact,
43
+ SCIP_OBJSENSE objsense, SCIP_Real objoffset , SCIP_Real objscale ,
44
+ SCIP_RATIONAL* objoffsetexact, SCIP_RATIONAL* objscaleexact,
45
45
SCIP_VAR** vars , int nvars, int nbinvars, int nintvars, int nimplvars,
46
46
int ncontvars, SCIP_VAR** fixedvars, int nfixedvars, int startnvars,
47
47
SCIP_CONS** conss, int nconss, int maxnconss, int startnconss,
@@ -59,7 +59,8 @@ cdef SCIP_RETCODE PyReaderWrite (SCIP* scip, SCIP_READER* reader, FILE* file,
59
59
PyFixedVars = [Variable.create(fixedvars[i]) for i in range (nfixedvars)]
60
60
PyConss = [Constraint.create(conss[i]) for i in range (nconss)]
61
61
PyReader = < Reader> readerdata
62
- 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,
63
64
PyBinVars, PyIntVars, PyImplVars, PyContVars, PyFixedVars, startnvars,
64
65
PyConss, maxnconss, startnconss, genericnames)
65
66
result[0 ] = result_dict.get(" result" , < SCIP_RESULT> result[0 ])
0 commit comments