Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPSolution.Builder Class Reference
Inheritance diagram for com.google.ortools.linearsolver.MPSolution.Builder:
com.google.ortools.linearsolver.MPSolutionOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPSolution getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPSolution build ()
 
com.google.ortools.linearsolver.MPSolution buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPSolution other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasObjectiveValue ()
 
double getObjectiveValue ()
 
Builder setObjectiveValue (double value)
 
Builder clearObjectiveValue ()
 
java.util.List< java.lang.Double > getVariableValueList ()
 
int getVariableValueCount ()
 
double getVariableValue (int index)
 
Builder setVariableValue (int index, double value)
 
Builder addVariableValue (double value)
 
Builder addAllVariableValue (java.lang.Iterable<? extends java.lang.Double > values)
 
Builder clearVariableValue ()
 

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Protobuf type operations_research.MPSolution

Definition at line 288 of file MPSolution.java.

Member Function Documentation

◆ addAllVariableValue()

Builder com.google.ortools.linearsolver.MPSolution.Builder.addAllVariableValue ( java.lang.Iterable<? extends java.lang.Double > values)

repeated double variable_value = 2 [packed = true];

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

Definition at line 567 of file MPSolution.java.

◆ addVariableValue()

Builder com.google.ortools.linearsolver.MPSolution.Builder.addVariableValue ( double value)

repeated double variable_value = 2 [packed = true];

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

Definition at line 554 of file MPSolution.java.

◆ build()

com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.Builder.build ( )

Definition at line 336 of file MPSolution.java.

◆ buildPartial()

com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.Builder.buildPartial ( )

Definition at line 345 of file MPSolution.java.

◆ clear()

Builder com.google.ortools.linearsolver.MPSolution.Builder.clear ( )

Definition at line 316 of file MPSolution.java.

◆ clearObjectiveValue()

Builder com.google.ortools.linearsolver.MPSolution.Builder.clearObjectiveValue ( )

optional double objective_value = 1;

Returns
This builder for chaining.

Definition at line 490 of file MPSolution.java.

◆ clearVariableValue()

Builder com.google.ortools.linearsolver.MPSolution.Builder.clearVariableValue ( )

repeated double variable_value = 2 [packed = true];

Returns
This builder for chaining.

Definition at line 580 of file MPSolution.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.Builder.getDefaultInstanceForType ( )

Definition at line 331 of file MPSolution.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPSolution.Builder.getDescriptor ( )
static

Definition at line 293 of file MPSolution.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPSolution.Builder.getDescriptorForType ( )

Definition at line 326 of file MPSolution.java.

◆ getObjectiveValue()

double com.google.ortools.linearsolver.MPSolution.Builder.getObjectiveValue ( )

optional double objective_value = 1;

Returns
The objectiveValue.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 471 of file MPSolution.java.

◆ getVariableValue()

double com.google.ortools.linearsolver.MPSolution.Builder.getVariableValue ( int index)

repeated double variable_value = 2 [packed = true];

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

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 531 of file MPSolution.java.

◆ getVariableValueCount()

int com.google.ortools.linearsolver.MPSolution.Builder.getVariableValueCount ( )

repeated double variable_value = 2 [packed = true];

Returns
The count of variableValue.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 523 of file MPSolution.java.

◆ getVariableValueList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolution.Builder.getVariableValueList ( )

repeated double variable_value = 2 [packed = true];

Returns
A list containing the variableValue.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 515 of file MPSolution.java.

◆ hasObjectiveValue()

boolean com.google.ortools.linearsolver.MPSolution.Builder.hasObjectiveValue ( )

optional double objective_value = 1;

Returns
Whether the objectiveValue field is set.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 463 of file MPSolution.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.MPSolution.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 299 of file MPSolution.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.MPSolution.Builder.isInitialized ( )

Definition at line 398 of file MPSolution.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.MPSolution.Builder.mergeFrom ( com.google.ortools.linearsolver.MPSolution other)

Definition at line 376 of file MPSolution.java.

◆ mergeFrom() [2/3]

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

Definition at line 403 of file MPSolution.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.MPSolution.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 367 of file MPSolution.java.

◆ setObjectiveValue()

Builder com.google.ortools.linearsolver.MPSolution.Builder.setObjectiveValue ( double value)

optional double objective_value = 1;

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

Definition at line 479 of file MPSolution.java.

◆ setVariableValue()

Builder com.google.ortools.linearsolver.MPSolution.Builder.setVariableValue ( int index,
double value )

repeated double variable_value = 2 [packed = true];

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

Definition at line 540 of file MPSolution.java.


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