Class: ORTools::RoutingIndexManager

Inherits:
Object
  • Object
show all
Defined in:
lib/or_tools/routing_index_manager.rb

Class Method Summary collapse

Class Method Details

.new(num_nodes, num_vehicles, starts, ends = nil) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/or_tools/routing_index_manager.rb', line 3

def self.new(num_nodes, num_vehicles, starts, ends = nil)
  if ends
    _new_starts_ends(num_nodes, num_vehicles, starts, ends)
  else
    _new_depot(num_nodes, num_vehicles, starts)
  end
end