Folks,
trying to adapt the network_routing C++ example into a Python version. As I understand, the Python bindings do not use the 'BaseLNS' class but rather a specialized LNS inherits from a pure Python (object) [gleaned from steel_lns.py].
In order to build the DecisionBuilders in the network_routing example uses the contruct:
00925 DecisionBuilder* const inner_db =
00926 solver.MakePhase(decision_vars,
00927 Solver::CHOOSE_RANDOM,
00928 NewPermanentCallback(
00929 this,
00930 &NetworkRoutingSolver::EvaluateMarginalCost,
00931 &usage_costs));
Could anyone point me to the correct formulation of the 'NewPermanentCallback' part of this statement ?
Thanks a lot
/Dirk