I am trying to run the ortools_pubcrawl.ipynb example from GitHub - GIScience/openrouteservice-examples: (Mostly) real-world examples and inspirations to use the , but I’m stuck at the first cell that uses ortools. Here is the error returned by executing that cell,
24
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-14-4141e10119f7> in <module>
14
15 if tsp_size > 0:
---> 16 routing = pywrapcp.RoutingModel(tsp_size, num_routes, start)
17 search_parameters = pywrapcp.RoutingModel.DefaultSearchParameters()
18
/usr/local/lib/python3.7/dist-packages/ortools/constraint_solver/pywrapcp.py in __init__(self, *args)
4710
4711 def __init__(self, *args):
-> 4712 _pywrapcp.RoutingModel_swiginit(self, _pywrapcp.new_RoutingModel(*args))
4713 __swig_destroy__ = _pywrapcp.delete_RoutingModel
4714
TypeError: Wrong number or type of arguments for overloaded function 'new_RoutingModel'.
Possible C/C++ prototypes are:
operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &)
operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &,operations_research::RoutingModelParameters const &)
Can anyone provide guidance as to how to get this working? Thanks!