Google OR-Tools v9.14
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 ()

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. Even if there are no intervals, this constraint
implicit enforces capacity >= 0. In other words, a negative capacity is
considered valid but always infeasible.

Protobuf type operations_research.sat.CumulativeConstraintProto

Definition at line 24 of file CumulativeConstraintProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 243 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 76 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 83 of file CumulativeConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 1164 of file CumulativeConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 1200 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 162 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 151 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 128 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 173 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 140 of file CumulativeConstraintProto.java.

◆ getDescriptor()

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

Definition at line 48 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 112 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 104 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 97 of file CumulativeConstraintProto.java.

◆ getParserForType()

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

Definition at line 1195 of file CumulativeConstraintProto.java.

◆ getSerializedSize()

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

Definition at line 210 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 68 of file CumulativeConstraintProto.java.

◆ hashCode()

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

Definition at line 266 of file CumulativeConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 54 of file CumulativeConstraintProto.java.

◆ isInitialized()

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

Definition at line 180 of file CumulativeConstraintProto.java.

◆ newBuilder() [1/2]

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

Definition at line 363 of file CumulativeConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 366 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 362 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 376 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 334 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

◆ parseFrom() [1/10]

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

Definition at line 311 of file CumulativeConstraintProto.java.

◆ parseFrom() [2/10]

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

◆ parseFrom() [3/10]

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

◆ parseFrom() [4/10]

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

◆ parseFrom() [5/10]

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

Definition at line 347 of file CumulativeConstraintProto.java.

◆ parseFrom() [6/10]

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

◆ parseFrom() [7/10]

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

Definition at line 321 of file CumulativeConstraintProto.java.

◆ parseFrom() [8/10]

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

◆ parseFrom() [9/10]

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

Definition at line 289 of file CumulativeConstraintProto.java.

◆ parseFrom() [10/10]

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

◆ parser()

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

Definition at line 1190 of file CumulativeConstraintProto.java.

◆ toBuilder()

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

Definition at line 370 of file CumulativeConstraintProto.java.

◆ writeTo()

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

Definition at line 190 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 61 of file CumulativeConstraintProto.java.

◆ DEMANDS_FIELD_NUMBER

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

Definition at line 117 of file CumulativeConstraintProto.java.

◆ INTERVALS_FIELD_NUMBER

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

Definition at line 87 of file CumulativeConstraintProto.java.


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