我当时正在使用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的新手。任何帮助表示赞赏。 谢谢。
答案 0 :(得分:1)
以某种方式,您选择了7.0 beta版本,该版本破坏了API。 看:
https://github.com/google/or-tools/tree/master/ortools/constraint_solver/doc
还有