Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.FloatObjectiveProtoOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.sat.FloatObjectiveProtoOrBuilder:
com.google.ortools.sat.FloatObjectiveProto com.google.ortools.sat.FloatObjectiveProto.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 ()
 

Detailed Description

Definition at line 7 of file FloatObjectiveProtoOrBuilder.java.

Member Function Documentation

◆ getCoeffs()

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

repeated double coeffs = 2;

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

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getCoeffsCount()

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

repeated double coeffs = 2;

Returns
The count of coeffs.

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getCoeffsList()

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

repeated double coeffs = 2;

Returns
A list containing the coeffs.

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getMaximize()

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

bool maximize = 4;

Returns
The maximize.

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getOffset()

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

double offset = 3;

Returns
The offset.

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getVars()

int com.google.ortools.sat.FloatObjectiveProtoOrBuilder.getVars ( int index)

repeated int32 vars = 1;

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

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

Implemented in com.google.ortools.sat.FloatObjectiveProto.Builder, and com.google.ortools.sat.FloatObjectiveProto.


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