Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPAbsConstraint.Builder Class Reference
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 ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPAbsConstraintOrBuilder

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 to the absolute value of another variable.

Protobuf type operations_research.MPAbsConstraint

Definition at line 282 of file MPAbsConstraint.java.

Member Function Documentation

◆ build()

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

Definition at line 330 of file MPAbsConstraint.java.

◆ buildPartial()

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

Definition at line 339 of file MPAbsConstraint.java.

◆ clear()

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

Definition at line 310 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 524 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 484 of file MPAbsConstraint.java.

◆ getDefaultInstanceForType()

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

Definition at line 325 of file MPAbsConstraint.java.

◆ getDescriptor()

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

Definition at line 287 of file MPAbsConstraint.java.

◆ getDescriptorForType()

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

Definition at line 320 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 505 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 455 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 497 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 442 of file MPAbsConstraint.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 293 of file MPAbsConstraint.java.

◆ isInitialized()

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

Definition at line 384 of file MPAbsConstraint.java.

◆ mergeFrom() [1/3]

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

Definition at line 370 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 389 of file MPAbsConstraint.java.

◆ mergeFrom() [3/3]

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

Definition at line 361 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 513 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 468 of file MPAbsConstraint.java.


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