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

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
boolean hasConstant ()
 
double getConstant ()
 
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< MPArrayWithConstantConstraintgetParserForType ()
 
com.google.ortools.linearsolver.MPArrayWithConstantConstraint getDefaultInstanceForType ()
 

Static Public Member Functions

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

Static Public Attributes

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

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 and,
optionally, a constant.

Protobuf type operations_research.MPArrayWithConstantConstraint

Definition at line 16 of file MPArrayWithConstantConstraint.java.

Member Function Documentation

◆ equals()

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

Definition at line 189 of file MPArrayWithConstantConstraint.java.

◆ getConstant()

double com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getConstant ( )

optional double constant = 2;

Returns
The constant.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 111 of file MPArrayWithConstantConstraint.java.

◆ getDefaultInstance()

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

Definition at line 729 of file MPArrayWithConstantConstraint.java.

◆ getDefaultInstanceForType()

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

Definition at line 765 of file MPArrayWithConstantConstraint.java.

◆ getDescriptor()

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

Definition at line 39 of file MPArrayWithConstantConstraint.java.

◆ getParserForType()

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

Definition at line 760 of file MPArrayWithConstantConstraint.java.

◆ getResultantVarIndex()

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

optional int32 resultant_var_index = 3;

Returns
The resultantVarIndex.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 130 of file MPArrayWithConstantConstraint.java.

◆ getSerializedSize()

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

Definition at line 161 of file MPArrayWithConstantConstraint.java.

◆ getVarIndex()

int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getVarIndex ( int index)
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

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

Definition at line 92 of file MPArrayWithConstantConstraint.java.

◆ getVarIndexCount()

int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getVarIndexCount ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
The count of varIndex.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 79 of file MPArrayWithConstantConstraint.java.

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayWithConstantConstraint.getVarIndexList ( )
Variable indices are relative to the "variable" field in MPModelProto.
resultant_var = f(var_1, var_2, ..., constant)

repeated int32 var_index = 1;

Returns
A list containing the varIndex.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 67 of file MPArrayWithConstantConstraint.java.

◆ hasConstant()

boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraint.hasConstant ( )

optional double constant = 2;

Returns
Whether the constant field is set.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 103 of file MPArrayWithConstantConstraint.java.

◆ hashCode()

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

Definition at line 216 of file MPArrayWithConstantConstraint.java.

◆ hasResultantVarIndex()

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

optional int32 resultant_var_index = 3;

Returns
Whether the resultantVarIndex field is set.

Implements com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.

Definition at line 122 of file MPArrayWithConstantConstraint.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 45 of file MPArrayWithConstantConstraint.java.

◆ isInitialized()

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

Definition at line 136 of file MPArrayWithConstantConstraint.java.

◆ newBuilder() [1/2]

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

Definition at line 314 of file MPArrayWithConstantConstraint.java.

◆ newBuilder() [2/2]

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

Definition at line 317 of file MPArrayWithConstantConstraint.java.

◆ newBuilderForType() [1/2]

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

Definition at line 313 of file MPArrayWithConstantConstraint.java.

◆ newBuilderForType() [2/2]

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

Definition at line 327 of file MPArrayWithConstantConstraint.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 285 of file MPArrayWithConstantConstraint.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 291 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [1/10]

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

Definition at line 262 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [2/10]

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

Definition at line 266 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [3/10]

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

Definition at line 251 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [4/10]

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

Definition at line 256 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [5/10]

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

Definition at line 298 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [6/10]

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

Definition at line 304 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [7/10]

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

Definition at line 272 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [8/10]

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

Definition at line 277 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [9/10]

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

Definition at line 240 of file MPArrayWithConstantConstraint.java.

◆ parseFrom() [10/10]

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

Definition at line 245 of file MPArrayWithConstantConstraint.java.

◆ parser()

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

Definition at line 755 of file MPArrayWithConstantConstraint.java.

◆ toBuilder()

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

Definition at line 321 of file MPArrayWithConstantConstraint.java.

◆ writeTo()

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

Definition at line 146 of file MPArrayWithConstantConstraint.java.

Member Data Documentation

◆ CONSTANT_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.CONSTANT_FIELD_NUMBER = 2
static

Definition at line 96 of file MPArrayWithConstantConstraint.java.

◆ RESULTANT_VAR_INDEX_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPArrayWithConstantConstraint.RESULTANT_VAR_INDEX_FIELD_NUMBER = 3
static

Definition at line 115 of file MPArrayWithConstantConstraint.java.

◆ VAR_INDEX_FIELD_NUMBER

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

Definition at line 52 of file MPArrayWithConstantConstraint.java.


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