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

Public Member Functions

boolean hasObjectiveValue ()
 
double getObjectiveValue ()
 
java.util.List< java.lang.Double > getVariableValueList ()
 
int getVariableValueCount ()
 
double getVariableValue (int index)
 

Detailed Description

Definition at line 7 of file MPSolutionOrBuilder.java.

Member Function Documentation

◆ getObjectiveValue()

double com.google.ortools.linearsolver.MPSolutionOrBuilder.getObjectiveValue ( )

optional double objective_value = 1;

Returns
The objectiveValue.

Implemented in com.google.ortools.linearsolver.MPSolution.Builder, and com.google.ortools.linearsolver.MPSolution.

◆ getVariableValue()

double com.google.ortools.linearsolver.MPSolutionOrBuilder.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.

Implemented in com.google.ortools.linearsolver.MPSolution.Builder, and com.google.ortools.linearsolver.MPSolution.

◆ getVariableValueCount()

int com.google.ortools.linearsolver.MPSolutionOrBuilder.getVariableValueCount ( )

repeated double variable_value = 2 [packed = true];

Returns
The count of variableValue.

Implemented in com.google.ortools.linearsolver.MPSolution.Builder, and com.google.ortools.linearsolver.MPSolution.

◆ getVariableValueList()

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

repeated double variable_value = 2 [packed = true];

Returns
A list containing the variableValue.

Implemented in com.google.ortools.linearsolver.MPSolution.Builder, and com.google.ortools.linearsolver.MPSolution.

◆ hasObjectiveValue()

boolean com.google.ortools.linearsolver.MPSolutionOrBuilder.hasObjectiveValue ( )

optional double objective_value = 1;

Returns
Whether the objectiveValue field is set.

Implemented in com.google.ortools.linearsolver.MPSolution.Builder, and com.google.ortools.linearsolver.MPSolution.


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