Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPAbsConstraint.Builder Class Reference

Detailed Description

Sets a variable's value to the absolute value of another variable.

Protobuf type operations_research.MPAbsConstraint

Definition at line 284 of file MPAbsConstraint.java.

Inheritance diagram for com.google.ortools.linearsolver.MPAbsConstraint.Builder:
com.google.ortools.linearsolver.MPAbsConstraintOrBuilder

Public Member Functions

Builder clear ()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
com.google.ortools.linearsolver.MPAbsConstraint getDefaultInstanceForType ()
com.google.ortools.linearsolver.MPAbsConstraint build ()
com.google.ortools.linearsolver.MPAbsConstraint buildPartial ()
Builder mergeFrom (com.google.protobuf.Message other)
Builder mergeFrom (com.google.ortools.linearsolver.MPAbsConstraint other)
final boolean isInitialized ()
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
boolean hasVarIndex ()
int getVarIndex ()
Builder setVarIndex (int value)
Builder clearVarIndex ()
boolean hasResultantVarIndex ()
int getResultantVarIndex ()
Builder setResultantVarIndex (int value)
Builder clearResultantVarIndex ()

Static Public Member Functions

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

Protected Member Functions

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

Member Function Documentation

◆ build()

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

Definition at line 332 of file MPAbsConstraint.java.

◆ buildPartial()

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

Definition at line 341 of file MPAbsConstraint.java.

◆ clear()

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

Definition at line 312 of file MPAbsConstraint.java.

◆ clearResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
This builder for chaining.

Definition at line 526 of file MPAbsConstraint.java.

◆ clearVarIndex()

Builder com.google.ortools.linearsolver.MPAbsConstraint.Builder.clearVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = abs(var)

optional int32 var_index = 1;

Returns
This builder for chaining.

Definition at line 486 of file MPAbsConstraint.java.

◆ getDefaultInstanceForType()

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

Definition at line 327 of file MPAbsConstraint.java.

◆ getDescriptor()

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

Definition at line 289 of file MPAbsConstraint.java.

◆ getDescriptorForType()

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

Definition at line 322 of file MPAbsConstraint.java.

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
The resultantVarIndex.

Implements com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.

Definition at line 507 of file MPAbsConstraint.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.MPAbsConstraint.Builder.getVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = abs(var)

optional int32 var_index = 1;

Returns
The varIndex.

Implements com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.

Definition at line 457 of file MPAbsConstraint.java.

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
Whether the resultantVarIndex field is set.

Implements com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.

Definition at line 499 of file MPAbsConstraint.java.

◆ hasVarIndex()

boolean com.google.ortools.linearsolver.MPAbsConstraint.Builder.hasVarIndex ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = abs(var)

optional int32 var_index = 1;

Returns
Whether the varIndex field is set.

Implements com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.

Definition at line 444 of file MPAbsConstraint.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 295 of file MPAbsConstraint.java.

◆ isInitialized()

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

Definition at line 386 of file MPAbsConstraint.java.

◆ mergeFrom() [1/3]

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

Definition at line 372 of file MPAbsConstraint.java.

◆ mergeFrom() [2/3]

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

Definition at line 391 of file MPAbsConstraint.java.

◆ mergeFrom() [3/3]

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

Definition at line 363 of file MPAbsConstraint.java.

◆ setResultantVarIndex()

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

optional int32 resultant_var_index = 2;

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

Definition at line 515 of file MPAbsConstraint.java.

◆ setVarIndex()

Builder com.google.ortools.linearsolver.MPAbsConstraint.Builder.setVarIndex ( int value)
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = abs(var)

optional int32 var_index = 1;

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

Definition at line 470 of file MPAbsConstraint.java.


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