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

Classes

class  Builder
 

Public Member Functions

boolean hasVarIndex ()
 
int getVarIndex ()
 
boolean hasResultantVarIndex ()
 
int getResultantVarIndex ()
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< MPAbsConstraintgetParserForType ()
 
com.google.ortools.linearsolver.MPAbsConstraint getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPAbsConstraintOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPAbsConstraint parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.linearsolver.MPAbsConstraint prototype)
 
static com.google.ortools.linearsolver.MPAbsConstraint getDefaultInstance ()
 
static com.google.protobuf.Parser< MPAbsConstraintparser ()
 

Static Public Attributes

static final int VAR_INDEX_FIELD_NUMBER = 1
 
static final int RESULTANT_VAR_INDEX_FIELD_NUMBER = 2
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

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

Protobuf type operations_research.MPAbsConstraint

Definition at line 14 of file MPAbsConstraint.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.linearsolver.MPAbsConstraint.equals ( final java.lang.Object obj)

Definition at line 140 of file MPAbsConstraint.java.

◆ getDefaultInstance()

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance ( )
static

Definition at line 540 of file MPAbsConstraint.java.

◆ getDefaultInstanceForType()

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

Definition at line 576 of file MPAbsConstraint.java.

◆ getDescriptor()

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

Definition at line 36 of file MPAbsConstraint.java.

◆ getParserForType()

com.google.protobuf.Parser< MPAbsConstraint > com.google.ortools.linearsolver.MPAbsConstraint.getParserForType ( )

Definition at line 571 of file MPAbsConstraint.java.

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
The resultantVarIndex.

Implements com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.

Definition at line 93 of file MPAbsConstraint.java.

◆ getSerializedSize()

int com.google.ortools.linearsolver.MPAbsConstraint.getSerializedSize ( )

Definition at line 121 of file MPAbsConstraint.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.MPAbsConstraint.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 74 of file MPAbsConstraint.java.

◆ hashCode()

int com.google.ortools.linearsolver.MPAbsConstraint.hashCode ( )

Definition at line 164 of file MPAbsConstraint.java.

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
Whether the resultantVarIndex field is set.

Implements com.google.ortools.linearsolver.MPAbsConstraintOrBuilder.

Definition at line 85 of file MPAbsConstraint.java.

◆ hasVarIndex()

boolean com.google.ortools.linearsolver.MPAbsConstraint.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 61 of file MPAbsConstraint.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 42 of file MPAbsConstraint.java.

◆ isInitialized()

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

Definition at line 99 of file MPAbsConstraint.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.linearsolver.MPAbsConstraint.newBuilder ( )
static

Definition at line 257 of file MPAbsConstraint.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.linearsolver.MPAbsConstraint.newBuilder ( com.google.ortools.linearsolver.MPAbsConstraint prototype)
static

Definition at line 260 of file MPAbsConstraint.java.

◆ newBuilderForType() [1/2]

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

Definition at line 256 of file MPAbsConstraint.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.linearsolver.MPAbsConstraint.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 270 of file MPAbsConstraint.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 228 of file MPAbsConstraint.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 234 of file MPAbsConstraint.java.

◆ parseFrom() [1/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 205 of file MPAbsConstraint.java.

◆ parseFrom() [2/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 209 of file MPAbsConstraint.java.

◆ parseFrom() [3/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 194 of file MPAbsConstraint.java.

◆ parseFrom() [4/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 199 of file MPAbsConstraint.java.

◆ parseFrom() [5/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 241 of file MPAbsConstraint.java.

◆ parseFrom() [6/10]

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

Definition at line 247 of file MPAbsConstraint.java.

◆ parseFrom() [7/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 215 of file MPAbsConstraint.java.

◆ parseFrom() [8/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 220 of file MPAbsConstraint.java.

◆ parseFrom() [9/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 183 of file MPAbsConstraint.java.

◆ parseFrom() [10/10]

static com.google.ortools.linearsolver.MPAbsConstraint com.google.ortools.linearsolver.MPAbsConstraint.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 188 of file MPAbsConstraint.java.

◆ parser()

static com.google.protobuf.Parser< MPAbsConstraint > com.google.ortools.linearsolver.MPAbsConstraint.parser ( )
static

Definition at line 566 of file MPAbsConstraint.java.

◆ toBuilder()

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

Definition at line 264 of file MPAbsConstraint.java.

◆ writeTo()

void com.google.ortools.linearsolver.MPAbsConstraint.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 109 of file MPAbsConstraint.java.

Member Data Documentation

◆ RESULTANT_VAR_INDEX_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPAbsConstraint.RESULTANT_VAR_INDEX_FIELD_NUMBER = 2
static

Definition at line 78 of file MPAbsConstraint.java.

◆ VAR_INDEX_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPAbsConstraint.VAR_INDEX_FIELD_NUMBER = 1
static

Definition at line 49 of file MPAbsConstraint.java.


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