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

Classes

class  Builder
 

Public Member Functions

boolean hasObjectiveValue ()
 
double getObjectiveValue ()
 
java.util.List< java.lang.Double > getVariableValueList ()
 
int getVariableValueCount ()
 
double getVariableValue (int index)
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< MPSolutiongetParserForType ()
 
com.google.ortools.linearsolver.MPSolution getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPSolutionOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.MPSolution parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPSolution parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPSolution parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPSolution parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.linearsolver.MPSolution prototype)
 
static com.google.ortools.linearsolver.MPSolution getDefaultInstance ()
 
static com.google.protobuf.Parser< MPSolutionparser ()
 

Static Public Attributes

static final int OBJECTIVE_VALUE_FIELD_NUMBER = 1
 
static final int VARIABLE_VALUE_FIELD_NUMBER = 2
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

Protobuf type operations_research.MPSolution

Definition at line 10 of file MPSolution.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.linearsolver.MPSolution.equals ( final java.lang.Object obj)

Definition at line 150 of file MPSolution.java.

◆ getDefaultInstance()

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.getDefaultInstance ( )
static

Definition at line 595 of file MPSolution.java.

◆ getDefaultInstanceForType()

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

Definition at line 631 of file MPSolution.java.

◆ getDescriptor()

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

Definition at line 33 of file MPSolution.java.

◆ getObjectiveValue()

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

optional double objective_value = 1;

Returns
The objectiveValue.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 61 of file MPSolution.java.

◆ getParserForType()

com.google.protobuf.Parser< MPSolution > com.google.ortools.linearsolver.MPSolution.getParserForType ( )

Definition at line 626 of file MPSolution.java.

◆ getSerializedSize()

int com.google.ortools.linearsolver.MPSolution.getSerializedSize ( )

Definition at line 124 of file MPSolution.java.

◆ getVariableValue()

double com.google.ortools.linearsolver.MPSolution.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 90 of file MPSolution.java.

◆ getVariableValueCount()

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

repeated double variable_value = 2 [packed = true];

Returns
The count of variableValue.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 82 of file MPSolution.java.

◆ getVariableValueList()

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

repeated double variable_value = 2 [packed = true];

Returns
A list containing the variableValue.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 75 of file MPSolution.java.

◆ hashCode()

int com.google.ortools.linearsolver.MPSolution.hashCode ( )

Definition at line 172 of file MPSolution.java.

◆ hasObjectiveValue()

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

optional double objective_value = 1;

Returns
Whether the objectiveValue field is set.

Implements com.google.ortools.linearsolver.MPSolutionOrBuilder.

Definition at line 53 of file MPSolution.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 39 of file MPSolution.java.

◆ isInitialized()

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

Definition at line 97 of file MPSolution.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.linearsolver.MPSolution.newBuilder ( )
static

Definition at line 266 of file MPSolution.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.linearsolver.MPSolution.newBuilder ( com.google.ortools.linearsolver.MPSolution prototype)
static

Definition at line 269 of file MPSolution.java.

◆ newBuilderForType() [1/2]

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

Definition at line 265 of file MPSolution.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.linearsolver.MPSolution.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 279 of file MPSolution.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 237 of file MPSolution.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 243 of file MPSolution.java.

◆ parseFrom() [1/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 214 of file MPSolution.java.

◆ parseFrom() [2/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 218 of file MPSolution.java.

◆ parseFrom() [3/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 203 of file MPSolution.java.

◆ parseFrom() [4/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 208 of file MPSolution.java.

◆ parseFrom() [5/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 250 of file MPSolution.java.

◆ parseFrom() [6/10]

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

Definition at line 256 of file MPSolution.java.

◆ parseFrom() [7/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 224 of file MPSolution.java.

◆ parseFrom() [8/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 229 of file MPSolution.java.

◆ parseFrom() [9/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 192 of file MPSolution.java.

◆ parseFrom() [10/10]

static com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolution.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 197 of file MPSolution.java.

◆ parser()

static com.google.protobuf.Parser< MPSolution > com.google.ortools.linearsolver.MPSolution.parser ( )
static

Definition at line 621 of file MPSolution.java.

◆ toBuilder()

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

Definition at line 273 of file MPSolution.java.

◆ writeTo()

void com.google.ortools.linearsolver.MPSolution.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 107 of file MPSolution.java.

Member Data Documentation

◆ OBJECTIVE_VALUE_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPSolution.OBJECTIVE_VALUE_FIELD_NUMBER = 1
static

Definition at line 46 of file MPSolution.java.

◆ VARIABLE_VALUE_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPSolution.VARIABLE_VALUE_FIELD_NUMBER = 2
static

Definition at line 65 of file MPSolution.java.


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