Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.RoutesConstraintProtoOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.sat.RoutesConstraintProtoOrBuilder:
com.google.ortools.sat.RoutesConstraintProto com.google.ortools.sat.RoutesConstraintProto.Builder

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 ()
java.util.List< com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsgetDimensionsList ()
com.google.ortools.sat.RoutesConstraintProto.NodeExpressions getDimensions (int index)
int getDimensionsCount ()
java.util.List<? extends com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsOrBuildergetDimensionsOrBuilderList ()
com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsOrBuilder getDimensionsOrBuilder (int index)

Detailed Description

Definition at line 9 of file RoutesConstraintProtoOrBuilder.java.

Member Function Documentation

◆ getCapacity()

long com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getCapacity ( )

int64 capacity = 5;

Returns
The capacity.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDemands()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getDemands ( int index)
DEPRECATED. These fields are no longer used. The solver ignores them.

repeated int32 demands = 4;

Parameters
indexThe index of the element to return.
Returns
The demands at the given index.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDemandsCount()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getDemandsCount ( )
DEPRECATED. These fields are no longer used. The solver ignores them.

repeated int32 demands = 4;

Returns
The count of demands.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDemandsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getDemandsList ( )
DEPRECATED. These fields are no longer used. The solver ignores them.

repeated int32 demands = 4;

Returns
A list containing the demands.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDimensions()

com.google.ortools.sat.RoutesConstraintProto.NodeExpressions com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDimensionsCount()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDimensionsList()

java.util.List< com.google.ortools.sat.RoutesConstraintProto.NodeExpressions > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDimensionsOrBuilder()

com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsOrBuilder com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getDimensionsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.RoutesConstraintProto.NodeExpressionsOrBuilder > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.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;

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getHeads()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getHeads ( int index)

repeated int32 heads = 2;

Parameters
indexThe index of the element to return.
Returns
The heads at the given index.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getHeadsCount()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getHeadsCount ( )

repeated int32 heads = 2;

Returns
The count of heads.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getHeadsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getHeadsList ( )

repeated int32 heads = 2;

Returns
A list containing the heads.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getLiterals()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getLiterals ( int index)

repeated int32 literals = 3;

Parameters
indexThe index of the element to return.
Returns
The literals at the given index.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getLiteralsCount()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getLiteralsCount ( )

repeated int32 literals = 3;

Returns
The count of literals.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getLiteralsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getLiteralsList ( )

repeated int32 literals = 3;

Returns
A list containing the literals.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getTails()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getTails ( int index)

repeated int32 tails = 1;

Parameters
indexThe index of the element to return.
Returns
The tails at the given index.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getTailsCount()

int com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getTailsCount ( )

repeated int32 tails = 1;

Returns
The count of tails.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.

◆ getTailsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.RoutesConstraintProtoOrBuilder.getTailsList ( )

repeated int32 tails = 1;

Returns
A list containing the tails.

Implemented in com.google.ortools.sat.RoutesConstraintProto.Builder, and com.google.ortools.sat.RoutesConstraintProto.


The documentation for this interface was generated from the following file: