NotImplementedError:重载函数“ new_RoutingModel”的参数数目或类型错误

时间:2019-03-08 10:50:39

标签: python django routing or-tools

我当时正在使用django开发的Web应用程序制作路由优化程序,该程序运行正常,但由于某些更改,我猜想我弄错了死记硬背的代码,它向我显示以下错误:

File "/home/chirag/chirag/smartlogistics/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3191, in __init__
this = _pywrapcp.new_RoutingModel(*args)
NotImplementedError: 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 &)

我无法弄清楚问题,我是django的新手。任何帮助表示赞赏。 谢谢。

1 个答案:

答案 0 :(得分:1)