Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.FloatObjectiveProto.Builder Class Reference
Inheritance diagram for com.google.ortools.sat.FloatObjectiveProto.Builder:
com.google.ortools.sat.FloatObjectiveProtoOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.FloatObjectiveProto getDefaultInstanceForType ()
 
com.google.ortools.sat.FloatObjectiveProto build ()
 
com.google.ortools.sat.FloatObjectiveProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.FloatObjectiveProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< java.lang.Integer > getVarsList ()
 
int getVarsCount ()
 
int getVars (int index)
 
Builder setVars (int index, int value)
 
Builder addVars (int value)
 
Builder addAllVars (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearVars ()
 
java.util.List< java.lang.Double > getCoeffsList ()
 
int getCoeffsCount ()
 
double getCoeffs (int index)
 
Builder setCoeffs (int index, double value)
 
Builder addCoeffs (double value)
 
Builder addAllCoeffs (java.lang.Iterable<? extends java.lang.Double > values)
 
Builder clearCoeffs ()
 
double getOffset ()
 
Builder setOffset (double value)
 
Builder clearOffset ()
 
boolean getMaximize ()
 
Builder setMaximize (boolean value)
 
Builder clearMaximize ()
 
- Public Member Functions inherited from com.google.ortools.sat.FloatObjectiveProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

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

Member Function Documentation

◆ addAllCoeffs()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addAllCoeffs ( java.lang.Iterable<? extends java.lang.Double > values)

repeated double coeffs = 2;

Parameters
valuesThe coeffs to add.
Returns
This builder for chaining.

Definition at line 732 of file FloatObjectiveProto.java.

◆ addAllVars()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addAllVars ( java.lang.Iterable<? extends java.lang.Integer > values)

repeated int32 vars = 1;

Parameters
valuesThe vars to add.
Returns
This builder for chaining.

Definition at line 642 of file FloatObjectiveProto.java.

◆ addCoeffs()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addCoeffs ( double value)

repeated double coeffs = 2;

Parameters
valueThe coeffs to add.
Returns
This builder for chaining.

Definition at line 719 of file FloatObjectiveProto.java.

◆ addVars()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.addVars ( int value)

repeated int32 vars = 1;

Parameters
valueThe vars to add.
Returns
This builder for chaining.

Definition at line 629 of file FloatObjectiveProto.java.

◆ build()

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

Definition at line 418 of file FloatObjectiveProto.java.

◆ buildPartial()

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

Definition at line 427 of file FloatObjectiveProto.java.

◆ clear()

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

Definition at line 396 of file FloatObjectiveProto.java.

◆ clearCoeffs()

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

repeated double coeffs = 2;

Returns
This builder for chaining.

Definition at line 745 of file FloatObjectiveProto.java.

◆ clearMaximize()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.clearMaximize ( )
The optimization direction. The default is to minimize

bool maximize = 4;

Returns
This builder for chaining.

Definition at line 821 of file FloatObjectiveProto.java.

◆ clearOffset()

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

double offset = 3;

Returns
This builder for chaining.

Definition at line 777 of file FloatObjectiveProto.java.

◆ clearVars()

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

repeated int32 vars = 1;

Returns
This builder for chaining.

Definition at line 655 of file FloatObjectiveProto.java.

◆ getCoeffs()

double com.google.ortools.sat.FloatObjectiveProto.Builder.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 696 of file FloatObjectiveProto.java.

◆ getCoeffsCount()

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

repeated double coeffs = 2;

Returns
The count of coeffs.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 688 of file FloatObjectiveProto.java.

◆ getCoeffsList()

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

repeated double coeffs = 2;

Returns
A list containing the coeffs.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 680 of file FloatObjectiveProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 413 of file FloatObjectiveProto.java.

◆ getDescriptor()

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

Definition at line 373 of file FloatObjectiveProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.FloatObjectiveProto.Builder.getDescriptorForType ( )

Definition at line 408 of file FloatObjectiveProto.java.

◆ getMaximize()

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

bool maximize = 4;

Returns
The maximize.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 794 of file FloatObjectiveProto.java.

◆ getOffset()

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

double offset = 3;

Returns
The offset.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 758 of file FloatObjectiveProto.java.

◆ getVars()

int com.google.ortools.sat.FloatObjectiveProto.Builder.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 606 of file FloatObjectiveProto.java.

◆ getVarsCount()

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

repeated int32 vars = 1;

Returns
The count of vars.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 598 of file FloatObjectiveProto.java.

◆ getVarsList()

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

repeated int32 vars = 1;

Returns
A list containing the vars.

Implements com.google.ortools.sat.FloatObjectiveProtoOrBuilder.

Definition at line 590 of file FloatObjectiveProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 379 of file FloatObjectiveProto.java.

◆ isInitialized()

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

Definition at line 498 of file FloatObjectiveProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.mergeFrom ( com.google.ortools.sat.FloatObjectiveProto other)

Definition at line 462 of file FloatObjectiveProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 503 of file FloatObjectiveProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 453 of file FloatObjectiveProto.java.

◆ setCoeffs()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setCoeffs ( int index,
double value )

repeated double coeffs = 2;

Parameters
indexThe index to set the value at.
valueThe coeffs to set.
Returns
This builder for chaining.

Definition at line 705 of file FloatObjectiveProto.java.

◆ setMaximize()

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

bool maximize = 4;

Parameters
valueThe maximize to set.
Returns
This builder for chaining.

Definition at line 806 of file FloatObjectiveProto.java.

◆ setOffset()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setOffset ( double value)

double offset = 3;

Parameters
valueThe offset to set.
Returns
This builder for chaining.

Definition at line 766 of file FloatObjectiveProto.java.

◆ setVars()

Builder com.google.ortools.sat.FloatObjectiveProto.Builder.setVars ( int index,
int value )

repeated int32 vars = 1;

Parameters
indexThe index to set the value at.
valueThe vars to set.
Returns
This builder for chaining.

Definition at line 615 of file FloatObjectiveProto.java.


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