Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
java.util.List< java.lang.Integer > | getTailsList () |
int | getTailsCount () |
int | getTails (int index) |
java.util.List< java.lang.Integer > | getHeadsList () |
int | getHeadsCount () |
int | getHeads (int index) |
java.util.List< java.lang.Integer > | getLiteralsList () |
int | getLiteralsCount () |
int | getLiterals (int index) |
java.util.List< java.lang.Integer > | getDemandsList () |
int | getDemandsCount () |
int | getDemands (int index) |
long | getCapacity () |
Definition at line 7 of file RoutesConstraintProtoOrBuilder.java.
long com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getCapacity | ( | ) |
int64 capacity = 5;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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. |
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getHeads | ( | int | index | ) |
repeated int32 heads = 2;
index | The index of the element to return. |
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getHeadsCount | ( | ) |
repeated int32 heads = 2;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getHeadsList | ( | ) |
repeated int32 heads = 2;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getLiterals | ( | int | index | ) |
repeated int32 literals = 3;
index | The index of the element to return. |
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getLiteralsCount | ( | ) |
repeated int32 literals = 3;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getLiteralsList | ( | ) |
repeated int32 literals = 3;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getTails | ( | int | index | ) |
repeated int32 tails = 1;
index | The index of the element to return. |
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getTailsCount | ( | ) |
repeated int32 tails = 1;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.
java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getTailsList | ( | ) |
repeated int32 tails = 1;
Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.