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;
long
int64 capacity = 5;
int
getDemands
(int index) DEPRECATED.int
DEPRECATED.DEPRECATED.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getDimensions
(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.int
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.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.int
getHeads
(int index) repeated int32 heads = 2;
int
repeated int32 heads = 2;
repeated int32 heads = 2;
int
getLiterals
(int index) repeated int32 literals = 3;
int
repeated int32 literals = 3;
repeated int32 literals = 3;
int
getTails
(int index) repeated int32 tails = 1;
int
repeated int32 tails = 1;
repeated int32 tails = 1;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RoutesConstraintProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoutesConstraintProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RoutesConstraintProto.Builder>
- Throws:
IOException
-
getTailsList
repeated int32 tails = 1;
- Specified by:
getTailsList
in interfaceRoutesConstraintProtoOrBuilder
- Returns:
- A list containing the tails.
-
getTailsCount
public int getTailsCount()repeated int32 tails = 1;
- Specified by:
getTailsCount
in interfaceRoutesConstraintProtoOrBuilder
- Returns:
- The count of tails.
-
getTails
public int getTails(int index) repeated int32 tails = 1;
- Specified by:
getTails
in 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:
getHeadsList
in interfaceRoutesConstraintProtoOrBuilder
- Returns:
- A list containing the heads.
-
getHeadsCount
public int getHeadsCount()repeated int32 heads = 2;
- Specified by:
getHeadsCount
in interfaceRoutesConstraintProtoOrBuilder
- Returns:
- The count of heads.
-
getHeads
public int getHeads(int index) repeated int32 heads = 2;
- Specified by:
getHeads
in 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:
getLiteralsList
in interfaceRoutesConstraintProtoOrBuilder
- Returns:
- A list containing the literals.
-
getLiteralsCount
public int getLiteralsCount()repeated int32 literals = 3;
- Specified by:
getLiteralsCount
in interfaceRoutesConstraintProtoOrBuilder
- Returns:
- The count of literals.
-
getLiterals
public int getLiterals(int index) repeated int32 literals = 3;
- Specified by:
getLiterals
in 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:
getDemandsList
in 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:
getDemandsCount
in 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:
getDemands
in 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:
getCapacity
in 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:
getDimensionsList
in 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:
getDimensionsCount
in 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:
getDimensions
in 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:
getDimensionsOrBuilder
in 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:
getDimensionsOrBuilderList
in 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;
-