Interface RoutesConstraintProtoOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RoutesConstraintProto, RoutesConstraintProto.Builder

@Generated public interface RoutesConstraintProtoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getTailsList

      List<Integer> getTailsList()
      repeated int32 tails = 1;
      Returns:
      A list containing the tails.
    • getTailsCount

      int getTailsCount()
      repeated int32 tails = 1;
      Returns:
      The count of tails.
    • getTails

      int getTails(int index)
      repeated int32 tails = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The tails at the given index.
    • getHeadsList

      List<Integer> getHeadsList()
      repeated int32 heads = 2;
      Returns:
      A list containing the heads.
    • getHeadsCount

      int getHeadsCount()
      repeated int32 heads = 2;
      Returns:
      The count of heads.
    • getHeads

      int getHeads(int index)
      repeated int32 heads = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The heads at the given index.
    • getLiteralsList

      List<Integer> getLiteralsList()
      repeated int32 literals = 3;
      Returns:
      A list containing the literals.
    • getLiteralsCount

      int getLiteralsCount()
      repeated int32 literals = 3;
      Returns:
      The count of literals.
    • getLiterals

      int getLiterals(int index)
      repeated int32 literals = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The literals at the given index.
    • getDemandsList

      List<Integer> getDemandsList()
       DEPRECATED. These fields are no longer used. The solver ignores them.
       
      repeated int32 demands = 4;
      Returns:
      A list containing the demands.
    • getDemandsCount

      int getDemandsCount()
       DEPRECATED. These fields are no longer used. The solver ignores them.
       
      repeated int32 demands = 4;
      Returns:
      The count of demands.
    • getDemands

      int getDemands(int index)
       DEPRECATED. These fields are no longer used. The solver ignores them.
       
      repeated int32 demands = 4;
      Parameters:
      index - The index of the element to return.
      Returns:
      The demands at the given index.
    • getCapacity

      long getCapacity()
      int64 capacity = 5;
      Returns:
      The capacity.
    • 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;
    • getDimensions

      RoutesConstraintProto.NodeExpressions 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;
    • getDimensionsCount

      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;
    • getDimensionsOrBuilderList

      List<? extends RoutesConstraintProto.NodeExpressionsOrBuilder> 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;
    • getDimensionsOrBuilder

      RoutesConstraintProto.NodeExpressionsOrBuilder 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;