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

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
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< MPArrayConstraintgetParserForType ()
 
com.google.ortools.linearsolver.MPArrayConstraint getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPArrayConstraintOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPArrayConstraint parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPArrayConstraint 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.MPArrayConstraint prototype)
 
static com.google.ortools.linearsolver.MPArrayConstraint getDefaultInstance ()
 
static com.google.protobuf.Parser< MPArrayConstraintparser ()
 

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 equal to a function on a set of variables.

Protobuf type operations_research.MPArrayConstraint

Definition at line 14 of file MPArrayConstraint.java.

Member Function Documentation

◆ equals()

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

Definition at line 158 of file MPArrayConstraint.java.

◆ getDefaultInstance()

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

Definition at line 626 of file MPArrayConstraint.java.

◆ getDefaultInstanceForType()

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

Definition at line 662 of file MPArrayConstraint.java.

◆ getDescriptor()

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

Definition at line 37 of file MPArrayConstraint.java.

◆ getParserForType()

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

Definition at line 657 of file MPArrayConstraint.java.

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
The resultantVarIndex.

Implements com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.

Definition at line 106 of file MPArrayConstraint.java.

◆ getSerializedSize()

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

Definition at line 134 of file MPArrayConstraint.java.

◆ getVarIndex()

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

◆ getVarIndexCount()

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

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayConstraint.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 64 of file MPArrayConstraint.java.

◆ hashCode()

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

Definition at line 179 of file MPArrayConstraint.java.

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 2;

Returns
Whether the resultantVarIndex field is set.

Implements com.google.ortools.linearsolver.MPArrayConstraintOrBuilder.

Definition at line 98 of file MPArrayConstraint.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 43 of file MPArrayConstraint.java.

◆ isInitialized()

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

Definition at line 112 of file MPArrayConstraint.java.

◆ newBuilder() [1/2]

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

Definition at line 272 of file MPArrayConstraint.java.

◆ newBuilder() [2/2]

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

Definition at line 275 of file MPArrayConstraint.java.

◆ newBuilderForType() [1/2]

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

Definition at line 271 of file MPArrayConstraint.java.

◆ newBuilderForType() [2/2]

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

Definition at line 285 of file MPArrayConstraint.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 243 of file MPArrayConstraint.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 249 of file MPArrayConstraint.java.

◆ parseFrom() [1/10]

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

Definition at line 220 of file MPArrayConstraint.java.

◆ parseFrom() [2/10]

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

Definition at line 224 of file MPArrayConstraint.java.

◆ parseFrom() [3/10]

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

Definition at line 209 of file MPArrayConstraint.java.

◆ parseFrom() [4/10]

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

Definition at line 214 of file MPArrayConstraint.java.

◆ parseFrom() [5/10]

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

Definition at line 256 of file MPArrayConstraint.java.

◆ parseFrom() [6/10]

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

Definition at line 262 of file MPArrayConstraint.java.

◆ parseFrom() [7/10]

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

Definition at line 230 of file MPArrayConstraint.java.

◆ parseFrom() [8/10]

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

Definition at line 235 of file MPArrayConstraint.java.

◆ parseFrom() [9/10]

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

Definition at line 198 of file MPArrayConstraint.java.

◆ parseFrom() [10/10]

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

Definition at line 203 of file MPArrayConstraint.java.

◆ parser()

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

Definition at line 652 of file MPArrayConstraint.java.

◆ toBuilder()

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

Definition at line 279 of file MPArrayConstraint.java.

◆ writeTo()

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

Definition at line 122 of file MPArrayConstraint.java.

Member Data Documentation

◆ RESULTANT_VAR_INDEX_FIELD_NUMBER

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

Definition at line 91 of file MPArrayConstraint.java.

◆ VAR_INDEX_FIELD_NUMBER

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

Definition at line 50 of file MPArrayConstraint.java.


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