Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
boolean | hasTail () |
long | getTail () |
boolean | hasHead () |
long | getHead () |
boolean | hasCapacity () |
long | getCapacity () |
boolean | hasUnitCost () |
long | getUnitCost () |
Definition at line 7 of file FlowArcProtoOrBuilder.java.
long com.google.ortools.graph.FlowArcProtoOrBuilder.getCapacity | ( | ) |
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero, it is equivalent to not including the arc in the FlowModelProto.
optional int64 capacity = 3 [default = 1];
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
long com.google.ortools.graph.FlowArcProtoOrBuilder.getHead | ( | ) |
optional int64 head = 2;
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
long com.google.ortools.graph.FlowArcProtoOrBuilder.getTail | ( | ) |
A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
optional int64 tail = 1;
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
long com.google.ortools.graph.FlowArcProtoOrBuilder.getUnitCost | ( | ) |
Cost of this arc per unit of flow. Note that it can take any positive, negative or null value.
optional int64 unit_cost = 4 [default = 0];
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasCapacity | ( | ) |
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero, it is equivalent to not including the arc in the FlowModelProto.
optional int64 capacity = 3 [default = 1];
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasHead | ( | ) |
optional int64 head = 2;
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasTail | ( | ) |
A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
optional int64 tail = 1;
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.
boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasUnitCost | ( | ) |
Cost of this arc per unit of flow. Note that it can take any positive, negative or null value.
optional int64 unit_cost = 4 [default = 0];
Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.