Google OR-Tools v9.11
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 ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPSolutionOrBuilder

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 287 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 566 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 553 of file MPSolution.java.

◆ build()

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

Definition at line 335 of file MPSolution.java.

◆ buildPartial()

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

Definition at line 344 of file MPSolution.java.

◆ clear()

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

Definition at line 315 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 489 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 579 of file MPSolution.java.

◆ getDefaultInstanceForType()

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

Definition at line 330 of file MPSolution.java.

◆ getDescriptor()

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

Definition at line 292 of file MPSolution.java.

◆ getDescriptorForType()

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

Definition at line 325 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 470 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 530 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 522 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 514 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 462 of file MPSolution.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 298 of file MPSolution.java.

◆ isInitialized()

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

Definition at line 397 of file MPSolution.java.

◆ mergeFrom() [1/3]

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

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

◆ mergeFrom() [3/3]

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

Definition at line 366 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 478 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 539 of file MPSolution.java.


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