4 cdef public Model model
7 '''calls destructor and frees memory of variable pricer '''
11 '''initializes variable pricer'''
15 '''calls exit method of variable pricer'''
19 '''informs variable pricer that the branch and bound process is being started '''
23 '''informs variable pricer that the branch and bound process data is being freed'''
27 '''calls reduced cost pricing method of variable pricer'''
28 raise NotImplementedError(
"pricerredcost() is a fundamental callback and should be implemented in the derived class")
31 '''calls Farkas pricing method of variable pricer'''
32 raise NotImplementedError(
"pricerfarkas() is a fundamental callback and should be implemented in the derived class")
36 cdef SCIP_RETCODE PyPricerCopy (SCIP* scip, SCIP_PRICER* pricer, SCIP_Bool* valid) noexcept
with gil:
39 cdef SCIP_RETCODE PyPricerFree (SCIP* scip, SCIP_PRICER* pricer) noexcept
with gil:
40 cdef SCIP_PRICERDATA* pricerdata
42 PyPricer = <Pricer>pricerdata
47 cdef SCIP_RETCODE PyPricerInit (SCIP* scip, SCIP_PRICER* pricer) noexcept
with gil:
48 cdef SCIP_PRICERDATA* pricerdata
50 PyPricer = <Pricer>pricerdata
54 cdef SCIP_RETCODE PyPricerExit (SCIP* scip, SCIP_PRICER* pricer) noexcept
with gil:
55 cdef SCIP_PRICERDATA* pricerdata
57 PyPricer = <Pricer>pricerdata
61 cdef SCIP_RETCODE PyPricerInitsol (SCIP* scip, SCIP_PRICER* pricer) noexcept
with gil:
62 cdef SCIP_PRICERDATA* pricerdata
64 PyPricer = <Pricer>pricerdata
65 PyPricer.pricerinitsol()
68 cdef SCIP_RETCODE PyPricerExitsol (SCIP* scip, SCIP_PRICER* pricer) noexcept
with gil:
69 cdef SCIP_PRICERDATA* pricerdata
71 PyPricer = <Pricer>pricerdata
72 PyPricer.pricerexitsol()
75 cdef SCIP_RETCODE PyPricerRedcost (SCIP* scip, SCIP_PRICER* pricer, SCIP_Real* lowerbound, SCIP_Bool* stopearly, SCIP_RESULT* result) noexcept
with gil:
76 cdef SCIP_PRICERDATA* pricerdata
78 PyPricer = <Pricer>pricerdata
79 result_dict = PyPricer.pricerredcost()
80 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
81 lowerbound[0] = result_dict.get(
"lowerbound", <SCIP_Real>lowerbound[0])
82 stopearly[0] = result_dict.get(
"stopearly", <SCIP_Bool>stopearly[0])
85 cdef SCIP_RETCODE PyPricerFarkas (SCIP* scip, SCIP_PRICER* pricer, SCIP_RESULT* result) noexcept
with gil:
86 cdef SCIP_PRICERDATA* pricerdata
88 PyPricer = <Pricer>pricerdata
89 result[0] = PyPricer.pricerfarkas().get(
"result", <SCIP_RESULT>result[0])