public class RoutingIndexManager
extends java.lang.Object
auto starts_ends = ...; /// These are NodeIndex.
RoutingIndexManager manager(10, 4, starts_ends); // 10 nodes, 4 vehicles.
RoutingModel model(manager);
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
RoutingIndexManager(int num_nodes,
int num_vehicles,
int depot)
Creates a NodeIndex to variable index mapping for a problem containing
'num_nodes', 'num_vehicles' and the given starts and ends for each vehicle. |
RoutingIndexManager(int num_nodes,
int num_vehicles,
int[] starts,
int[] ends) |
RoutingIndexManager(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(RoutingIndexManager obj) |
long |
getEndIndex(int vehicle) |
int |
getNumberOfIndices() |
int |
getNumberOfNodes() |
int |
getNumberOfVehicles() |
long |
getStartIndex(int vehicle) |
int |
indexToNode(long index) |
long[] |
nodesToIndices(int[] nodes) |
long |
nodeToIndex(int node) |
static long |
swigRelease(RoutingIndexManager obj) |
public RoutingIndexManager(long cPtr, boolean cMemoryOwn)
public RoutingIndexManager(int num_nodes, int num_vehicles, int depot)
public RoutingIndexManager(int num_nodes, int num_vehicles, int[] starts, int[] ends)
public static long getCPtr(RoutingIndexManager obj)
public static long swigRelease(RoutingIndexManager obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public int getNumberOfNodes()
public int getNumberOfVehicles()
public int getNumberOfIndices()
public long getStartIndex(int vehicle)
public long getEndIndex(int vehicle)
public long nodeToIndex(int node)
public long[] nodesToIndices(int[] nodes)
public int indexToNode(long index)
Copyright © 2025. All rights reserved.