4 cdef public Model model
7 '''frees memory of presolver'''
11 '''initializes presolver'''
15 '''deinitializes presolver'''
19 '''informs presolver that the presolving process is being started'''
23 '''informs presolver that the presolving process is finished'''
27 '''executes presolver'''
28 print(
"python error in presolexec: this method needs to be implemented")
33 cdef SCIP_RETCODE PyPresolCopy (SCIP* scip, SCIP_PRESOL* presol) noexcept
with gil:
36 cdef SCIP_RETCODE PyPresolFree (SCIP* scip, SCIP_PRESOL* presol) noexcept
with gil:
37 cdef SCIP_PRESOLDATA* presoldata
39 PyPresol = <Presol>presoldata
44 cdef SCIP_RETCODE PyPresolInit (SCIP* scip, SCIP_PRESOL* presol) noexcept
with gil:
45 cdef SCIP_PRESOLDATA* presoldata
47 PyPresol = <Presol>presoldata
51 cdef SCIP_RETCODE PyPresolExit (SCIP* scip, SCIP_PRESOL* presol) noexcept
with gil:
52 cdef SCIP_PRESOLDATA* presoldata
54 PyPresol = <Presol>presoldata
59 cdef SCIP_RETCODE PyPresolInitpre (SCIP* scip, SCIP_PRESOL* presol) noexcept
with gil:
60 cdef SCIP_PRESOLDATA* presoldata
62 PyPresol = <Presol>presoldata
63 PyPresol.presolinitpre()
66 cdef SCIP_RETCODE PyPresolExitpre (SCIP* scip, SCIP_PRESOL* presol) noexcept
with gil:
67 cdef SCIP_PRESOLDATA* presoldata
69 PyPresol = <Presol>presoldata
70 PyPresol.presolexitpre()
73 cdef SCIP_RETCODE PyPresolExec (SCIP* scip, SCIP_PRESOL* presol, int nrounds, SCIP_PRESOLTIMING presoltiming,
74 int nnewfixedvars, int nnewaggrvars, int nnewchgvartypes, int nnewchgbds, int nnewholes,
75 int nnewdelconss, int nnewaddconss, int nnewupgdconss, int nnewchgcoefs, int nnewchgsides,
76 int* nfixedvars, int* naggrvars, int* nchgvartypes, int* nchgbds, int* naddholes,
77 int* ndelconss, int* naddconss, int* nupgdconss, int* nchgcoefs, int* nchgsides, SCIP_RESULT* result) noexcept
with gil:
78 cdef SCIP_PRESOLDATA* presoldata
80 PyPresol = <Presol>presoldata
81 result_dict = PyPresol.presolexec(nrounds, presoltiming)
82 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
83 nfixedvars[0] += result_dict.get(
"nnewfixedvars", 0)
84 naggrvars[0] += result_dict.get(
"nnewaggrvars", 0)
85 nchgvartypes[0] += result_dict.get(
"nnewchgvartypes", 0)
86 nchgbds[0] += result_dict.get(
"nnewchgbds", 0)
87 naddholes[0] += result_dict.get(
"nnewaddholes", 0)
88 ndelconss[0] += result_dict.get(
"nnewdelconss", 0)
89 naddconss[0] += result_dict.get(
"nnewaddconss", 0)
90 nupgdconss[0] += result_dict.get(
"nnewupgdconss", 0)
91 nchgcoefs[0] += result_dict.get(
"nnewchgcoefs", 0)
92 nchgsides[0] += result_dict.get(
"nnewchgsides", 0)