You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
routing: SetAllowedVehiclesForIndex not working in C# wrappers (changed C++ signature) #4982
changed the title [-]SetAllowedVehiclesForIndex changed parameters[/-][+]routing: SetAllowedVehiclesForIndex not working in wrappers (changed parameters)[/+]on Jan 12, 2026
changed the title [-]routing: SetAllowedVehiclesForIndex not working in wrappers (changed parameters)[/-][+]routing: SetAllowedVehiclesForIndex not working in C# wrappers (changed C++ signature)[/+]on Jan 13, 2026
lperron the bug is only in c#? In Java and python it works? Are you planning to make a release with fix soon or just in April (referring the new 9.16 milestone)?
SetAllowedVehiclesForIndex
return _pywrapcp.RoutingModel_SetAllowedVehiclesForIndex(self, vehicles, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: in method 'RoutingModel_SetAllowedVehiclesForIndex', argument 2 of type 'absl::Span< int const >'
Activity
Mizux commentedon Jan 12, 2026
Need to support absl::Span in our SWIG wrapper
Add test to Routing to verify AllowedVehcileForIndex API is usable...
Check Java and Python pretty sure we will have the same kind of issue...
ref:
or-tools/ortools/constraint_solver/routing.h
Lines 1003 to 1008 in b21a132
armeniomiranda-dev commentedon Jan 12, 2026
Thanks for the explanation! Currently, this means the API doesn’t work in C# right? Is there something I could help with in the meantime?
[-]SetAllowedVehiclesForIndex changed parameters[/-][+]routing: SetAllowedVehiclesForIndex not working in wrappers (changed parameters)[/+][-]routing: SetAllowedVehiclesForIndex not working in wrappers (changed parameters)[/-][+]routing: SetAllowedVehiclesForIndex not working in C# wrappers (changed C++ signature)[/+]armeniomiranda-dev commentedon Jan 13, 2026
lperron the bug is only in c#? In Java and python it works? Are you planning to make a release with fix soon or just in April (referring the new 9.16 milestone)?
Grenby commentedon Jan 26, 2026
Python has the same problem:
Code
Error
routing(python): fix SetAllowedVehiclesForIndex (#4982)
fix: rétablit l'exécution du solveur et corrige trois bugs bloquants
fix: rétablit l'exécution du solveur et corrige trois bugs bloquants
fix: rétablit l'exécution du solveur et corrige trois bugs bloquants
Mizux commentedon Aug 24, 2026
should be fixed by #5290
fix: rétablit l'exécution du solveur et corrige trois bugs bloquants
fix: rétablit l'exécution du solveur et corrige trois bugs bloquants