Skip to content

"Infeasible route for vehicle" error for route from previous response #1251

@joaemel

Description

@joaemel

When sending following request, vroom answers {"code": 2, "error": "Infeasible route for vehicle 33."}
However, if we do not include steps in vehicle 33, vroom returns the route passed in the request as solution.

The infeasability check is probably faulty in some way.

{
  "jobs": [],
  "shipments": [
    {
      "amount": [
        1,
        0,
        1
      ],
      "priority": 0,
      "pickup": {
        "service": 0,
        "id": 284,
        "time_windows": [
          [
            17842,
            18742
          ]
        ],
        "setup": 45,
        "description": "pickup|7682dcf2-113f-4a61-90a0-f6307855f844",
        "location": [
          12.130737,
          51.934853
        ]
      },
      "skills": [
        3,
        5
      ],
      "delivery": {
        "setup": 45,
        "id": 285,
        "description": "delivery|7682dcf2-113f-4a61-90a0-f6307855f844",
        "time_windows": [
          [
            17842,
            19869
          ]
        ],
        "service": 0,
        "location": [
          12.092393,
          51.967714
        ]
      }
    },
    {
      "delivery": {
        "description": "delivery|2ccf0c31-c9ed-4fc1-8d9d-6cf5816dbfa7",
        "time_windows": [
          [
            20538,
            23933
          ]
        ],
        "setup": 45,
        "id": 287,
        "service": 0,
        "location": [
          12.098087,
          51.97312
        ]
      },
      "priority": 0,
      "amount": [
        1,
        0,
        1
      ],
      "pickup": {
        "description": "pickup|2ccf0c31-c9ed-4fc1-8d9d-6cf5816dbfa7",
        "location": [
          11.913798,
          51.961952
        ],
        "time_windows": [
          [
            20538,
            21438
          ]
        ],
        "id": 286,
        "service": 0,
        "setup": 45
      },
      "skills": [
        3,
        5
      ]
    }
  ],
  "vehicles": [
    {
      "capacity": [
        6,
        1,
        100
      ],
      "id": 33,
      "end": [
        12.09324,
        51.95105
      ],
      "description": "7f24a42c-efc8-4688-bf64-826ed0fad753",
      "steps": [
      ],
      "start": [
        12.09324,
        51.95105
      ],
      "time_window": [
        0,
        36720
      ],
      "skills": [
        1048,
        2,
        3,
        4,
        5
      ],
      "breaks": [
        {
          "max_load": [
            0,
            0,
            0
          ],
          "id": 0,
          "time_windows": [
            [
              12420,
              20700
            ]
          ],
          "service": 2700
        }
      ],
      "speed_factor": 1
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions