Google OR-Tools v9.11
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 ()
 
- Public Member Functions inherited from com.google.ortools.sat.FloatObjectiveProtoOrBuilder

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

Member Function Documentation

◆ equals()

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

Definition at line 220 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 106 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 98 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 91 of file FloatObjectiveProto.java.

◆ getDefaultInstance()

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

Definition at line 837 of file FloatObjectiveProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 873 of file FloatObjectiveProto.java.

◆ getDescriptor()

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

Definition at line 39 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 133 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 118 of file FloatObjectiveProto.java.

◆ getParserForType()

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

Definition at line 868 of file FloatObjectiveProto.java.

◆ getSerializedSize()

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

Definition at line 176 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 76 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 68 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 61 of file FloatObjectiveProto.java.

◆ hashCode()

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

Definition at line 243 of file FloatObjectiveProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 45 of file FloatObjectiveProto.java.

◆ isInitialized()

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

Definition at line 139 of file FloatObjectiveProto.java.

◆ newBuilder() [1/2]

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

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

◆ newBuilderForType() [1/2]

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

Definition at line 341 of file FloatObjectiveProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 355 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 313 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 319 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 290 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 294 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 279 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 284 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 326 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 332 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 300 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 305 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 268 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 273 of file FloatObjectiveProto.java.

◆ parser()

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

Definition at line 863 of file FloatObjectiveProto.java.

◆ toBuilder()

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

Definition at line 349 of file FloatObjectiveProto.java.

◆ writeTo()

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

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

◆ MAXIMIZE_FIELD_NUMBER

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

Definition at line 122 of file FloatObjectiveProto.java.

◆ OFFSET_FIELD_NUMBER

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

Definition at line 111 of file FloatObjectiveProto.java.

◆ VARS_FIELD_NUMBER

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

Definition at line 51 of file FloatObjectiveProto.java.


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