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 |
| Modifier | 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) |
protected |
RoutingIndexManager(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
protected void |
finalize() |
protected 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) |
protected static long |
swigRelease(RoutingIndexManager obj) |
protected 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)
protected static long getCPtr(RoutingIndexManager obj)
protected static long swigRelease(RoutingIndexManager obj)
protected void finalize()
finalize in class java.lang.Objectpublic 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 © 2024. All rights reserved.