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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPArrayConstraint getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPArrayConstraint build ()
 
com.google.ortools.linearsolver.MPArrayConstraint buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPArrayConstraint 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 hasResultantVarIndex ()
 
int getResultantVarIndex ()
 
Builder setResultantVarIndex (int value)
 
Builder clearResultantVarIndex ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPArrayConstraintOrBuilder

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.

Protobuf type operations_research.MPArrayConstraint

Definition at line 297 of file MPArrayConstraint.java.

Member Function Documentation

◆ addAllVarIndex()

Builder com.google.ortools.linearsolver.MPArrayConstraint.Builder.addAllVarIndex ( java.lang.Iterable<? extends java.lang.Integer > values)
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

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

Definition at line 553 of file MPArrayConstraint.java.

◆ addVarIndex()

Builder com.google.ortools.linearsolver.MPArrayConstraint.Builder.addVarIndex ( int value)
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

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

Definition at line 536 of file MPArrayConstraint.java.

◆ build()

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

Definition at line 345 of file MPArrayConstraint.java.

◆ buildPartial()

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

Definition at line 354 of file MPArrayConstraint.java.

◆ clear()

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

Definition at line 325 of file MPArrayConstraint.java.

◆ clearResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
This builder for chaining.

Definition at line 610 of file MPArrayConstraint.java.

◆ clearVarIndex()

Builder com.google.ortools.linearsolver.MPArrayConstraint.Builder.clearVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

Returns
This builder for chaining.

Definition at line 570 of file MPArrayConstraint.java.

◆ getDefaultInstanceForType()

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

Definition at line 340 of file MPArrayConstraint.java.

◆ getDescriptor()

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

Definition at line 302 of file MPArrayConstraint.java.

◆ getDescriptorForType()

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

Definition at line 335 of file MPArrayConstraint.java.

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
The resultantVarIndex.

Implements com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.

Definition at line 591 of file MPArrayConstraint.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.MPArrayConstraint.Builder.getVarIndex ( int index)
Variable indices are relative to the "variable" field in MPModelProto.

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.MPArrayConstraintOrBuilder.

Definition at line 505 of file MPArrayConstraint.java.

◆ getVarIndexCount()

int com.google.ortools.linearsolver.MPArrayConstraint.Builder.getVarIndexCount ( )
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

Returns
The count of varIndex.

Implements com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.

Definition at line 493 of file MPArrayConstraint.java.

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayConstraint.Builder.getVarIndexList ( )
Variable indices are relative to the "variable" field in MPModelProto.

repeated int32 var_index = 1;

Returns
A list containing the varIndex.

Implements com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.

Definition at line 481 of file MPArrayConstraint.java.

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
Whether the resultantVarIndex field is set.

Implements com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.

Definition at line 583 of file MPArrayConstraint.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 308 of file MPArrayConstraint.java.

◆ isInitialized()

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

Definition at line 407 of file MPArrayConstraint.java.

◆ mergeFrom() [1/3]

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

Definition at line 385 of file MPArrayConstraint.java.

◆ mergeFrom() [2/3]

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

Definition at line 412 of file MPArrayConstraint.java.

◆ mergeFrom() [3/3]

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

Definition at line 376 of file MPArrayConstraint.java.

◆ setResultantVarIndex()

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

optional int32 resultant_var_index = 2;

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

Definition at line 599 of file MPArrayConstraint.java.

◆ setVarIndex()

Builder com.google.ortools.linearsolver.MPArrayConstraint.Builder.setVarIndex ( int index,
int value )
Variable indices are relative to the "variable" field in MPModelProto.

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 518 of file MPArrayConstraint.java.


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