4 cdef public Model model
7 '''frees memory of branching rule'''
11 '''initializes branching rule'''
15 '''deinitializes branching rule'''
19 '''informs branching rule that the branch and bound process is being started '''
23 '''informs branching rule that the branch and bound process data is being freed'''
27 '''executes branching rule for fractional LP solution'''
28 raise NotImplementedError(
"branchexeclp() is a fundamental callback and should be implemented in the derived "
32 '''executes branching rule for external branching candidates '''
33 raise NotImplementedError(
"branchexecext() is a fundamental callback and should be implemented in the derived class")
36 '''executes branching rule for not completely fixed pseudo solution '''
38 raise NotImplementedError(
"branchexecps() is a fundamental callback and should be implemented in the derived class")
42 cdef SCIP_RETCODE PyBranchruleCopy (SCIP* scip, SCIP_BRANCHRULE* branchrule) noexcept
with gil:
45 cdef SCIP_RETCODE PyBranchruleFree (SCIP* scip, SCIP_BRANCHRULE* branchrule) noexcept
with gil:
46 cdef SCIP_BRANCHRULEDATA* branchruledata
48 PyBranchrule = <Branchrule>branchruledata
49 PyBranchrule.branchfree()
50 Py_DECREF(PyBranchrule)
53 cdef SCIP_RETCODE PyBranchruleInit (SCIP* scip, SCIP_BRANCHRULE* branchrule) noexcept
with gil:
54 cdef SCIP_BRANCHRULEDATA* branchruledata
56 PyBranchrule = <Branchrule>branchruledata
57 PyBranchrule.branchinit()
60 cdef SCIP_RETCODE PyBranchruleExit (SCIP* scip, SCIP_BRANCHRULE* branchrule) noexcept
with gil:
61 cdef SCIP_BRANCHRULEDATA* branchruledata
63 PyBranchrule = <Branchrule>branchruledata
64 PyBranchrule.branchexit()
67 cdef SCIP_RETCODE PyBranchruleInitsol (SCIP* scip, SCIP_BRANCHRULE* branchrule) noexcept
with gil:
68 cdef SCIP_BRANCHRULEDATA* branchruledata
70 PyBranchrule = <Branchrule>branchruledata
71 PyBranchrule.branchinitsol()
74 cdef SCIP_RETCODE PyBranchruleExitsol (SCIP* scip, SCIP_BRANCHRULE* branchrule) noexcept
with gil:
75 cdef SCIP_BRANCHRULEDATA* branchruledata
77 PyBranchrule = <Branchrule>branchruledata
78 PyBranchrule.branchexitsol()
81 cdef SCIP_RETCODE PyBranchruleExeclp (SCIP* scip, SCIP_BRANCHRULE* branchrule, SCIP_Bool allowaddcons, SCIP_RESULT* result) noexcept
with gil:
82 cdef SCIP_BRANCHRULEDATA* branchruledata
84 PyBranchrule = <Branchrule>branchruledata
85 result_dict = PyBranchrule.branchexeclp(allowaddcons)
86 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
89 cdef SCIP_RETCODE PyBranchruleExecext(SCIP* scip, SCIP_BRANCHRULE* branchrule, SCIP_Bool allowaddcons, SCIP_RESULT* result) noexcept
with gil:
90 cdef SCIP_BRANCHRULEDATA* branchruledata
92 PyBranchrule = <Branchrule>branchruledata
93 result_dict = PyBranchrule.branchexecext(allowaddcons)
94 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
97 cdef SCIP_RETCODE PyBranchruleExecps(SCIP* scip, SCIP_BRANCHRULE* branchrule, SCIP_Bool allowaddcons, SCIP_RESULT* result) noexcept
with gil:
98 cdef SCIP_BRANCHRULEDATA* branchruledata
100 PyBranchrule = <Branchrule>branchruledata
101 result_dict = PyBranchrule.branchexecps(allowaddcons)
102 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])