4 cdef public Model model
7 '''frees memory of branching rule''' 11 '''initializes branching rule''' 15 '''deinitializes branching rule''' 18 def branchinitsol(self):
19 '''informs branching rule that the branch and bound process is being started ''' 22 def branchexitsol(self):
23 '''informs branching rule that the branch and bound process data is being freed''' 26 def branchexeclp(self, allowaddcons):
27 '''executes branching rule for fractional LP solution''' 31 def branchexecext(self, allowaddcons):
32 '''executes branching rule for external branching candidates ''' 36 def branchexecps(self, allowaddcons):
37 '''executes branching rule for not completely fixed pseudo solution ''' 43 cdef SCIP_RETCODE PyBranchruleCopy (SCIP* scip, SCIP_BRANCHRULE* branchrule):
46 cdef SCIP_RETCODE PyBranchruleFree (SCIP* scip, SCIP_BRANCHRULE* branchrule):
47 cdef SCIP_BRANCHRULEDATA* branchruledata
49 PyBranchrule = <Branchrule>branchruledata
50 PyBranchrule.branchfree()
51 Py_DECREF(PyBranchrule)
54 cdef SCIP_RETCODE PyBranchruleInit (SCIP* scip, SCIP_BRANCHRULE* branchrule):
55 cdef SCIP_BRANCHRULEDATA* branchruledata
57 PyBranchrule = <Branchrule>branchruledata
58 PyBranchrule.branchinit()
61 cdef SCIP_RETCODE PyBranchruleExit (SCIP* scip, SCIP_BRANCHRULE* branchrule):
62 cdef SCIP_BRANCHRULEDATA* branchruledata
64 PyBranchrule = <Branchrule>branchruledata
65 PyBranchrule.branchexit()
68 cdef SCIP_RETCODE PyBranchruleInitsol (SCIP* scip, SCIP_BRANCHRULE* branchrule):
69 cdef SCIP_BRANCHRULEDATA* branchruledata
71 PyBranchrule = <Branchrule>branchruledata
72 PyBranchrule.branchinitsol()
75 cdef SCIP_RETCODE PyBranchruleExitsol (SCIP* scip, SCIP_BRANCHRULE* branchrule):
76 cdef SCIP_BRANCHRULEDATA* branchruledata
78 PyBranchrule = <Branchrule>branchruledata
79 PyBranchrule.branchexitsol()
82 cdef SCIP_RETCODE PyBranchruleExeclp (SCIP* scip, SCIP_BRANCHRULE* branchrule, SCIP_Bool allowaddcons, SCIP_RESULT* result):
83 cdef SCIP_BRANCHRULEDATA* branchruledata
85 PyBranchrule = <Branchrule>branchruledata
86 result_dict = PyBranchrule.branchexeclp(allowaddcons)
87 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
90 cdef SCIP_RETCODE PyBranchruleExecext(SCIP* scip, SCIP_BRANCHRULE* branchrule, SCIP_Bool allowaddcons, SCIP_RESULT* result):
91 cdef SCIP_BRANCHRULEDATA* branchruledata
93 PyBranchrule = <Branchrule>branchruledata
94 result_dict = PyBranchrule.branchexecext(allowaddcons)
95 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
98 cdef SCIP_RETCODE PyBranchruleExecps(SCIP* scip, SCIP_BRANCHRULE* branchrule, SCIP_Bool allowaddcons, SCIP_RESULT* result):
99 cdef SCIP_BRANCHRULEDATA* branchruledata
101 PyBranchrule = <Branchrule>branchruledata
102 result_dict = PyBranchrule.branchexecps(allowaddcons)
103 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
SCIP_BRANCHRULEDATA * SCIPbranchruleGetData(SCIP_BRANCHRULE *branchrule)