Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
boolean | hasId () |
long | getId () |
boolean | hasSupply () |
long | getSupply () |
Definition at line 7 of file FlowNodeProtoOrBuilder.java.
long com.google.ortools.graph.FlowNodeProtoOrBuilder.getId | ( | ) |
The ids must be non-negative (>= 0). They should be dense for good performance. Note that it is not mandatory to include nodes with no supply in a FlowModelProto.
optional int64 id = 1;
Implemented in com.google.ortools.graph.FlowNodeProto.Builder, and com.google.ortools.graph.FlowNodeProto.
long com.google.ortools.graph.FlowNodeProtoOrBuilder.getSupply | ( | ) |
The supply can be positive or negative in which case it means demand. The sum of the supplies over all nodes must always be 0.
optional int64 supply = 2 [default = 0];
Implemented in com.google.ortools.graph.FlowNodeProto.Builder, and com.google.ortools.graph.FlowNodeProto.
boolean com.google.ortools.graph.FlowNodeProtoOrBuilder.hasId | ( | ) |
The ids must be non-negative (>= 0). They should be dense for good performance. Note that it is not mandatory to include nodes with no supply in a FlowModelProto.
optional int64 id = 1;
Implemented in com.google.ortools.graph.FlowNodeProto.Builder, and com.google.ortools.graph.FlowNodeProto.
boolean com.google.ortools.graph.FlowNodeProtoOrBuilder.hasSupply | ( | ) |
The supply can be positive or negative in which case it means demand. The sum of the supplies over all nodes must always be 0.
optional int64 supply = 2 [default = 0];
Implemented in com.google.ortools.graph.FlowNodeProto.Builder, and com.google.ortools.graph.FlowNodeProto.