Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.FloatObjectiveProto Class Reference

Detailed Description

A linear floating point objective: sum coeffs[i] * vars[i] + offset.
Note that the variable can only still take integer value.

Protobuf type operations_research.sat.FloatObjectiveProto

Definition at line 17 of file FloatObjectiveProto.java.

Inheritance diagram for com.google.ortools.sat.FloatObjectiveProto:
com.google.ortools.sat.FloatObjectiveProtoOrBuilder

Classes

class  Builder

Public Member Functions

java.util.List< java.lang.Integer > getVarsList ()
int getVarsCount ()
int getVars (int index)
java.util.List< java.lang.Double > getCoeffsList ()
int getCoeffsCount ()
double getCoeffs (int index)
double getOffset ()
boolean getMaximize ()
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< FloatObjectiveProtogetParserForType ()
com.google.ortools.sat.FloatObjectiveProto getDefaultInstanceForType ()

Static Public Member Functions

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

Static Public Attributes

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

Protected Member Functions

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

Member Function Documentation

◆ equals()

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

Definition at line 222 of file FloatObjectiveProto.java.

◆ getCoeffs()

double com.google.ortools.sat.FloatObjectiveProto.getCoeffs ( int index)

repeated double coeffs = 2;

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

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 108 of file FloatObjectiveProto.java.

◆ getCoeffsCount()

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

repeated double coeffs = 2;

Returns
The count of coeffs.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 100 of file FloatObjectiveProto.java.

◆ getCoeffsList()

java.util.List< java.lang.Double > com.google.ortools.sat.FloatObjectiveProto.getCoeffsList ( )

repeated double coeffs = 2;

Returns
A list containing the coeffs.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 93 of file FloatObjectiveProto.java.

◆ getDefaultInstance()

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

Definition at line 839 of file FloatObjectiveProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 875 of file FloatObjectiveProto.java.

◆ getDescriptor()

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

Definition at line 41 of file FloatObjectiveProto.java.

◆ getMaximize()

boolean com.google.ortools.sat.FloatObjectiveProto.getMaximize ( )
The optimization direction. The default is to minimize

bool maximize = 4;

Returns
The maximize.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 135 of file FloatObjectiveProto.java.

◆ getOffset()

double com.google.ortools.sat.FloatObjectiveProto.getOffset ( )

double offset = 3;

Returns
The offset.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 120 of file FloatObjectiveProto.java.

◆ getParserForType()

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

Definition at line 870 of file FloatObjectiveProto.java.

◆ getSerializedSize()

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

Definition at line 178 of file FloatObjectiveProto.java.

◆ getVars()

int com.google.ortools.sat.FloatObjectiveProto.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.FloatObjectiveProtoOrBuilder.

Definition at line 78 of file FloatObjectiveProto.java.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 70 of file FloatObjectiveProto.java.

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 63 of file FloatObjectiveProto.java.

◆ hashCode()

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

Definition at line 245 of file FloatObjectiveProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 47 of file FloatObjectiveProto.java.

◆ isInitialized()

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

Definition at line 141 of file FloatObjectiveProto.java.

◆ newBuilder() [1/2]

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

Definition at line 344 of file FloatObjectiveProto.java.

◆ newBuilder() [2/2]

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

Definition at line 347 of file FloatObjectiveProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 343 of file FloatObjectiveProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 357 of file FloatObjectiveProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 315 of file FloatObjectiveProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 321 of file FloatObjectiveProto.java.

◆ parseFrom() [1/10]

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

Definition at line 292 of file FloatObjectiveProto.java.

◆ parseFrom() [2/10]

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

Definition at line 296 of file FloatObjectiveProto.java.

◆ parseFrom() [3/10]

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

Definition at line 281 of file FloatObjectiveProto.java.

◆ parseFrom() [4/10]

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

Definition at line 286 of file FloatObjectiveProto.java.

◆ parseFrom() [5/10]

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

Definition at line 328 of file FloatObjectiveProto.java.

◆ parseFrom() [6/10]

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

Definition at line 334 of file FloatObjectiveProto.java.

◆ parseFrom() [7/10]

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

Definition at line 302 of file FloatObjectiveProto.java.

◆ parseFrom() [8/10]

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

Definition at line 307 of file FloatObjectiveProto.java.

◆ parseFrom() [9/10]

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

Definition at line 270 of file FloatObjectiveProto.java.

◆ parseFrom() [10/10]

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

Definition at line 275 of file FloatObjectiveProto.java.

◆ parser()

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

Definition at line 865 of file FloatObjectiveProto.java.

◆ toBuilder()

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

Definition at line 351 of file FloatObjectiveProto.java.

◆ writeTo()

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

Definition at line 151 of file FloatObjectiveProto.java.

Member Data Documentation

◆ COEFFS_FIELD_NUMBER

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

Definition at line 83 of file FloatObjectiveProto.java.

◆ MAXIMIZE_FIELD_NUMBER

final int com.google.ortools.sat.FloatObjectiveProto.MAXIMIZE_FIELD_NUMBER = 4
static

Definition at line 124 of file FloatObjectiveProto.java.

◆ OFFSET_FIELD_NUMBER

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

Definition at line 113 of file FloatObjectiveProto.java.

◆ VARS_FIELD_NUMBER

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

Definition at line 53 of file FloatObjectiveProto.java.


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