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

Classes

class  Builder
 

Public Member Functions

boolean hasCapacity ()
 
com.google.ortools.sat.LinearExpressionProto getCapacity ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getCapacityOrBuilder ()
 
java.util.List< java.lang.Integer > getIntervalsList ()
 
int getIntervalsCount ()
 
int getIntervals (int index)
 
java.util.List< com.google.ortools.sat.LinearExpressionProtogetDemandsList ()
 
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetDemandsOrBuilderList ()
 
int getDemandsCount ()
 
com.google.ortools.sat.LinearExpressionProto getDemands (int index)
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getDemandsOrBuilder (int index)
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< CumulativeConstraintProtogetParserForType ()
 
com.google.ortools.sat.CumulativeConstraintProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.CumulativeConstraintProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.sat.CumulativeConstraintProto prototype)
 
static com.google.ortools.sat.CumulativeConstraintProto getDefaultInstance ()
 
static com.google.protobuf.Parser< CumulativeConstraintProtoparser ()
 

Static Public Attributes

static final int CAPACITY_FIELD_NUMBER = 1
 
static final int INTERVALS_FIELD_NUMBER = 2
 
static final int DEMANDS_FIELD_NUMBER = 3
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

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 21 of file CumulativeConstraintProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.sat.CumulativeConstraintProto.equals ( final java.lang.Object obj)

Definition at line 240 of file CumulativeConstraintProto.java.

◆ getCapacity()

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

.operations_research.sat.LinearExpressionProto capacity = 1;

Returns
The capacity.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 73 of file CumulativeConstraintProto.java.

◆ getCapacityOrBuilder()

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

.operations_research.sat.LinearExpressionProto capacity = 1;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 80 of file CumulativeConstraintProto.java.

◆ getDefaultInstance()

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance ( )
static

Definition at line 1160 of file CumulativeConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 1196 of file CumulativeConstraintProto.java.

◆ getDemands()

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

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 159 of file CumulativeConstraintProto.java.

◆ getDemandsCount()

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

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 148 of file CumulativeConstraintProto.java.

◆ getDemandsList()

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

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 125 of file CumulativeConstraintProto.java.

◆ getDemandsOrBuilder()

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

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 170 of file CumulativeConstraintProto.java.

◆ getDemandsOrBuilderList()

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

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 137 of file CumulativeConstraintProto.java.

◆ getDescriptor()

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

Definition at line 45 of file CumulativeConstraintProto.java.

◆ getIntervals()

int com.google.ortools.sat.CumulativeConstraintProto.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 109 of file CumulativeConstraintProto.java.

◆ getIntervalsCount()

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

repeated int32 intervals = 2;

Returns
The count of intervals.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 101 of file CumulativeConstraintProto.java.

◆ getIntervalsList()

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

repeated int32 intervals = 2;

Returns
A list containing the intervals.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 94 of file CumulativeConstraintProto.java.

◆ getParserForType()

com.google.protobuf.Parser< CumulativeConstraintProto > com.google.ortools.sat.CumulativeConstraintProto.getParserForType ( )

Definition at line 1191 of file CumulativeConstraintProto.java.

◆ getSerializedSize()

int com.google.ortools.sat.CumulativeConstraintProto.getSerializedSize ( )

Definition at line 207 of file CumulativeConstraintProto.java.

◆ hasCapacity()

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

.operations_research.sat.LinearExpressionProto capacity = 1;

Returns
Whether the capacity field is set.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 65 of file CumulativeConstraintProto.java.

◆ hashCode()

int com.google.ortools.sat.CumulativeConstraintProto.hashCode ( )

Definition at line 263 of file CumulativeConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 51 of file CumulativeConstraintProto.java.

◆ isInitialized()

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

Definition at line 177 of file CumulativeConstraintProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilder ( )
static

Definition at line 360 of file CumulativeConstraintProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilder ( com.google.ortools.sat.CumulativeConstraintProto prototype)
static

Definition at line 363 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 359 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 373 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 331 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 337 of file CumulativeConstraintProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 308 of file CumulativeConstraintProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 312 of file CumulativeConstraintProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 297 of file CumulativeConstraintProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 302 of file CumulativeConstraintProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 344 of file CumulativeConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 350 of file CumulativeConstraintProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 318 of file CumulativeConstraintProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 323 of file CumulativeConstraintProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 286 of file CumulativeConstraintProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 291 of file CumulativeConstraintProto.java.

◆ parser()

static com.google.protobuf.Parser< CumulativeConstraintProto > com.google.ortools.sat.CumulativeConstraintProto.parser ( )
static

Definition at line 1186 of file CumulativeConstraintProto.java.

◆ toBuilder()

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

Definition at line 367 of file CumulativeConstraintProto.java.

◆ writeTo()

void com.google.ortools.sat.CumulativeConstraintProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 187 of file CumulativeConstraintProto.java.

Member Data Documentation

◆ CAPACITY_FIELD_NUMBER

final int com.google.ortools.sat.CumulativeConstraintProto.CAPACITY_FIELD_NUMBER = 1
static

Definition at line 58 of file CumulativeConstraintProto.java.

◆ DEMANDS_FIELD_NUMBER

final int com.google.ortools.sat.CumulativeConstraintProto.DEMANDS_FIELD_NUMBER = 3
static

Definition at line 114 of file CumulativeConstraintProto.java.

◆ INTERVALS_FIELD_NUMBER

final int com.google.ortools.sat.CumulativeConstraintProto.INTERVALS_FIELD_NUMBER = 2
static

Definition at line 84 of file CumulativeConstraintProto.java.


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