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

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getVarsList ()
 
int getVarsCount ()
 
int getVars (int index)
 
java.util.List< java.lang.Long > getCoeffsList ()
 
int getCoeffsCount ()
 
long getCoeffs (int index)
 
long getOffset ()
 
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< LinearExpressionProtogetParserForType ()
 
com.google.ortools.sat.LinearExpressionProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.LinearExpressionProtoOrBuilder

Static Public Member Functions

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

Static Public Attributes

static final int VARS_FIELD_NUMBER = 1
 
static final int COEFFS_FIELD_NUMBER = 2
 
static final int OFFSET_FIELD_NUMBER = 3
 

Protected Member Functions

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

Detailed Description

Some constraints supports linear expression instead of just using a reference
to a variable. This is especially useful during presolve to reduce the model
size.

Protobuf type operations_research.sat.LinearExpressionProto

Definition at line 16 of file LinearExpressionProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.sat.LinearExpressionProto.equals ( final java.lang.Object obj)

Definition at line 202 of file LinearExpressionProto.java.

◆ getCoeffs()

long com.google.ortools.sat.LinearExpressionProto.getCoeffs ( int index)

repeated int64 coeffs = 2;

Parameters
indexThe index of the element to return.
Returns
The coeffs at the given index.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 107 of file LinearExpressionProto.java.

◆ getCoeffsCount()

int com.google.ortools.sat.LinearExpressionProto.getCoeffsCount ( )

repeated int64 coeffs = 2;

Returns
The count of coeffs.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 99 of file LinearExpressionProto.java.

◆ getCoeffsList()

java.util.List< java.lang.Long > com.google.ortools.sat.LinearExpressionProto.getCoeffsList ( )

repeated int64 coeffs = 2;

Returns
A list containing the coeffs.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 92 of file LinearExpressionProto.java.

◆ getDefaultInstance()

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.getDefaultInstance ( )
static

Definition at line 751 of file LinearExpressionProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.getDefaultInstanceForType ( )

Definition at line 787 of file LinearExpressionProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.LinearExpressionProto.getDescriptor ( )
static

Definition at line 40 of file LinearExpressionProto.java.

◆ getOffset()

long com.google.ortools.sat.LinearExpressionProto.getOffset ( )

int64 offset = 3;

Returns
The offset.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 119 of file LinearExpressionProto.java.

◆ getParserForType()

com.google.protobuf.Parser< LinearExpressionProto > com.google.ortools.sat.LinearExpressionProto.getParserForType ( )

Definition at line 782 of file LinearExpressionProto.java.

◆ getSerializedSize()

int com.google.ortools.sat.LinearExpressionProto.getSerializedSize ( )

Definition at line 159 of file LinearExpressionProto.java.

◆ getVars()

int com.google.ortools.sat.LinearExpressionProto.getVars ( int index)

repeated int32 vars = 1;

Parameters
indexThe index of the element to return.
Returns
The vars at the given index.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 77 of file LinearExpressionProto.java.

◆ getVarsCount()

int com.google.ortools.sat.LinearExpressionProto.getVarsCount ( )

repeated int32 vars = 1;

Returns
The count of vars.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 69 of file LinearExpressionProto.java.

◆ getVarsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.LinearExpressionProto.getVarsList ( )

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements com.google.ortools.sat.LinearExpressionProtoOrBuilder.

Definition at line 62 of file LinearExpressionProto.java.

◆ hashCode()

int com.google.ortools.sat.LinearExpressionProto.hashCode ( )

Definition at line 222 of file LinearExpressionProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.sat.LinearExpressionProto.internalGetFieldAccessorTable ( )
protected

Definition at line 46 of file LinearExpressionProto.java.

◆ isInitialized()

final boolean com.google.ortools.sat.LinearExpressionProto.isInitialized ( )

Definition at line 125 of file LinearExpressionProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.sat.LinearExpressionProto.newBuilder ( )
static

Definition at line 318 of file LinearExpressionProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.sat.LinearExpressionProto.newBuilder ( com.google.ortools.sat.LinearExpressionProto prototype)
static

Definition at line 321 of file LinearExpressionProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.sat.LinearExpressionProto.newBuilderForType ( )

Definition at line 317 of file LinearExpressionProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.LinearExpressionProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 331 of file LinearExpressionProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 289 of file LinearExpressionProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 295 of file LinearExpressionProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 266 of file LinearExpressionProto.java.

◆ parseFrom() [2/10]

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

Definition at line 270 of file LinearExpressionProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 255 of file LinearExpressionProto.java.

◆ parseFrom() [4/10]

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

Definition at line 260 of file LinearExpressionProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 302 of file LinearExpressionProto.java.

◆ parseFrom() [6/10]

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

Definition at line 308 of file LinearExpressionProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 276 of file LinearExpressionProto.java.

◆ parseFrom() [8/10]

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

Definition at line 281 of file LinearExpressionProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.LinearExpressionProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 244 of file LinearExpressionProto.java.

◆ parseFrom() [10/10]

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

Definition at line 249 of file LinearExpressionProto.java.

◆ parser()

static com.google.protobuf.Parser< LinearExpressionProto > com.google.ortools.sat.LinearExpressionProto.parser ( )
static

Definition at line 777 of file LinearExpressionProto.java.

◆ toBuilder()

Builder com.google.ortools.sat.LinearExpressionProto.toBuilder ( )

Definition at line 325 of file LinearExpressionProto.java.

◆ writeTo()

void com.google.ortools.sat.LinearExpressionProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 135 of file LinearExpressionProto.java.

Member Data Documentation

◆ COEFFS_FIELD_NUMBER

final int com.google.ortools.sat.LinearExpressionProto.COEFFS_FIELD_NUMBER = 2
static

Definition at line 82 of file LinearExpressionProto.java.

◆ OFFSET_FIELD_NUMBER

final int com.google.ortools.sat.LinearExpressionProto.OFFSET_FIELD_NUMBER = 3
static

Definition at line 112 of file LinearExpressionProto.java.

◆ VARS_FIELD_NUMBER

final int com.google.ortools.sat.LinearExpressionProto.VARS_FIELD_NUMBER = 1
static

Definition at line 52 of file LinearExpressionProto.java.


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