public interface RoutesConstraintProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
long |
getCapacity()
int64 capacity = 5; |
int |
getDemands(int index)
EXPERIMENTAL.
|
int |
getDemandsCount()
EXPERIMENTAL.
|
java.util.List<java.lang.Integer> |
getDemandsList()
EXPERIMENTAL.
|
int |
getHeads(int index)
repeated int32 heads = 2; |
int |
getHeadsCount()
repeated int32 heads = 2; |
java.util.List<java.lang.Integer> |
getHeadsList()
repeated int32 heads = 2; |
int |
getLiterals(int index)
repeated int32 literals = 3; |
int |
getLiteralsCount()
repeated int32 literals = 3; |
java.util.List<java.lang.Integer> |
getLiteralsList()
repeated int32 literals = 3; |
int |
getTails(int index)
repeated int32 tails = 1; |
int |
getTailsCount()
repeated int32 tails = 1; |
java.util.List<java.lang.Integer> |
getTailsList()
repeated int32 tails = 1; |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
java.util.List<java.lang.Integer> getTailsList()
repeated int32 tails = 1;
int getTailsCount()
repeated int32 tails = 1;
int getTails(int index)
repeated int32 tails = 1;
index
- The index of the element to return.java.util.List<java.lang.Integer> getHeadsList()
repeated int32 heads = 2;
int getHeadsCount()
repeated int32 heads = 2;
int getHeads(int index)
repeated int32 heads = 2;
index
- The index of the element to return.java.util.List<java.lang.Integer> getLiteralsList()
repeated int32 literals = 3;
int getLiteralsCount()
repeated int32 literals = 3;
int getLiterals(int index)
repeated int32 literals = 3;
index
- The index of the element to return.java.util.List<java.lang.Integer> getDemandsList()
EXPERIMENTAL. The demands for each node, and the maximum capacity for each route. Note that this is currently only used for the LP relaxation and one need to add the corresponding constraint to enforce this outside of the LP. TODO(user): Ideally, we should be able to extract any dimension like these (i.e. capacity, route_length, etc..) automatically from the encoding. The classical way to encode that is to have "current_capacity" variables along the route and linear equations of the form: arc_literal => (current_capacity_tail + demand <= current_capacity_head)
repeated int32 demands = 4;
int getDemandsCount()
EXPERIMENTAL. The demands for each node, and the maximum capacity for each route. Note that this is currently only used for the LP relaxation and one need to add the corresponding constraint to enforce this outside of the LP. TODO(user): Ideally, we should be able to extract any dimension like these (i.e. capacity, route_length, etc..) automatically from the encoding. The classical way to encode that is to have "current_capacity" variables along the route and linear equations of the form: arc_literal => (current_capacity_tail + demand <= current_capacity_head)
repeated int32 demands = 4;
int getDemands(int index)
EXPERIMENTAL. The demands for each node, and the maximum capacity for each route. Note that this is currently only used for the LP relaxation and one need to add the corresponding constraint to enforce this outside of the LP. TODO(user): Ideally, we should be able to extract any dimension like these (i.e. capacity, route_length, etc..) automatically from the encoding. The classical way to encode that is to have "current_capacity" variables along the route and linear equations of the form: arc_literal => (current_capacity_tail + demand <= current_capacity_head)
repeated int32 demands = 4;
index
- The index of the element to return.long getCapacity()
int64 capacity = 5;
Copyright © 2025. All rights reserved.