binary_block_config

binary_block_config(n_customers, n_vehicles, max_steps=None)[source]

Compute the binary encoding layout.

Parameters:
  • n_customers (int) – Number of customers (excluding depot).

  • n_vehicles (int) – Number of vehicles.

  • max_steps (int | None) – Maximum route length per vehicle. Defaults to n_customers (worst case: all customers on one vehicle).

Return type:

BinaryBlockConfig

Returns:

BinaryBlockConfig with the encoding parameters.