How to get ortools to return cost?

Viewed 149
1 Answers

You can retrieve it using assignment.ObjectiveValue() (in Python)

ps: on master all VRP samples should have the objective cost in the print function ;)

Related