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

Detailed Description

Protobuf type operations_research.MPSolution

Definition at line 289 of file MPSolution.java.

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 ()

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 568 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 555 of file MPSolution.java.

◆ build()

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

Definition at line 337 of file MPSolution.java.

◆ buildPartial()

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

Definition at line 346 of file MPSolution.java.

◆ clear()

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

Definition at line 317 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 491 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 581 of file MPSolution.java.

◆ getDefaultInstanceForType()

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

Definition at line 332 of file MPSolution.java.

◆ getDescriptor()

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

Definition at line 294 of file MPSolution.java.

◆ getDescriptorForType()

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

Definition at line 327 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 472 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 532 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 524 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 516 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 464 of file MPSolution.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 300 of file MPSolution.java.

◆ isInitialized()

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

Definition at line 399 of file MPSolution.java.

◆ mergeFrom() [1/3]

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

Definition at line 377 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 404 of file MPSolution.java.

◆ mergeFrom() [3/3]

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

Definition at line 368 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 480 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 541 of file MPSolution.java.


The documentation for this class was generated from the following file:
  • build/java/ortools-java/src/main/java/com/google/ortools/linearsolver/MPSolution.java