Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.FloatObjectiveProto Class Reference
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)
 

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 16 of file FloatObjectiveProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 221 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 107 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 99 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 92 of file FloatObjectiveProto.java.

◆ getDefaultInstance()

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

Definition at line 838 of file FloatObjectiveProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 874 of file FloatObjectiveProto.java.

◆ getDescriptor()

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

Definition at line 40 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 134 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 119 of file FloatObjectiveProto.java.

◆ getParserForType()

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

Definition at line 869 of file FloatObjectiveProto.java.

◆ getSerializedSize()

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

Definition at line 177 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 77 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 69 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 62 of file FloatObjectiveProto.java.

◆ hashCode()

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

Definition at line 244 of file FloatObjectiveProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 46 of file FloatObjectiveProto.java.

◆ isInitialized()

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

Definition at line 140 of file FloatObjectiveProto.java.

◆ newBuilder() [1/2]

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

Definition at line 343 of file FloatObjectiveProto.java.

◆ newBuilder() [2/2]

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

Definition at line 346 of file FloatObjectiveProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 342 of file FloatObjectiveProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 356 of file FloatObjectiveProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 314 of file FloatObjectiveProto.java.

◆ parseDelimitedFrom() [2/2]

static 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 320 of file FloatObjectiveProto.java.

◆ parseFrom() [1/10]

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

Definition at line 291 of file FloatObjectiveProto.java.

◆ parseFrom() [2/10]

static 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 295 of file FloatObjectiveProto.java.

◆ parseFrom() [3/10]

static 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 280 of file FloatObjectiveProto.java.

◆ parseFrom() [4/10]

static 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 285 of file FloatObjectiveProto.java.

◆ parseFrom() [5/10]

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

Definition at line 327 of file FloatObjectiveProto.java.

◆ parseFrom() [6/10]

static 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 333 of file FloatObjectiveProto.java.

◆ parseFrom() [7/10]

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

Definition at line 301 of file FloatObjectiveProto.java.

◆ parseFrom() [8/10]

static 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 306 of file FloatObjectiveProto.java.

◆ parseFrom() [9/10]

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

Definition at line 269 of file FloatObjectiveProto.java.

◆ parseFrom() [10/10]

static 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 274 of file FloatObjectiveProto.java.

◆ parser()

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

Definition at line 864 of file FloatObjectiveProto.java.

◆ toBuilder()

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

Definition at line 350 of file FloatObjectiveProto.java.

◆ writeTo()

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

Definition at line 150 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 82 of file FloatObjectiveProto.java.

◆ MAXIMIZE_FIELD_NUMBER

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

Definition at line 123 of file FloatObjectiveProto.java.

◆ OFFSET_FIELD_NUMBER

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

Definition at line 112 of file FloatObjectiveProto.java.

◆ VARS_FIELD_NUMBER

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

Definition at line 52 of file FloatObjectiveProto.java.


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