Java Reference

Java Reference

IntervalConstraintProtoOrBuilder

Detailed Description

Definition at line 6 of file IntervalConstraintProtoOrBuilder.java.

Public Member Functions

int getStart ()
 int32 start = 1; More...
 
int getEnd ()
 int32 end = 2; More...
 
int getSize ()
 int32 size = 3; More...
 
boolean hasStartView ()
 
com.google.ortools.sat.LinearExpressionProto getStartView ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartViewOrBuilder ()
 
boolean hasEndView ()
 .operations_research.sat.LinearExpressionProto end_view = 5; More...
 
com.google.ortools.sat.LinearExpressionProto getEndView ()
 .operations_research.sat.LinearExpressionProto end_view = 5; More...
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndViewOrBuilder ()
 .operations_research.sat.LinearExpressionProto end_view = 5; More...
 
boolean hasSizeView ()
 .operations_research.sat.LinearExpressionProto size_view = 6; More...
 
com.google.ortools.sat.LinearExpressionProto getSizeView ()
 .operations_research.sat.LinearExpressionProto size_view = 6; More...
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeViewOrBuilder ()
 .operations_research.sat.LinearExpressionProto size_view = 6; More...
 

Member Function Documentation

◆ getEnd()

int getEnd ( )

int32 end = 2;

Returns
The end.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getEndView()

.operations_research.sat.LinearExpressionProto end_view = 5;

Returns
The endView.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getEndViewOrBuilder()

.operations_research.sat.LinearExpressionProto end_view = 5;

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getSize()

int getSize ( )

int32 size = 3;

Returns
The size.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getSizeView()

.operations_research.sat.LinearExpressionProto size_view = 6;

Returns
The sizeView.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getSizeViewOrBuilder()

.operations_research.sat.LinearExpressionProto size_view = 6;

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getStart()

int getStart ( )

int32 start = 1;

Returns
The start.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getStartView()

EXPERIMENTAL: This will become the new way to specify an interval.
Depending on the parameters, the presolve will convert the old way to the
new way. Do not forget to add an associated linear constraint if you use
this directly.
If any of this field is set, then all must be set and the ones above will
be ignored.
IMPORTANT: For now, this constraint do not enforce any relations on the
view, and a linear constraint must be added together with this to enforce
enforcement => start_view + size_view == end_view. An enforcement =>
size_view >=0 might also be needed.
IMPORTANT: For now, we just support affine relation. We could easily
create an intermediate variable to support full linear expression, but this
isn't done currently.

.operations_research.sat.LinearExpressionProto start_view = 4;

Returns
The startView.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ getStartViewOrBuilder()

EXPERIMENTAL: This will become the new way to specify an interval.
Depending on the parameters, the presolve will convert the old way to the
new way. Do not forget to add an associated linear constraint if you use
this directly.
If any of this field is set, then all must be set and the ones above will
be ignored.
IMPORTANT: For now, this constraint do not enforce any relations on the
view, and a linear constraint must be added together with this to enforce
enforcement => start_view + size_view == end_view. An enforcement =>
size_view >=0 might also be needed.
IMPORTANT: For now, we just support affine relation. We could easily
create an intermediate variable to support full linear expression, but this
isn't done currently.

.operations_research.sat.LinearExpressionProto start_view = 4;

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ hasEndView()

boolean hasEndView ( )

.operations_research.sat.LinearExpressionProto end_view = 5;

Returns
Whether the endView field is set.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ hasSizeView()

boolean hasSizeView ( )

.operations_research.sat.LinearExpressionProto size_view = 6;

Returns
Whether the sizeView field is set.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.

◆ hasStartView()

boolean hasStartView ( )
EXPERIMENTAL: This will become the new way to specify an interval.
Depending on the parameters, the presolve will convert the old way to the
new way. Do not forget to add an associated linear constraint if you use
this directly.
If any of this field is set, then all must be set and the ones above will
be ignored.
IMPORTANT: For now, this constraint do not enforce any relations on the
view, and a linear constraint must be added together with this to enforce
enforcement => start_view + size_view == end_view. An enforcement =>
size_view >=0 might also be needed.
IMPORTANT: For now, we just support affine relation. We could easily
create an intermediate variable to support full linear expression, but this
isn't done currently.

.operations_research.sat.LinearExpressionProto start_view = 4;

Returns
Whether the startView field is set.

Implemented in IntervalConstraintProto.Builder, and IntervalConstraintProto.


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