Java Reference

Java Reference

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 15 of file LinearExpressionProto.java.

Classes

class  Builder
 

Public Member Functions

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ()
 
.lang.Override java.util.List< java.lang.Integer > getVarsList ()
 repeated int32 vars = 1; More...
 
int getVarsCount ()
 repeated int32 vars = 1; More...
 
int getVars (int index)
 repeated int32 vars = 1; More...
 
.lang.Override java.util.List< java.lang.Long > getCoeffsList ()
 repeated int64 coeffs = 2; More...
 
int getCoeffsCount ()
 repeated int64 coeffs = 2; More...
 
long getCoeffs (int index)
 repeated int64 coeffs = 2; More...
 
.lang.Override long getOffset ()
 int64 offset = 3; More...
 
.lang.Override final boolean isInitialized ()
 
.lang.Override void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
.lang.Override int getSerializedSize ()
 
.lang.Override boolean equals (final java.lang.Object obj)
 
.lang.Override int hashCode ()
 
.lang.Override Builder newBuilderForType ()
 
.lang.Override Builder toBuilder ()
 
.lang.Override com.google.protobuf.Parser< LinearExpressionProtogetParserForType ()
 
.lang.Override com.google.ortools.sat.LinearExpressionProto getDefaultInstanceForType ()
 

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

.lang.Override java.lang.Object newInstance (UnusedPrivateParameter unused)
 
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
.lang.Override Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Member Function Documentation

◆ equals()

.lang.Override boolean equals ( final java.lang.Object  obj)

Definition at line 291 of file LinearExpressionProto.java.

◆ getCoeffs()

long getCoeffs ( int  index)

repeated int64 coeffs = 2;

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

Implements LinearExpressionProtoOrBuilder.

Definition at line 196 of file LinearExpressionProto.java.

◆ getCoeffsCount()

int getCoeffsCount ( )

repeated int64 coeffs = 2;

Returns
The count of coeffs.

Implements LinearExpressionProtoOrBuilder.

Definition at line 188 of file LinearExpressionProto.java.

◆ getCoeffsList()

.lang.Override java.util.List<java.lang.Long> getCoeffsList ( )

repeated int64 coeffs = 2;

Returns
A list containing the coeffs.

Implements LinearExpressionProtoOrBuilder.

Definition at line 181 of file LinearExpressionProto.java.

◆ getDefaultInstance()

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

Definition at line 822 of file LinearExpressionProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 847 of file LinearExpressionProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ( )
static

Definition at line 133 of file LinearExpressionProto.java.

◆ getOffset()

.lang.Override long getOffset ( )

int64 offset = 3;

Returns
The offset.

Implements LinearExpressionProtoOrBuilder.

Definition at line 208 of file LinearExpressionProto.java.

◆ getParserForType()

.lang.Override com.google.protobuf.Parser<LinearExpressionProto> getParserForType ( )

Definition at line 842 of file LinearExpressionProto.java.

◆ getSerializedSize()

.lang.Override int getSerializedSize ( )

Definition at line 248 of file LinearExpressionProto.java.

◆ getUnknownFields()

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ( )

Definition at line 38 of file LinearExpressionProto.java.

◆ getVars()

int getVars ( int  index)

repeated int32 vars = 1;

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

Implements LinearExpressionProtoOrBuilder.

Definition at line 168 of file LinearExpressionProto.java.

◆ getVarsCount()

int getVarsCount ( )

repeated int32 vars = 1;

Returns
The count of vars.

Implements LinearExpressionProtoOrBuilder.

Definition at line 160 of file LinearExpressionProto.java.

◆ getVarsList()

.lang.Override java.util.List<java.lang.Integer> getVarsList ( )

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements LinearExpressionProtoOrBuilder.

Definition at line 153 of file LinearExpressionProto.java.

◆ hashCode()

.lang.Override int hashCode ( )

Definition at line 311 of file LinearExpressionProto.java.

◆ internalGetFieldAccessorTable()

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ( )
protected

Definition at line 139 of file LinearExpressionProto.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )

Definition at line 214 of file LinearExpressionProto.java.

◆ newBuilder() [1/2]

static Builder newBuilder ( )
static

Definition at line 405 of file LinearExpressionProto.java.

◆ newBuilder() [2/2]

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

Definition at line 408 of file LinearExpressionProto.java.

◆ newBuilderForType() [1/2]

.lang.Override Builder newBuilderForType ( )

Definition at line 404 of file LinearExpressionProto.java.

◆ newBuilderForType() [2/2]

.lang.Override Builder newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent  parent)
protected

Definition at line 418 of file LinearExpressionProto.java.

◆ newInstance()

.lang.Override java.lang.Object newInstance ( UnusedPrivateParameter  unused)
protected

Definition at line 31 of file LinearExpressionProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 377 of file LinearExpressionProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 382 of file LinearExpressionProto.java.

◆ parseFrom() [1/10]

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

Definition at line 355 of file LinearExpressionProto.java.

◆ parseFrom() [2/10]

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

Definition at line 359 of file LinearExpressionProto.java.

◆ parseFrom() [3/10]

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

Definition at line 344 of file LinearExpressionProto.java.

◆ parseFrom() [4/10]

static 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 349 of file LinearExpressionProto.java.

◆ parseFrom() [5/10]

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

Definition at line 389 of file LinearExpressionProto.java.

◆ parseFrom() [6/10]

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

Definition at line 395 of file LinearExpressionProto.java.

◆ parseFrom() [7/10]

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

Definition at line 365 of file LinearExpressionProto.java.

◆ parseFrom() [8/10]

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

Definition at line 370 of file LinearExpressionProto.java.

◆ parseFrom() [9/10]

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

Definition at line 333 of file LinearExpressionProto.java.

◆ parseFrom() [10/10]

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

Definition at line 338 of file LinearExpressionProto.java.

◆ parser()

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

Definition at line 837 of file LinearExpressionProto.java.

◆ toBuilder()

.lang.Override Builder toBuilder ( )

Definition at line 412 of file LinearExpressionProto.java.

◆ writeTo()

.lang.Override void writeTo ( com.google.protobuf.CodedOutputStream  output) throws java.io.IOException

Definition at line 224 of file LinearExpressionProto.java.

Member Data Documentation

◆ COEFFS_FIELD_NUMBER

final int COEFFS_FIELD_NUMBER = 2
static

Definition at line 173 of file LinearExpressionProto.java.

◆ OFFSET_FIELD_NUMBER

final int OFFSET_FIELD_NUMBER = 3
static

Definition at line 201 of file LinearExpressionProto.java.

◆ VARS_FIELD_NUMBER

final int VARS_FIELD_NUMBER = 1
static

Definition at line 145 of file LinearExpressionProto.java.


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