![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
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
Definition at line 1484 of file RoutesConstraintProto.java.
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addAllDemands | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
| values | The demands to add. |
Definition at line 2144 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addAllDimensions | ( | java.lang.Iterable<? extends com.google.ortools.sat.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;
Definition at line 2457 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addAllHeads | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 heads = 2;
| values | The heads to add. |
Definition at line 1952 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addAllLiterals | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 literals = 3;
| values | The literals to add. |
Definition at line 2036 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addAllTails | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 tails = 1;
| values | The tails to add. |
Definition at line 1868 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addDemands | ( | int | value | ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
| value | The demands to add. |
Definition at line 2127 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addDimensions | ( | com.google.ortools.sat.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;
Definition at line 2348 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addDimensions | ( | com.google.ortools.sat.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;
Definition at line 2405 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addDimensions | ( | int | index, |
| com.google.ortools.sat.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;
Definition at line 2376 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addDimensions | ( | int | index, |
| com.google.ortools.sat.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;
Definition at line 2431 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto.NodeExpressions.Builder com.google.ortools.sat.RoutesConstraintProto.Builder.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;
Definition at line 2598 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto.NodeExpressions.Builder com.google.ortools.sat.RoutesConstraintProto.Builder.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. 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;
Definition at line 2617 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addHeads | ( | int | value | ) |
repeated int32 heads = 2;
| value | The heads to add. |
Definition at line 1939 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addLiterals | ( | int | value | ) |
repeated int32 literals = 3;
| value | The literals to add. |
Definition at line 2023 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.addTails | ( | int | value | ) |
repeated int32 tails = 1;
| value | The tails to add. |
Definition at line 1855 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto com.google.ortools.sat.RoutesConstraintProto.Builder.build | ( | ) |
Definition at line 1542 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto com.google.ortools.sat.RoutesConstraintProto.Builder.buildPartial | ( | ) |
Definition at line 1551 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.clear | ( | ) |
Definition at line 1512 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.clearCapacity | ( | ) |
int64 capacity = 5;
Definition at line 2193 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.clearDemands | ( | ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
Definition at line 2161 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.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;
Definition at line 2484 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.clearHeads | ( | ) |
repeated int32 heads = 2;
Definition at line 1965 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.clearLiterals | ( | ) |
repeated int32 literals = 3;
Definition at line 2049 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.clearTails | ( | ) |
repeated int32 tails = 1;
Definition at line 1881 of file RoutesConstraintProto.java.
| long com.google.ortools.sat.RoutesConstraintProto.Builder.getCapacity | ( | ) |
int64 capacity = 5;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2174 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto com.google.ortools.sat.RoutesConstraintProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 1537 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getDemands | ( | int | index | ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
| index | The index of the element to return. |
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2096 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getDemandsCount | ( | ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2084 of file RoutesConstraintProto.java.
| java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProto.Builder.getDemandsList | ( | ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2072 of file RoutesConstraintProto.java.
|
static |
Definition at line 1489 of file RoutesConstraintProto.java.
| com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.RoutesConstraintProto.Builder.getDescriptorForType | ( | ) |
Definition at line 1532 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto.NodeExpressions com.google.ortools.sat.RoutesConstraintProto.Builder.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. 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;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2271 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto.NodeExpressions.Builder com.google.ortools.sat.RoutesConstraintProto.Builder.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 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;
Definition at line 2534 of file RoutesConstraintProto.java.
| java.util.List< com.google.ortools.sat.RoutesConstraintProto.NodeExpressions.Builder > com.google.ortools.sat.RoutesConstraintProto.Builder.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;
Definition at line 2638 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.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;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2249 of file RoutesConstraintProto.java.
| java.util.List< com.google.ortools.sat.RoutesConstraintProto.NodeExpressions > com.google.ortools.sat.RoutesConstraintProto.Builder.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;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2227 of file RoutesConstraintProto.java.
| com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsOrBuilder com.google.ortools.sat.RoutesConstraintProto.Builder.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 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;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2553 of file RoutesConstraintProto.java.
| java.util.List<? extends com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsOrBuilder > com.google.ortools.sat.RoutesConstraintProto.Builder.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;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2576 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getHeads | ( | int | index | ) |
repeated int32 heads = 2;
| index | The index of the element to return. |
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1916 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getHeadsCount | ( | ) |
repeated int32 heads = 2;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1908 of file RoutesConstraintProto.java.
| java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProto.Builder.getHeadsList | ( | ) |
repeated int32 heads = 2;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1900 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getLiterals | ( | int | index | ) |
repeated int32 literals = 3;
| index | The index of the element to return. |
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 2000 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getLiteralsCount | ( | ) |
repeated int32 literals = 3;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1992 of file RoutesConstraintProto.java.
| java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProto.Builder.getLiteralsList | ( | ) |
repeated int32 literals = 3;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1984 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getTails | ( | int | index | ) |
repeated int32 tails = 1;
| index | The index of the element to return. |
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1832 of file RoutesConstraintProto.java.
| int com.google.ortools.sat.RoutesConstraintProto.Builder.getTailsCount | ( | ) |
repeated int32 tails = 1;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1824 of file RoutesConstraintProto.java.
| java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProto.Builder.getTailsList | ( | ) |
repeated int32 tails = 1;
Implements com.google.ortools.sat.RoutesConstraintProtoOrBuilder.
Definition at line 1816 of file RoutesConstraintProto.java.
|
protected |
Definition at line 1495 of file RoutesConstraintProto.java.
| final boolean com.google.ortools.sat.RoutesConstraintProto.Builder.isInitialized | ( | ) |
Definition at line 1685 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.mergeFrom | ( | com.google.ortools.sat.RoutesConstraintProto | other | ) |
Definition at line 1604 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
| com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 1690 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 1595 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.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. 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;
Definition at line 2509 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setCapacity | ( | long | value | ) |
int64 capacity = 5;
| value | The capacity to set. |
Definition at line 2182 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setDemands | ( | int | index, |
| int | value ) |
DEPRECATED. These fields are no longer used. The solver ignores them.
repeated int32 demands = 4;
| index | The index to set the value at. |
| value | The demands to set. |
Definition at line 2109 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setDimensions | ( | int | index, |
| com.google.ortools.sat.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;
Definition at line 2293 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setDimensions | ( | int | index, |
| com.google.ortools.sat.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;
Definition at line 2322 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setHeads | ( | int | index, |
| int | value ) |
repeated int32 heads = 2;
| index | The index to set the value at. |
| value | The heads to set. |
Definition at line 1925 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setLiterals | ( | int | index, |
| int | value ) |
repeated int32 literals = 3;
| index | The index to set the value at. |
| value | The literals to set. |
Definition at line 2009 of file RoutesConstraintProto.java.
| Builder com.google.ortools.sat.RoutesConstraintProto.Builder.setTails | ( | int | index, |
| int | value ) |
repeated int32 tails = 1;
| index | The index to set the value at. |
| value | The tails to set. |
Definition at line 1841 of file RoutesConstraintProto.java.