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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint build ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPArrayWithConstantConstraint 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 > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
Builder setVarIndex (int index, int value)
 
Builder addVarIndex (int value)
 
Builder addAllVarIndex (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearVarIndex ()
 
boolean hasConstant ()
 
double getConstant ()
 
Builder setConstant (double value)
 
Builder clearConstant ()
 
boolean hasResultantVarIndex ()
 
int getResultantVarIndex ()
 
Builder setResultantVarIndex (int value)
 
Builder clearResultantVarIndex ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Sets a variable's value equal to a function on a set of variables and,
optionally, a constant.

Protobuf type operations_research.MPArrayWithConstantConstraint

Definition at line 339 of file MPArrayWithConstantConstraint.java.

Member Function Documentation

◆ addAllVarIndex()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.addAllVarIndex ( java.lang.Iterable<? extends java.lang.Integer > values)
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

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

Definition at line 614 of file MPArrayWithConstantConstraint.java.

◆ addVarIndex()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.addVarIndex ( int value)
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

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

Definition at line 596 of file MPArrayWithConstantConstraint.java.

◆ build()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.build ( )

Definition at line 388 of file MPArrayWithConstantConstraint.java.

◆ buildPartial()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.buildPartial ( )

Definition at line 397 of file MPArrayWithConstantConstraint.java.

◆ clear()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clear ( )

Definition at line 367 of file MPArrayWithConstantConstraint.java.

◆ clearConstant()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearConstant ( )

optional double constant = 2;

Returns
This builder for chaining.

Definition at line 672 of file MPArrayWithConstantConstraint.java.

◆ clearResultantVarIndex()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearResultantVarIndex ( )

optional int32 resultant_var_index = 3;

Returns
This builder for chaining.

Definition at line 712 of file MPArrayWithConstantConstraint.java.

◆ clearVarIndex()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.clearVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
This builder for chaining.

Definition at line 632 of file MPArrayWithConstantConstraint.java.

◆ getConstant()

double com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getConstant ( )

optional double constant = 2;

Returns
The constant.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 653 of file MPArrayWithConstantConstraint.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.MPArrayWithConstantConstraint com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDefaultInstanceForType ( )

Definition at line 383 of file MPArrayWithConstantConstraint.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDescriptor ( )
static

Definition at line 344 of file MPArrayWithConstantConstraint.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getDescriptorForType ( )

Definition at line 378 of file MPArrayWithConstantConstraint.java.

◆ getResultantVarIndex()

int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getResultantVarIndex ( )

optional int32 resultant_var_index = 3;

Returns
The resultantVarIndex.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 693 of file MPArrayWithConstantConstraint.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getVarIndex ( int index)
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

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

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 563 of file MPArrayWithConstantConstraint.java.

◆ getVarIndexCount()

int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getVarIndexCount ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
The count of varIndex.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 550 of file MPArrayWithConstantConstraint.java.

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.getVarIndexList ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
A list containing the varIndex.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 537 of file MPArrayWithConstantConstraint.java.

◆ hasConstant()

boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.hasConstant ( )

optional double constant = 2;

Returns
Whether the constant field is set.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 645 of file MPArrayWithConstantConstraint.java.

◆ hasResultantVarIndex()

boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.hasResultantVarIndex ( )

optional int32 resultant_var_index = 3;

Returns
Whether the resultantVarIndex field is set.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 685 of file MPArrayWithConstantConstraint.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 350 of file MPArrayWithConstantConstraint.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.isInitialized ( )

Definition at line 457 of file MPArrayWithConstantConstraint.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom ( com.google.ortools.linearsolver.MPArrayWithConstantConstraint other)

Definition at line 432 of file MPArrayWithConstantConstraint.java.

◆ mergeFrom() [2/3]

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

Definition at line 462 of file MPArrayWithConstantConstraint.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 423 of file MPArrayWithConstantConstraint.java.

◆ setConstant()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.setConstant ( double value)

optional double constant = 2;

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

Definition at line 661 of file MPArrayWithConstantConstraint.java.

◆ setResultantVarIndex()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.setResultantVarIndex ( int value)

optional int32 resultant_var_index = 3;

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

Definition at line 701 of file MPArrayWithConstantConstraint.java.

◆ setVarIndex()

Builder com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder.setVarIndex ( int index,
int value )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

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

Definition at line 577 of file MPArrayWithConstantConstraint.java.


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