Query
Getter methods to inspect the problem and its data.
Graph
getNumberOfNodes
Returns the number of nodes.
getOrigin
Returns the origin node id.
getDestination
Returns the destination node id.
isDirected
Returns True if the graph is directed.
isSymmetric
Returns True if the graph is symmetric.
isGraphCyclic
Returns True if the graph is cyclic.
getName
Returns the problem name.
Objective
getInitCost
Returns the initial cost of the problem.
getObjLB
Returns the lower bound on the objective value.
getObjUB
Returns the upper bound on the objective value.
getNodeCost
Returns the cost of node i.
- i (int) — node id.
getNodeCosts
Returns the costs of all nodes.
getArcCost
Returns the cost of arc (i, j).
- i (int) — source node id.
- j (int) — target node id.
Resources
getNumRes
Returns the number of resources.
getResLB
Returns the global lower bound of a resource.
- res_id (int) — resource id.
getResUB
Returns the global upper bound of a resource.
- res_id (int) — resource id.
getResNodeLB
Returns the lower bound of a resource at a specific node.
- res_id (int) — resource id.
- node (int) — node id.
getResNodeUB
Returns the upper bound of a resource at a specific node.
- res_id (int) — resource id.
- node (int) — node id.
getResArcConsumption
Returns the consumption of a resource on arc (i, j).
- res_id (int) — resource id.
- i (int) — source node id.
- j (int) — target node id.
getResNodeConsumption
Returns the consumption of a resource at node i.
- res_id (int) — resource id.
- i (int) — node id.