Update routing internal doc

This commit is contained in:
Corentin Le Molgat
2021-04-15 02:29:14 +02:00
parent c0d0cebfb4
commit d68f5b4ccf
2 changed files with 2 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ def main():
print('Problem solved in ', solver.WallTime(), 'ms')
print('Memory usage: ', pywrapcp.Solver.MemoryUsage(), 'bytes')
if __name__ == '__main__':
main()
```

View File

@@ -116,6 +116,7 @@ def main():
from_node = int(manager.IndexToNode(from_index))
to_node = int(manager.IndexToNode(to_index))
return abs(to_node - from_node)
transit_callback_index = routing.RegisterTransitCallback(distance_callback)
# Define cost of each arc.