Class RoutesConstraintProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RoutesConstraintProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
com.google.ortools.sat.RoutesConstraintProto.Builder
- All Implemented Interfaces:
RoutesConstraintProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
RoutesConstraintProto
public static final class RoutesConstraintProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
implements RoutesConstraintProtoOrBuilder
The "VRP" (Vehicle Routing Problem) constraint. The direct graph where arc #i (from tails[i] to head[i]) is present iff literals[i] is true must satisfy this set of properties: - #incoming arcs == 1 except for node 0. - #outgoing arcs == 1 except for node 0. - for node zero, #incoming arcs == #outgoing arcs. - There are no duplicate arcs. - Self-arcs are allowed except for node 0. - There is no cycle in this graph, except through node 0. Note: Currently this constraint expects all the nodes in [0, num_nodes) to have at least one incident arc. The model will be considered invalid if it is not the case. You can add self-arc fixed to one to ignore some nodes if needed. TODO(user): It is probably possible to generalize this constraint to a no-cycle in a general graph, or a no-cycle with sum incoming <= 1 and sum outgoing <= 1 (more efficient implementation). On the other hand, having this specific constraint allow us to add specific "cuts" to a VRP problem.Protobuf type
operations_research.sat.RoutesConstraintProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllDemands(Iterable<? extends Integer> values) DEPRECATED.addAllDimensions(Iterable<? extends RoutesConstraintProto.NodeExpressions> values) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.addAllHeads(Iterable<? extends Integer> values) repeated int32 heads = 2;addAllLiterals(Iterable<? extends Integer> values) repeated int32 literals = 3;addAllTails(Iterable<? extends Integer> values) repeated int32 tails = 1;addDemands(int value) DEPRECATED.addDimensions(int index, RoutesConstraintProto.NodeExpressions value) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.addDimensions(int index, RoutesConstraintProto.NodeExpressions.Builder builderForValue) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.addDimensions(RoutesConstraintProto.NodeExpressions.Builder builderForValue) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.addDimensionsBuilder(int index) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.addHeads(int value) repeated int32 heads = 2;addLiterals(int value) repeated int32 literals = 3;addTails(int value) repeated int32 tails = 1;build()clear()int64 capacity = 5;DEPRECATED.Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.repeated int32 heads = 2;repeated int32 literals = 3;repeated int32 tails = 1;longint64 capacity = 5;intgetDemands(int index) DEPRECATED.intDEPRECATED.DEPRECATED.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDimensions(int index) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.getDimensionsBuilder(int index) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.intExpressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.getDimensionsOrBuilder(int index) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.intgetHeads(int index) repeated int32 heads = 2;intrepeated int32 heads = 2;repeated int32 heads = 2;intgetLiterals(int index) repeated int32 literals = 3;intrepeated int32 literals = 3;repeated int32 literals = 3;intgetTails(int index) repeated int32 tails = 1;intrepeated int32 tails = 1;repeated int32 tails = 1;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RoutesConstraintProto other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeDimensions(int index) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.setCapacity(long value) int64 capacity = 5;setDemands(int index, int value) DEPRECATED.setDimensions(int index, RoutesConstraintProto.NodeExpressions value) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.setDimensions(int index, RoutesConstraintProto.NodeExpressions.Builder builderForValue) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node.setHeads(int index, int value) repeated int32 heads = 2;setLiterals(int index, int value) repeated int32 literals = 3;setTails(int index, int value) repeated int32 tails = 1;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RoutesConstraintProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
mergeFrom
public RoutesConstraintProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RoutesConstraintProto.Builder>- Throws:
IOException
-
getTailsList
repeated int32 tails = 1;- Specified by:
getTailsListin interfaceRoutesConstraintProtoOrBuilder- Returns:
- A list containing the tails.
-
getTailsCount
public int getTailsCount()repeated int32 tails = 1;- Specified by:
getTailsCountin interfaceRoutesConstraintProtoOrBuilder- Returns:
- The count of tails.
-
getTails
public int getTails(int index) repeated int32 tails = 1;- Specified by:
getTailsin interfaceRoutesConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tails at the given index.
-
setTails
repeated int32 tails = 1;- Parameters:
index- The index to set the value at.value- The tails to set.- Returns:
- This builder for chaining.
-
addTails
repeated int32 tails = 1;- Parameters:
value- The tails to add.- Returns:
- This builder for chaining.
-
addAllTails
repeated int32 tails = 1;- Parameters:
values- The tails to add.- Returns:
- This builder for chaining.
-
clearTails
repeated int32 tails = 1;- Returns:
- This builder for chaining.
-
getHeadsList
repeated int32 heads = 2;- Specified by:
getHeadsListin interfaceRoutesConstraintProtoOrBuilder- Returns:
- A list containing the heads.
-
getHeadsCount
public int getHeadsCount()repeated int32 heads = 2;- Specified by:
getHeadsCountin interfaceRoutesConstraintProtoOrBuilder- Returns:
- The count of heads.
-
getHeads
public int getHeads(int index) repeated int32 heads = 2;- Specified by:
getHeadsin interfaceRoutesConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The heads at the given index.
-
setHeads
repeated int32 heads = 2;- Parameters:
index- The index to set the value at.value- The heads to set.- Returns:
- This builder for chaining.
-
addHeads
repeated int32 heads = 2;- Parameters:
value- The heads to add.- Returns:
- This builder for chaining.
-
addAllHeads
repeated int32 heads = 2;- Parameters:
values- The heads to add.- Returns:
- This builder for chaining.
-
clearHeads
repeated int32 heads = 2;- Returns:
- This builder for chaining.
-
getLiteralsList
repeated int32 literals = 3;- Specified by:
getLiteralsListin interfaceRoutesConstraintProtoOrBuilder- Returns:
- A list containing the literals.
-
getLiteralsCount
public int getLiteralsCount()repeated int32 literals = 3;- Specified by:
getLiteralsCountin interfaceRoutesConstraintProtoOrBuilder- Returns:
- The count of literals.
-
getLiterals
public int getLiterals(int index) repeated int32 literals = 3;- Specified by:
getLiteralsin interfaceRoutesConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The literals at the given index.
-
setLiterals
repeated int32 literals = 3;- Parameters:
index- The index to set the value at.value- The literals to set.- Returns:
- This builder for chaining.
-
addLiterals
repeated int32 literals = 3;- Parameters:
value- The literals to add.- Returns:
- This builder for chaining.
-
addAllLiterals
repeated int32 literals = 3;- Parameters:
values- The literals to add.- Returns:
- This builder for chaining.
-
clearLiterals
repeated int32 literals = 3;- Returns:
- This builder for chaining.
-
getDemandsList
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Specified by:
getDemandsListin interfaceRoutesConstraintProtoOrBuilder- Returns:
- A list containing the demands.
-
getDemandsCount
public int getDemandsCount()DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Specified by:
getDemandsCountin interfaceRoutesConstraintProtoOrBuilder- Returns:
- The count of demands.
-
getDemands
public int getDemands(int index) DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Specified by:
getDemandsin interfaceRoutesConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The demands at the given index.
-
setDemands
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Parameters:
index- The index to set the value at.value- The demands to set.- Returns:
- This builder for chaining.
-
addDemands
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Parameters:
value- The demands to add.- Returns:
- This builder for chaining.
-
addAllDemands
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Parameters:
values- The demands to add.- Returns:
- This builder for chaining.
-
clearDemands
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;- Returns:
- This builder for chaining.
-
getCapacity
public long getCapacity()int64 capacity = 5;- Specified by:
getCapacityin interfaceRoutesConstraintProtoOrBuilder- Returns:
- The capacity.
-
setCapacity
int64 capacity = 5;- Parameters:
value- The capacity to set.- Returns:
- This builder for chaining.
-
clearCapacity
int64 capacity = 5;- Returns:
- This builder for chaining.
-
getDimensionsList
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6;- Specified by:
getDimensionsListin interfaceRoutesConstraintProtoOrBuilder
-
getDimensionsCount
public int getDimensionsCount()Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6;- Specified by:
getDimensionsCountin interfaceRoutesConstraintProtoOrBuilder
-
getDimensions
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6;- Specified by:
getDimensionsin interfaceRoutesConstraintProtoOrBuilder
-
setDimensions
public RoutesConstraintProto.Builder setDimensions(int index, RoutesConstraintProto.NodeExpressions value) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
setDimensions
public RoutesConstraintProto.Builder setDimensions(int index, RoutesConstraintProto.NodeExpressions.Builder builderForValue) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
addDimensions
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
addDimensions
public RoutesConstraintProto.Builder addDimensions(int index, RoutesConstraintProto.NodeExpressions value) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
addDimensions
public RoutesConstraintProto.Builder addDimensions(RoutesConstraintProto.NodeExpressions.Builder builderForValue) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
addDimensions
public RoutesConstraintProto.Builder addDimensions(int index, RoutesConstraintProto.NodeExpressions.Builder builderForValue) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
addAllDimensions
public RoutesConstraintProto.Builder addAllDimensions(Iterable<? extends RoutesConstraintProto.NodeExpressions> values) Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
clearDimensions
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
removeDimensions
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
getDimensionsBuilder
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
getDimensionsOrBuilder
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6;- Specified by:
getDimensionsOrBuilderin interfaceRoutesConstraintProtoOrBuilder
-
getDimensionsOrBuilderList
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6;- Specified by:
getDimensionsOrBuilderListin interfaceRoutesConstraintProtoOrBuilder
-
addDimensionsBuilder
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
addDimensionsBuilder
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6; -
getDimensionsBuilderList
Expressions associated with the nodes of the graph, such as the load of the vehicle arriving at a node, or the time at which a vehicle arrives at a node. Expressions with the same "dimension" (such as "load" or "time") must be listed together. This field is optional. If it is set, the linear constraints of size 1 or 2 between the variables in these expressions will be used to derive cuts for this constraint. If it is not set, the solver will try to automatically derive it, from the linear constraints of size 1 or 2 in the model (this can fail in complex cases).
repeated .operations_research.sat.RoutesConstraintProto.NodeExpressions dimensions = 6;
-