Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.CumulativeConstraintProto.Builder Class Reference
Inheritance diagram for com.google.ortools.sat.CumulativeConstraintProto.Builder:
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.CumulativeConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.CumulativeConstraintProto build ()
 
com.google.ortools.sat.CumulativeConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.CumulativeConstraintProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasCapacity ()
 
com.google.ortools.sat.LinearExpressionProto getCapacity ()
 
Builder setCapacity (com.google.ortools.sat.LinearExpressionProto value)
 
Builder setCapacity (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder mergeCapacity (com.google.ortools.sat.LinearExpressionProto value)
 
Builder clearCapacity ()
 
com.google.ortools.sat.LinearExpressionProto.Builder getCapacityBuilder ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getCapacityOrBuilder ()
 
java.util.List< java.lang.Integer > getIntervalsList ()
 
int getIntervalsCount ()
 
int getIntervals (int index)
 
Builder setIntervals (int index, int value)
 
Builder addIntervals (int value)
 
Builder addAllIntervals (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearIntervals ()
 
java.util.List< com.google.ortools.sat.LinearExpressionProtogetDemandsList ()
 
int getDemandsCount ()
 
com.google.ortools.sat.LinearExpressionProto getDemands (int index)
 
Builder setDemands (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder setDemands (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addDemands (com.google.ortools.sat.LinearExpressionProto value)
 
Builder addDemands (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder addDemands (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addDemands (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addAllDemands (java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
 
Builder clearDemands ()
 
Builder removeDemands (int index)
 
com.google.ortools.sat.LinearExpressionProto.Builder getDemandsBuilder (int index)
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getDemandsOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetDemandsOrBuilderList ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addDemandsBuilder ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addDemandsBuilder (int index)
 
java.util.List< com.google.ortools.sat.LinearExpressionProto.BuildergetDemandsBuilderList ()
 
- Public Member Functions inherited from com.google.ortools.sat.CumulativeConstraintProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

The sum of the demands of the intervals at each interval point cannot exceed
a capacity. Note that intervals are interpreted as [start, end) and as
such intervals like [2,3) and [3,4) do not overlap for the point of view of
this constraint. Moreover, intervals of size zero are ignored.

All demands must not contain any negative value in their domains. This is
checked at validation. The capacity can currently contains negative values,
but it will be propagated to >= 0 right away.

Protobuf type operations_research.sat.CumulativeConstraintProto

Definition at line 392 of file CumulativeConstraintProto.java.

Member Function Documentation

◆ addAllDemands()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addAllDemands ( java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1016 of file CumulativeConstraintProto.java.

◆ addAllIntervals()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addAllIntervals ( java.lang.Iterable<? extends java.lang.Integer > values)

repeated int32 intervals = 2;

Parameters
valuesThe intervals to add.
Returns
This builder for chaining.

Definition at line 819 of file CumulativeConstraintProto.java.

◆ addDemands() [1/4]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands ( com.google.ortools.sat.LinearExpressionProto value)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 939 of file CumulativeConstraintProto.java.

◆ addDemands() [2/4]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 980 of file CumulativeConstraintProto.java.

◆ addDemands() [3/4]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands ( int index,
com.google.ortools.sat.LinearExpressionProto value )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 959 of file CumulativeConstraintProto.java.

◆ addDemands() [4/4]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemands ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 998 of file CumulativeConstraintProto.java.

◆ addDemandsBuilder() [1/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemandsBuilder ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1109 of file CumulativeConstraintProto.java.

◆ addDemandsBuilder() [2/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addDemandsBuilder ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1120 of file CumulativeConstraintProto.java.

◆ addIntervals()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.addIntervals ( int value)

repeated int32 intervals = 2;

Parameters
valueThe intervals to add.
Returns
This builder for chaining.

Definition at line 806 of file CumulativeConstraintProto.java.

◆ build()

com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.Builder.build ( )

Definition at line 458 of file CumulativeConstraintProto.java.

◆ buildPartial()

com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.Builder.buildPartial ( )

Definition at line 467 of file CumulativeConstraintProto.java.

◆ clear()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clear ( )

Definition at line 427 of file CumulativeConstraintProto.java.

◆ clearCapacity()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clearCapacity ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Definition at line 709 of file CumulativeConstraintProto.java.

◆ clearDemands()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clearDemands ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1035 of file CumulativeConstraintProto.java.

◆ clearIntervals()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.clearIntervals ( )

repeated int32 intervals = 2;

Returns
This builder for chaining.

Definition at line 832 of file CumulativeConstraintProto.java.

◆ getCapacity()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.CumulativeConstraintProto.Builder.getCapacity ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Returns
The capacity.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 648 of file CumulativeConstraintProto.java.

◆ getCapacityBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.getCapacityBuilder ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Definition at line 722 of file CumulativeConstraintProto.java.

◆ getCapacityOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.CumulativeConstraintProto.Builder.getCapacityOrBuilder ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 730 of file CumulativeConstraintProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.Builder.getDefaultInstanceForType ( )

Definition at line 453 of file CumulativeConstraintProto.java.

◆ getDemands()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemands ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 886 of file CumulativeConstraintProto.java.

◆ getDemandsBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsBuilder ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1069 of file CumulativeConstraintProto.java.

◆ getDemandsBuilderList()

java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsBuilderList ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1133 of file CumulativeConstraintProto.java.

◆ getDemandsCount()

int com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsCount ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 872 of file CumulativeConstraintProto.java.

◆ getDemandsList()

java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsList ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 858 of file CumulativeConstraintProto.java.

◆ getDemandsOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsOrBuilder ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 1080 of file CumulativeConstraintProto.java.

◆ getDemandsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.CumulativeConstraintProto.Builder.getDemandsOrBuilderList ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 1095 of file CumulativeConstraintProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CumulativeConstraintProto.Builder.getDescriptor ( )
static

Definition at line 397 of file CumulativeConstraintProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CumulativeConstraintProto.Builder.getDescriptorForType ( )

Definition at line 448 of file CumulativeConstraintProto.java.

◆ getIntervals()

int com.google.ortools.sat.CumulativeConstraintProto.Builder.getIntervals ( int index)

repeated int32 intervals = 2;

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

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 783 of file CumulativeConstraintProto.java.

◆ getIntervalsCount()

int com.google.ortools.sat.CumulativeConstraintProto.Builder.getIntervalsCount ( )

repeated int32 intervals = 2;

Returns
The count of intervals.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 775 of file CumulativeConstraintProto.java.

◆ getIntervalsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.CumulativeConstraintProto.Builder.getIntervalsList ( )

repeated int32 intervals = 2;

Returns
A list containing the intervals.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 767 of file CumulativeConstraintProto.java.

◆ hasCapacity()

boolean com.google.ortools.sat.CumulativeConstraintProto.Builder.hasCapacity ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Returns
Whether the capacity field is set.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 641 of file CumulativeConstraintProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.sat.CumulativeConstraintProto.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 403 of file CumulativeConstraintProto.java.

◆ isInitialized()

final boolean com.google.ortools.sat.CumulativeConstraintProto.Builder.isInitialized ( )

Definition at line 561 of file CumulativeConstraintProto.java.

◆ mergeCapacity()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeCapacity ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto capacity = 1;

Definition at line 688 of file CumulativeConstraintProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeFrom ( com.google.ortools.sat.CumulativeConstraintProto other)

Definition at line 513 of file CumulativeConstraintProto.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 566 of file CumulativeConstraintProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 504 of file CumulativeConstraintProto.java.

◆ removeDemands()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.removeDemands ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 1052 of file CumulativeConstraintProto.java.

◆ setCapacity() [1/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setCapacity ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto capacity = 1;

Definition at line 658 of file CumulativeConstraintProto.java.

◆ setCapacity() [2/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setCapacity ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)

.operations_research.sat.LinearExpressionProto capacity = 1;

Definition at line 674 of file CumulativeConstraintProto.java.

◆ setDemands() [1/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setDemands ( int index,
com.google.ortools.sat.LinearExpressionProto value )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 900 of file CumulativeConstraintProto.java.

◆ setDemands() [2/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setDemands ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Definition at line 921 of file CumulativeConstraintProto.java.

◆ setIntervals()

Builder com.google.ortools.sat.CumulativeConstraintProto.Builder.setIntervals ( int index,
int value )

repeated int32 intervals = 2;

Parameters
indexThe index to set the value at.
valueThe intervals to set.
Returns
This builder for chaining.

Definition at line 792 of file CumulativeConstraintProto.java.


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