Google OR-Tools v9.9
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

java.lang.Object newInstance (UnusedPrivateParameter unused)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.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 218 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 104 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 96 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 89 of file FloatObjectiveProto.java.

◆ getDefaultInstance()

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

Definition at line 879 of file FloatObjectiveProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 915 of file FloatObjectiveProto.java.

◆ getDescriptor()

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

Definition at line 37 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 131 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 116 of file FloatObjectiveProto.java.

◆ getParserForType()

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

Definition at line 910 of file FloatObjectiveProto.java.

◆ getSerializedSize()

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

Definition at line 174 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 74 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 66 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 59 of file FloatObjectiveProto.java.

◆ hashCode()

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

Definition at line 241 of file FloatObjectiveProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 43 of file FloatObjectiveProto.java.

◆ isInitialized()

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

Definition at line 137 of file FloatObjectiveProto.java.

◆ newBuilder() [1/2]

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

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

◆ newBuilderForType() [1/2]

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

Definition at line 339 of file FloatObjectiveProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 353 of file FloatObjectiveProto.java.

◆ newInstance()

java.lang.Object com.google.ortools.sat.FloatObjectiveProto.newInstance ( UnusedPrivateParameter unused)
protected

Definition at line 31 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 311 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 317 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 288 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 292 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 277 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 282 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 324 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 330 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 298 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 303 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 266 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 271 of file FloatObjectiveProto.java.

◆ parser()

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

Definition at line 905 of file FloatObjectiveProto.java.

◆ toBuilder()

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

Definition at line 347 of file FloatObjectiveProto.java.

◆ writeTo()

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

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

◆ MAXIMIZE_FIELD_NUMBER

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

Definition at line 120 of file FloatObjectiveProto.java.

◆ OFFSET_FIELD_NUMBER

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

Definition at line 109 of file FloatObjectiveProto.java.

◆ VARS_FIELD_NUMBER

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

Definition at line 49 of file FloatObjectiveProto.java.


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