Google OR-Tools v9.12
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 23 of file CumulativeConstraintProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 242 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 75 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 82 of file CumulativeConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 1163 of file CumulativeConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 1199 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 161 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 150 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 127 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 172 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 139 of file CumulativeConstraintProto.java.

◆ getDescriptor()

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

Definition at line 47 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 111 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 103 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 96 of file CumulativeConstraintProto.java.

◆ getParserForType()

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

Definition at line 1194 of file CumulativeConstraintProto.java.

◆ getSerializedSize()

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

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

◆ hashCode()

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

Definition at line 265 of file CumulativeConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 53 of file CumulativeConstraintProto.java.

◆ isInitialized()

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

Definition at line 179 of file CumulativeConstraintProto.java.

◆ newBuilder() [1/2]

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

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

◆ newBuilderForType() [1/2]

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

Definition at line 361 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 375 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 333 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 339 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 310 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 314 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 299 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 304 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 346 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 352 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 320 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 325 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 288 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 293 of file CumulativeConstraintProto.java.

◆ parser()

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

Definition at line 1189 of file CumulativeConstraintProto.java.

◆ toBuilder()

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

Definition at line 369 of file CumulativeConstraintProto.java.

◆ writeTo()

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

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

◆ DEMANDS_FIELD_NUMBER

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

Definition at line 116 of file CumulativeConstraintProto.java.

◆ INTERVALS_FIELD_NUMBER

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

Definition at line 86 of file CumulativeConstraintProto.java.


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