This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from ortools.constraint_solver import routing_enums_pb2 | |
from ortools.constraint_solver import pywrapcp | |
def create_data_model(): | |
"""Stores the data for the problem.""" | |
data = {} | |
data['time_matrix'] = [ | |
[0, 6, 9, 8, 7, 3, 6, 2, 3, 2], | |
[6, 0, 8, 3, 2, 6, 8, 4, 8, 8], |