original_docstring: Returns the demand of the node.
docstring: Returns the demand of the node.
docstring_tokens: Returns the demand of the node .
code: def demand_callback(from_index):
      """Returns the demand of the node."""
      # Convert from routing variable Index to demands NodeIndex.
      from_node = manager.IndexToNode(from_index)
      return data['demands'][from_node]
  
      demand_callback_index = routing.RegisterUnaryTransitCallback(
      demand_callback)
      routing.AddDimensionWithVehicleCapacity(
      demand_callback_index,
      0,  # null capacity slack
      data['vehicle_capacities'],  # vehicle maximum capacities
      True,  # start cumul to zero
      'Capacity')
code_tokens: def demand_callback ( from_index ) : from_node = manager . IndexToNode ( from_index ) return data [ 'demands' ] [ from_node ] demand_callback_index = routing . RegisterUnaryTransitCallback ( demand_callback ) routing . AddDimensionWithVehicleCapacity ( demand_callback_index , 0 , data [ 'vehicle_capacities' ] , True , 'Capacity' )
short_docstring: Returns the demand of the node.
short_docstring_tokens: Returns the demand of the node .
comment: """Returns the demand of the node."""$SEP$# Convert from routing variable Index to demands NodeIndex.$SEP$# null capacity slack$SEP$# vehicle maximum capacities$SEP$# start cumul to zero