src-d / seriate

Optimal ordering of elements in a set given their distance matrix.
Other
16 stars 11 forks source link

ortools 8 #10

Open microprediction opened 2 years ago

microprediction commented 2 years ago

Just as FYI this fails for ortools-8.0.8283 and above, seemingly

       File "/Users/petercotton/virtual-envs/parity/lib/python3.9/site-packages/seriate.py", line 35, in seriate
          routing = pywrapcp.RoutingModel(size + 1, 1, size)
        File "/Users/petercotton/virtual-envs/parity/lib/python3.9/site-packages/ortools/constraint_solver/pywrapcp.py", line 4714, in __init__
          _pywrapcp.RoutingModel_swiginit(self, _pywrapcp.new_RoutingModel(*args))
      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 &)
harper357 commented 1 year ago

I am also getting this error with ortools-9.5.2237 .