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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.DecisionStrategyProto getDefaultInstanceForType ()
 
com.google.ortools.sat.DecisionStrategyProto build ()
 
com.google.ortools.sat.DecisionStrategyProto buildPartial ()
 
Builder clone ()
 
Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.DecisionStrategyProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< java.lang.Integer > getVariablesList ()
 
int getVariablesCount ()
 
int getVariables (int index)
 
Builder setVariables (int index, int value)
 
Builder addVariables (int value)
 
Builder addAllVariables (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearVariables ()
 
java.util.List< com.google.ortools.sat.LinearExpressionProtogetExprsList ()
 
int getExprsCount ()
 
com.google.ortools.sat.LinearExpressionProto getExprs (int index)
 
Builder setExprs (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder setExprs (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addExprs (com.google.ortools.sat.LinearExpressionProto value)
 
Builder addExprs (int index, com.google.ortools.sat.LinearExpressionProto value)
 
Builder addExprs (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addExprs (int index, com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder addAllExprs (java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
 
Builder clearExprs ()
 
Builder removeExprs (int index)
 
com.google.ortools.sat.LinearExpressionProto.Builder getExprsBuilder (int index)
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getExprsOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetExprsOrBuilderList ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addExprsBuilder ()
 
com.google.ortools.sat.LinearExpressionProto.Builder addExprsBuilder (int index)
 
java.util.List< com.google.ortools.sat.LinearExpressionProto.BuildergetExprsBuilderList ()
 
int getVariableSelectionStrategyValue ()
 
Builder setVariableSelectionStrategyValue (int value)
 
com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy getVariableSelectionStrategy ()
 
Builder setVariableSelectionStrategy (com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy value)
 
Builder clearVariableSelectionStrategy ()
 
int getDomainReductionStrategyValue ()
 
Builder setDomainReductionStrategyValue (int value)
 
com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy getDomainReductionStrategy ()
 
Builder setDomainReductionStrategy (com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy value)
 
Builder clearDomainReductionStrategy ()
 
final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Define the strategy to follow when the solver needs to take a new decision.
Note that this strategy is only defined on a subset of variables.

Protobuf type operations_research.sat.DecisionStrategyProto

Definition at line 721 of file DecisionStrategyProto.java.

Member Function Documentation

◆ addAllExprs()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addAllExprs ( java.lang.Iterable<? extends com.google.ortools.sat.LinearExpressionProto > values)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1342 of file DecisionStrategyProto.java.

◆ addAllVariables()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addAllVariables ( java.lang.Iterable<? extends java.lang.Integer > values)
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

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

Definition at line 1089 of file DecisionStrategyProto.java.

◆ addExprs() [1/4]

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addExprs ( com.google.ortools.sat.LinearExpressionProto value)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1245 of file DecisionStrategyProto.java.

◆ addExprs() [2/4]

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addExprs ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1296 of file DecisionStrategyProto.java.

◆ addExprs() [3/4]

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addExprs ( int index,
com.google.ortools.sat.LinearExpressionProto value )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1270 of file DecisionStrategyProto.java.

◆ addExprs() [4/4]

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addExprs ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1319 of file DecisionStrategyProto.java.

◆ addExprsBuilder() [1/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addExprsBuilder ( )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1465 of file DecisionStrategyProto.java.

◆ addExprsBuilder() [2/2]

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addExprsBuilder ( int index)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1481 of file DecisionStrategyProto.java.

◆ addRepeatedField()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 847 of file DecisionStrategyProto.java.

◆ addVariables()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.addVariables ( int value)
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

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

Definition at line 1070 of file DecisionStrategyProto.java.

◆ build()

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

Definition at line 777 of file DecisionStrategyProto.java.

◆ buildPartial()

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

Definition at line 786 of file DecisionStrategyProto.java.

◆ clear()

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

Definition at line 749 of file DecisionStrategyProto.java.

◆ clearDomainReductionStrategy()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clearDomainReductionStrategy ( )

.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;

Returns
This builder for chaining.

Definition at line 1616 of file DecisionStrategyProto.java.

◆ clearExprs()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clearExprs ( )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1366 of file DecisionStrategyProto.java.

◆ clearField()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clearField ( com.google.protobuf.Descriptors.FieldDescriptor field)

Definition at line 831 of file DecisionStrategyProto.java.

◆ clearOneof()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

Definition at line 836 of file DecisionStrategyProto.java.

◆ clearVariables()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clearVariables ( )
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

Returns
This builder for chaining.

Definition at line 1108 of file DecisionStrategyProto.java.

◆ clearVariableSelectionStrategy()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clearVariableSelectionStrategy ( )

.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;

Returns
This builder for chaining.

Definition at line 1563 of file DecisionStrategyProto.java.

◆ clone()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.clone ( )

Definition at line 821 of file DecisionStrategyProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 772 of file DecisionStrategyProto.java.

◆ getDescriptor()

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

Definition at line 726 of file DecisionStrategyProto.java.

◆ getDescriptorForType()

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

Definition at line 767 of file DecisionStrategyProto.java.

◆ getDomainReductionStrategy()

com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy com.google.ortools.sat.DecisionStrategyProto.Builder.getDomainReductionStrategy ( )

.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;

Returns
The domainReductionStrategy.

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1594 of file DecisionStrategyProto.java.

◆ getDomainReductionStrategyValue()

int com.google.ortools.sat.DecisionStrategyProto.Builder.getDomainReductionStrategyValue ( )

.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;

Returns
The enum numeric value on the wire for domainReductionStrategy.

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1575 of file DecisionStrategyProto.java.

◆ getExprs()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.DecisionStrategyProto.Builder.getExprs ( int index)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1177 of file DecisionStrategyProto.java.

◆ getExprsBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.DecisionStrategyProto.Builder.getExprsBuilder ( int index)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1410 of file DecisionStrategyProto.java.

◆ getExprsBuilderList()

java.util.List< com.google.ortools.sat.LinearExpressionProto.Builder > com.google.ortools.sat.DecisionStrategyProto.Builder.getExprsBuilderList ( )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1499 of file DecisionStrategyProto.java.

◆ getExprsCount()

int com.google.ortools.sat.DecisionStrategyProto.Builder.getExprsCount ( )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1158 of file DecisionStrategyProto.java.

◆ getExprsList()

java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.DecisionStrategyProto.Builder.getExprsList ( )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1139 of file DecisionStrategyProto.java.

◆ getExprsOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.DecisionStrategyProto.Builder.getExprsOrBuilder ( int index)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1426 of file DecisionStrategyProto.java.

◆ getExprsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.DecisionStrategyProto.Builder.getExprsOrBuilderList ( )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1446 of file DecisionStrategyProto.java.

◆ getVariables()

int com.google.ortools.sat.DecisionStrategyProto.Builder.getVariables ( int index)
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

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

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1035 of file DecisionStrategyProto.java.

◆ getVariablesCount()

int com.google.ortools.sat.DecisionStrategyProto.Builder.getVariablesCount ( )
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

Returns
The count of variables.

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1021 of file DecisionStrategyProto.java.

◆ getVariableSelectionStrategy()

com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy com.google.ortools.sat.DecisionStrategyProto.Builder.getVariableSelectionStrategy ( )

.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;

Returns
The variableSelectionStrategy.

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1541 of file DecisionStrategyProto.java.

◆ getVariableSelectionStrategyValue()

int com.google.ortools.sat.DecisionStrategyProto.Builder.getVariableSelectionStrategyValue ( )

.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;

Returns
The enum numeric value on the wire for variableSelectionStrategy.

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1522 of file DecisionStrategyProto.java.

◆ getVariablesList()

java.util.List< java.lang.Integer > com.google.ortools.sat.DecisionStrategyProto.Builder.getVariablesList ( )
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

Returns
A list containing the variables.

Implements com.google.ortools.sat.DecisionStrategyProtoOrBuilder.

Definition at line 1007 of file DecisionStrategyProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.ortools.sat.DecisionStrategyProto.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 732 of file DecisionStrategyProto.java.

◆ isInitialized()

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

Definition at line 913 of file DecisionStrategyProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 862 of file DecisionStrategyProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 918 of file DecisionStrategyProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 853 of file DecisionStrategyProto.java.

◆ mergeUnknownFields()

final Builder com.google.ortools.sat.DecisionStrategyProto.Builder.mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 1629 of file DecisionStrategyProto.java.

◆ removeExprs()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.removeExprs ( int index)
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1388 of file DecisionStrategyProto.java.

◆ setDomainReductionStrategy()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setDomainReductionStrategy ( com.google.ortools.sat.DecisionStrategyProto.DomainReductionStrategy value)

.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;

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

Definition at line 1603 of file DecisionStrategyProto.java.

◆ setDomainReductionStrategyValue()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setDomainReductionStrategyValue ( int value)

.operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;

Parameters
valueThe enum numeric value on the wire for domainReductionStrategy to set.
Returns
This builder for chaining.

Definition at line 1583 of file DecisionStrategyProto.java.

◆ setExprs() [1/2]

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setExprs ( int index,
com.google.ortools.sat.LinearExpressionProto value )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1196 of file DecisionStrategyProto.java.

◆ setExprs() [2/2]

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setExprs ( int index,
com.google.ortools.sat.LinearExpressionProto.Builder builderForValue )
If this is set, then the variables field must be empty.
We currently only support affine expression.

Note that this is needed so that if a variable has an affine
representative, we can properly transform a DecisionStrategyProto through
presolve.

repeated .operations_research.sat.LinearExpressionProto exprs = 5;

Definition at line 1222 of file DecisionStrategyProto.java.

◆ setField()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 825 of file DecisionStrategyProto.java.

◆ setRepeatedField()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value )

Definition at line 841 of file DecisionStrategyProto.java.

◆ setUnknownFields()

final Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 1623 of file DecisionStrategyProto.java.

◆ setVariables()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setVariables ( int index,
int value )
The variables to be considered for the next decision. The order matter and
is always used as a tie-breaker after the variable selection strategy
criteria defined below.

repeated int32 variables = 1;

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

Definition at line 1050 of file DecisionStrategyProto.java.

◆ setVariableSelectionStrategy()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setVariableSelectionStrategy ( com.google.ortools.sat.DecisionStrategyProto.VariableSelectionStrategy value)

.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;

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

Definition at line 1550 of file DecisionStrategyProto.java.

◆ setVariableSelectionStrategyValue()

Builder com.google.ortools.sat.DecisionStrategyProto.Builder.setVariableSelectionStrategyValue ( int value)

.operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;

Parameters
valueThe enum numeric value on the wire for variableSelectionStrategy to set.
Returns
This builder for chaining.

Definition at line 1530 of file DecisionStrategyProto.java.


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