waelrash1 / or-tools

Automatically exported from code.google.com/p/or-tools
0 stars 1 forks source link

using a vector of NodeIndex from Python #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
m = pywraprouting.RoutingModel(100, 2, [1,10],[11,21])

But I get:

Traceback (most recent call last):
  File "<pyshell#11>", line 1, in <module>
    m = pywraprouting.RoutingModel(100, 2, [1,10],[11,21])
  File "/home/nik/or-tools-read-only/src/constraint_solver/../gen/constraint_solver/pywraprouting.py", line 2224, in __init__
    this = _pywraprouting.new_RoutingModel(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function 
'new_RoutingModel'.
  Possible C/C++ prototypes are:
    operations_research::RoutingModel::RoutingModel(int,int)
    operations_research::RoutingModel::RoutingModel(int,int,std::vector< std::pair< operations_research::RoutingModel::NodeIndex,operations_research::RoutingModel::NodeIndex >,std::allocator< std::pair< operations_research::RoutingModel::NodeIndex,operations_research::RoutingModel::NodeIndex > > > const &)
    operations_research::RoutingModel::RoutingModel(int,int,std::vector< operations_research::RoutingModel::NodeIndex,std::allocator< operations_research::RoutingModel::NodeIndex > > const &,std::vector< operations_research::RoutingModel::NodeIndex,std::allocator< operations_research::RoutingModel::NodeIndex > > const &)

Original issue reported on code.google.com by laurent....@gmail.com on 9 Jan 2013 at 11:38

GoogleCodeExporter commented 9 years ago

Original comment by laurent....@gmail.com on 9 Jan 2013 at 4:23