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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.ReservoirConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.ReservoirConstraintProto build ()
 
com.google.ortools.sat.ReservoirConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.ReservoirConstraintProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
long getMinLevel ()
 
Builder setMinLevel (long value)
 
Builder clearMinLevel ()
 
long getMaxLevel ()
 
Builder setMaxLevel (long value)
 
Builder clearMaxLevel ()
 
java.util.List< com.google.ortools.sat.LinearExpressionProtogetTimeExprsList ()
 
int getTimeExprsCount ()
 
com.google.ortools.sat.LinearExpressionProto getTimeExprs (int index)
 
Builder setTimeExprs (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder setTimeExprs (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addTimeExprs (com.google.ortools.sat.LinearExpressionProto value)
 
Builder addTimeExprs (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder addTimeExprs (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addTimeExprs (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addAllTimeExprs (java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
 
Builder clearTimeExprs ()
 
Builder removeTimeExprs (int index)
 
com.google.ortools.sat.LinearExpressionProto.Builder getTimeExprsBuilder (int index)
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getTimeExprsOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetTimeExprsOrBuilderList ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addTimeExprsBuilder ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addTimeExprsBuilder (int index)
 
java.util.List< com.google.ortools.sat.LinearExpressionProto.BuildergetTimeExprsBuilderList ()
 
java.util.List< com.google.ortools.sat.LinearExpressionProtogetLevelChangesList ()
 
int getLevelChangesCount ()
 
com.google.ortools.sat.LinearExpressionProto getLevelChanges (int index)
 
Builder setLevelChanges (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder setLevelChanges (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addLevelChanges (com.google.ortools.sat.LinearExpressionProto value)
 
Builder addLevelChanges (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder addLevelChanges (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addLevelChanges (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addAllLevelChanges (java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
 
Builder clearLevelChanges ()
 
Builder removeLevelChanges (int index)
 
com.google.ortools.sat.LinearExpressionProto.Builder getLevelChangesBuilder (int index)
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getLevelChangesOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetLevelChangesOrBuilderList ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addLevelChangesBuilder ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addLevelChangesBuilder (int index)
 
java.util.List< com.google.ortools.sat.LinearExpressionProto.BuildergetLevelChangesBuilderList ()
 
java.util.List< java.lang.Integer > getActiveLiteralsList ()
 
int getActiveLiteralsCount ()
 
int getActiveLiterals (int index)
 
Builder setActiveLiterals (int index, int value)
 
Builder addActiveLiterals (int value)
 
Builder addAllActiveLiterals (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearActiveLiterals ()
 
- Public Member Functions inherited from com.google.ortools.sat.ReservoirConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Maintain a reservoir level within bounds. The water level starts at 0, and at
any time, it must be within [min_level, max_level].

If the variable active_literals[i] is true, and if the expression
time_exprs[i] is assigned a value t, then the current level changes by
level_changes[i] at the time t. Therefore, at any time t:

sum(level_changes[i] * active_literals[i] if time_exprs[i] <= t)
in [min_level, max_level]

Note that min level must be <= 0, and the max level must be >= 0. Please use
fixed level_changes to simulate initial state.

The array of boolean variables 'actives', if defined, indicates which actions
are actually performed. If this array is not defined, then it is assumed that
all actions will be performed.

Protobuf type operations_research.sat.ReservoirConstraintProto

Definition at line 486 of file ReservoirConstraintProto.java.

Member Function Documentation

◆ addActiveLiterals()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addActiveLiterals ( int value)

repeated int32 active_literals = 5;

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

Definition at line 1516 of file ReservoirConstraintProto.java.

◆ addAllActiveLiterals()

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

repeated int32 active_literals = 5;

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

Definition at line 1529 of file ReservoirConstraintProto.java.

◆ addAllLevelChanges()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addAllLevelChanges ( java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1330 of file ReservoirConstraintProto.java.

◆ addAllTimeExprs()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addAllTimeExprs ( java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1018 of file ReservoirConstraintProto.java.

◆ addLevelChanges() [1/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges ( com.google.ortools.sat.LinearExpressionProto value)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1253 of file ReservoirConstraintProto.java.

◆ addLevelChanges() [2/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1294 of file ReservoirConstraintProto.java.

◆ addLevelChanges() [3/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges ( int index,
com.google.ortools.sat.LinearExpressionProto value )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1273 of file ReservoirConstraintProto.java.

◆ addLevelChanges() [4/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChanges ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1312 of file ReservoirConstraintProto.java.

◆ addLevelChangesBuilder() [1/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChangesBuilder ( )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1423 of file ReservoirConstraintProto.java.

◆ addLevelChangesBuilder() [2/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addLevelChangesBuilder ( int index)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1434 of file ReservoirConstraintProto.java.

◆ addTimeExprs() [1/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs ( com.google.ortools.sat.LinearExpressionProto value)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 941 of file ReservoirConstraintProto.java.

◆ addTimeExprs() [2/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 982 of file ReservoirConstraintProto.java.

◆ addTimeExprs() [3/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs ( int index,
com.google.ortools.sat.LinearExpressionProto value )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 961 of file ReservoirConstraintProto.java.

◆ addTimeExprs() [4/4]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprs ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1000 of file ReservoirConstraintProto.java.

◆ addTimeExprsBuilder() [1/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprsBuilder ( )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1111 of file ReservoirConstraintProto.java.

◆ addTimeExprsBuilder() [2/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.addTimeExprsBuilder ( int index)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1122 of file ReservoirConstraintProto.java.

◆ build()

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

Definition at line 549 of file ReservoirConstraintProto.java.

◆ buildPartial()

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

Definition at line 558 of file ReservoirConstraintProto.java.

◆ clear()

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

Definition at line 514 of file ReservoirConstraintProto.java.

◆ clearActiveLiterals()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearActiveLiterals ( )

repeated int32 active_literals = 5;

Returns
This builder for chaining.

Definition at line 1542 of file ReservoirConstraintProto.java.

◆ clearLevelChanges()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearLevelChanges ( )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1349 of file ReservoirConstraintProto.java.

◆ clearMaxLevel()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearMaxLevel ( )

int64 max_level = 2;

Returns
This builder for chaining.

Definition at line 834 of file ReservoirConstraintProto.java.

◆ clearMinLevel()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearMinLevel ( )

int64 min_level = 1;

Returns
This builder for chaining.

Definition at line 802 of file ReservoirConstraintProto.java.

◆ clearTimeExprs()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.clearTimeExprs ( )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1037 of file ReservoirConstraintProto.java.

◆ getActiveLiterals()

int com.google.ortools.sat.ReservoirConstraintProto.Builder.getActiveLiterals ( int index)

repeated int32 active_literals = 5;

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

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1493 of file ReservoirConstraintProto.java.

◆ getActiveLiteralsCount()

int com.google.ortools.sat.ReservoirConstraintProto.Builder.getActiveLiteralsCount ( )

repeated int32 active_literals = 5;

Returns
The count of activeLiterals.

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1485 of file ReservoirConstraintProto.java.

◆ getActiveLiteralsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.ReservoirConstraintProto.Builder.getActiveLiteralsList ( )

repeated int32 active_literals = 5;

Returns
A list containing the activeLiterals.

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1477 of file ReservoirConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 544 of file ReservoirConstraintProto.java.

◆ getDescriptor()

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

Definition at line 491 of file ReservoirConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 539 of file ReservoirConstraintProto.java.

◆ getLevelChanges()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChanges ( int index)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1200 of file ReservoirConstraintProto.java.

◆ getLevelChangesBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesBuilder ( int index)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1383 of file ReservoirConstraintProto.java.

◆ getLevelChangesBuilderList()

java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesBuilderList ( )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1447 of file ReservoirConstraintProto.java.

◆ getLevelChangesCount()

int com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesCount ( )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1186 of file ReservoirConstraintProto.java.

◆ getLevelChangesList()

java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesList ( )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1172 of file ReservoirConstraintProto.java.

◆ getLevelChangesOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesOrBuilder ( int index)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1394 of file ReservoirConstraintProto.java.

◆ getLevelChangesOrBuilderList()

java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getLevelChangesOrBuilderList ( )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1409 of file ReservoirConstraintProto.java.

◆ getMaxLevel()

long com.google.ortools.sat.ReservoirConstraintProto.Builder.getMaxLevel ( )

int64 max_level = 2;

Returns
The maxLevel.

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 815 of file ReservoirConstraintProto.java.

◆ getMinLevel()

long com.google.ortools.sat.ReservoirConstraintProto.Builder.getMinLevel ( )

int64 min_level = 1;

Returns
The minLevel.

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 783 of file ReservoirConstraintProto.java.

◆ getTimeExprs()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprs ( int index)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 888 of file ReservoirConstraintProto.java.

◆ getTimeExprsBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsBuilder ( int index)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1071 of file ReservoirConstraintProto.java.

◆ getTimeExprsBuilderList()

java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsBuilderList ( )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1135 of file ReservoirConstraintProto.java.

◆ getTimeExprsCount()

int com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsCount ( )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 874 of file ReservoirConstraintProto.java.

◆ getTimeExprsList()

java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsList ( )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 860 of file ReservoirConstraintProto.java.

◆ getTimeExprsOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsOrBuilder ( int index)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1082 of file ReservoirConstraintProto.java.

◆ getTimeExprsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.ReservoirConstraintProto.Builder.getTimeExprsOrBuilderList ( )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Implements com.google.ortools.sat.ReservoirConstraintProtoOrBuilder.

Definition at line 1097 of file ReservoirConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 497 of file ReservoirConstraintProto.java.

◆ isInitialized()

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

Definition at line 688 of file ReservoirConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 611 of file ReservoirConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 693 of file ReservoirConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 602 of file ReservoirConstraintProto.java.

◆ removeLevelChanges()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.removeLevelChanges ( int index)
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1366 of file ReservoirConstraintProto.java.

◆ removeTimeExprs()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.removeTimeExprs ( int index)
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 1054 of file ReservoirConstraintProto.java.

◆ setActiveLiterals()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setActiveLiterals ( int index,
int value )

repeated int32 active_literals = 5;

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

Definition at line 1502 of file ReservoirConstraintProto.java.

◆ setLevelChanges() [1/2]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setLevelChanges ( int index,
com.google.ortools.sat.LinearExpressionProto value )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1214 of file ReservoirConstraintProto.java.

◆ setLevelChanges() [2/2]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setLevelChanges ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
Currently, we only support constant level changes.

repeated .operations_research.sat.LinearExpressionProto level_changes = 6;

Definition at line 1235 of file ReservoirConstraintProto.java.

◆ setMaxLevel()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setMaxLevel ( long value)

int64 max_level = 2;

Parameters
valueThe maxLevel to set.
Returns
This builder for chaining.

Definition at line 823 of file ReservoirConstraintProto.java.

◆ setMinLevel()

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setMinLevel ( long value)

int64 min_level = 1;

Parameters
valueThe minLevel to set.
Returns
This builder for chaining.

Definition at line 791 of file ReservoirConstraintProto.java.

◆ setTimeExprs() [1/2]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setTimeExprs ( int index,
com.google.ortools.sat.LinearExpressionProto value )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 902 of file ReservoirConstraintProto.java.

◆ setTimeExprs() [2/2]

Builder com.google.ortools.sat.ReservoirConstraintProto.Builder.setTimeExprs ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
affine expressions.

repeated .operations_research.sat.LinearExpressionProto time_exprs = 3;

Definition at line 923 of file ReservoirConstraintProto.java.


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