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''' 18 def pricerinitsol(self):
19 '''informs variable pricer that the branch and bound process is being started ''' 22 def pricerexitsol(self):
23 '''informs variable pricer that the branch and bound process data is being freed''' 26 def pricerredcost(self):
27 '''calls reduced cost pricing method of variable pricer''' 28 print(
"python error in pricerredcost: this method needs to be implemented")
31 def pricerfarkas(self):
32 '''calls Farkas pricing method of variable pricer''' 37 cdef SCIP_RETCODE PyPricerCopy (SCIP* scip, SCIP_PRICER* pricer, SCIP_Bool* valid):
40 cdef SCIP_RETCODE PyPricerFree (SCIP* scip, SCIP_PRICER* pricer):
41 cdef SCIP_PRICERDATA* pricerdata
43 PyPricer = <Pricer>pricerdata
48 cdef SCIP_RETCODE PyPricerInit (SCIP* scip, SCIP_PRICER* pricer):
49 cdef SCIP_PRICERDATA* pricerdata
51 PyPricer = <Pricer>pricerdata
55 cdef SCIP_RETCODE PyPricerExit (SCIP* scip, SCIP_PRICER* pricer):
56 cdef SCIP_PRICERDATA* pricerdata
58 PyPricer = <Pricer>pricerdata
62 cdef SCIP_RETCODE PyPricerInitsol (SCIP* scip, SCIP_PRICER* pricer):
63 cdef SCIP_PRICERDATA* pricerdata
65 PyPricer = <Pricer>pricerdata
66 PyPricer.pricerinitsol()
69 cdef SCIP_RETCODE PyPricerExitsol (SCIP* scip, SCIP_PRICER* pricer):
70 cdef SCIP_PRICERDATA* pricerdata
72 PyPricer = <Pricer>pricerdata
73 PyPricer.pricerexitsol()
76 cdef SCIP_RETCODE PyPricerRedcost (SCIP* scip, SCIP_PRICER* pricer, SCIP_Real* lowerbound, SCIP_Bool* stopearly, SCIP_RESULT* result):
77 cdef SCIP_PRICERDATA* pricerdata
79 PyPricer = <Pricer>pricerdata
80 result_dict = PyPricer.pricerredcost()
81 result[0] = result_dict.get(
"result", <SCIP_RESULT>result[0])
82 lowerbound[0] = result_dict.get(
"lowerbound", <SCIP_Real>lowerbound[0])
83 stopearly[0] = result_dict.get(
"stopearly", <SCIP_Bool>stopearly[0])
86 cdef SCIP_RETCODE PyPricerFarkas (SCIP* scip, SCIP_PRICER* pricer, SCIP_RESULT* result):
87 cdef SCIP_PRICERDATA* pricerdata
89 PyPricer = <Pricer>pricerdata
90 result[0] = PyPricer.pricerfarkas().get(
"result", <SCIP_RESULT>result[0])
SCIP_PRICERDATA * SCIPpricerGetData(SCIP_PRICER *pricer)