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

Classes

class  Annotation
 
interface  AnnotationOrBuilder
 
class  Builder
 

Public Member Functions

java.util.List< com.google.ortools.linearsolver.MPVariableProtogetVariableList ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuildergetVariableOrBuilderList ()
 
int getVariableCount ()
 
com.google.ortools.linearsolver.MPVariableProto getVariable (int index)
 
com.google.ortools.linearsolver.MPVariableProtoOrBuilder getVariableOrBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPConstraintProtogetConstraintList ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuildergetConstraintOrBuilderList ()
 
int getConstraintCount ()
 
com.google.ortools.linearsolver.MPConstraintProto getConstraint (int index)
 
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder getConstraintOrBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProtogetGeneralConstraintList ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuildergetGeneralConstraintOrBuilderList ()
 
int getGeneralConstraintCount ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto getGeneralConstraint (int index)
 
com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder getGeneralConstraintOrBuilder (int index)
 
boolean hasMaximize ()
 
boolean getMaximize ()
 
boolean hasObjectiveOffset ()
 
double getObjectiveOffset ()
 
boolean hasQuadraticObjective ()
 
com.google.ortools.linearsolver.MPQuadraticObjective getQuadraticObjective ()
 
com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder getQuadraticObjectiveOrBuilder ()
 
boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
boolean hasSolutionHint ()
 
com.google.ortools.linearsolver.PartialVariableAssignment getSolutionHint ()
 
com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder ()
 
java.util.List< com.google.ortools.linearsolver.MPModelProto.AnnotationgetAnnotationList ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuildergetAnnotationOrBuilderList ()
 
int getAnnotationCount ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation getAnnotation (int index)
 
com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder getAnnotationOrBuilder (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< MPModelProtogetParserForType ()
 
com.google.ortools.linearsolver.MPModelProto getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto 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.MPModelProto prototype)
 
static com.google.ortools.linearsolver.MPModelProto getDefaultInstance ()
 
static com.google.protobuf.Parser< MPModelProtoparser ()
 

Static Public Attributes

static final int VARIABLE_FIELD_NUMBER = 3
 
static final int CONSTRAINT_FIELD_NUMBER = 4
 
static final int GENERAL_CONSTRAINT_FIELD_NUMBER = 7
 
static final int MAXIMIZE_FIELD_NUMBER = 1
 
static final int OBJECTIVE_OFFSET_FIELD_NUMBER = 2
 
static final int QUADRATIC_OBJECTIVE_FIELD_NUMBER = 8
 
static final int NAME_FIELD_NUMBER = 5
 
static final int SOLUTION_HINT_FIELD_NUMBER = 6
 
static final int ANNOTATION_FIELD_NUMBER = 9
 
static final com.google.protobuf.Parser< MPModelProtoPARSER
 

Protected Member Functions

java.lang.Object newInstance (UnusedPrivateParameter unused)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Detailed Description

MPModelProto contains all the information for a Linear Programming model.

Protobuf type operations_research.MPModelProto

Definition at line 14 of file MPModelProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 2008 of file MPModelProto.java.

◆ getAnnotation()

com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.getAnnotation ( int index)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1905 of file MPModelProto.java.

◆ getAnnotationCount()

int com.google.ortools.linearsolver.MPModelProto.getAnnotationCount ( )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1898 of file MPModelProto.java.

◆ getAnnotationList()

java.util.List< com.google.ortools.linearsolver.MPModelProto.Annotation > com.google.ortools.linearsolver.MPModelProto.getAnnotationList ( )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1883 of file MPModelProto.java.

◆ getAnnotationOrBuilder()

com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder com.google.ortools.linearsolver.MPModelProto.getAnnotationOrBuilder ( int index)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1912 of file MPModelProto.java.

◆ getAnnotationOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder > com.google.ortools.linearsolver.MPModelProto.getAnnotationOrBuilderList ( )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1891 of file MPModelProto.java.

◆ getConstraint()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelProto.getConstraint ( int index)
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1570 of file MPModelProto.java.

◆ getConstraintCount()

int com.google.ortools.linearsolver.MPModelProto.getConstraintCount ( )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1559 of file MPModelProto.java.

◆ getConstraintList()

java.util.List< com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelProto.getConstraintList ( )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1536 of file MPModelProto.java.

◆ getConstraintOrBuilder()

com.google.ortools.linearsolver.MPConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.getConstraintOrBuilder ( int index)
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1581 of file MPModelProto.java.

◆ getConstraintOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.getConstraintOrBuilderList ( )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1548 of file MPModelProto.java.

◆ getDefaultInstance()

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

Definition at line 4521 of file MPModelProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 4557 of file MPModelProto.java.

◆ getDescriptor()

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

Definition at line 39 of file MPModelProto.java.

◆ getGeneralConstraint()

com.google.ortools.linearsolver.MPGeneralConstraintProto com.google.ortools.linearsolver.MPModelProto.getGeneralConstraint ( int index)
All the general constraints appearing in the model. Note that not all
solvers support all types of general constraints.

repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1635 of file MPModelProto.java.

◆ getGeneralConstraintCount()

int com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintCount ( )
All the general constraints appearing in the model. Note that not all
solvers support all types of general constraints.

repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1623 of file MPModelProto.java.

◆ getGeneralConstraintList()

java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto > com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintList ( )
All the general constraints appearing in the model. Note that not all
solvers support all types of general constraints.

repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1598 of file MPModelProto.java.

◆ getGeneralConstraintOrBuilder()

com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintOrBuilder ( int index)
All the general constraints appearing in the model. Note that not all
solvers support all types of general constraints.

repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1647 of file MPModelProto.java.

◆ getGeneralConstraintOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintOrBuilderList ( )
All the general constraints appearing in the model. Note that not all
solvers support all types of general constraints.

repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1611 of file MPModelProto.java.

◆ getMaximize()

boolean com.google.ortools.linearsolver.MPModelProto.getMaximize ( )
True if the problem is a maximization problem. Minimize by default.

optional bool maximize = 1 [default = false];

Returns
The maximize.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1675 of file MPModelProto.java.

◆ getName()

java.lang.String com.google.ortools.linearsolver.MPModelProto.getName ( )
Name of the model.

optional string name = 5 [default = ""];

Returns
The name.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1771 of file MPModelProto.java.

◆ getNameBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelProto.getNameBytes ( )
Name of the model.

optional string name = 5 [default = ""];

Returns
The bytes for name.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1795 of file MPModelProto.java.

◆ getObjectiveOffset()

double com.google.ortools.linearsolver.MPModelProto.getObjectiveOffset ( )
Offset for the objective function. Must be finite.

optional double objective_offset = 2 [default = 0];

Returns
The objectiveOffset.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1702 of file MPModelProto.java.

◆ getParserForType()

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

Definition at line 4552 of file MPModelProto.java.

◆ getQuadraticObjective()

com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPModelProto.getQuadraticObjective ( )
Optionally, a quadratic objective.
As of 2019/06, only SCIP and Gurobi support quadratic objectives.

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Returns
The quadraticObjective.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1731 of file MPModelProto.java.

◆ getQuadraticObjectiveOrBuilder()

com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder com.google.ortools.linearsolver.MPModelProto.getQuadraticObjectiveOrBuilder ( )
Optionally, a quadratic objective.
As of 2019/06, only SCIP and Gurobi support quadratic objectives.

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1743 of file MPModelProto.java.

◆ getSerializedSize()

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

Definition at line 1962 of file MPModelProto.java.

◆ getSolutionHint()

com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.MPModelProto.getSolutionHint ( )
Solution hint.

If a feasible or almost-feasible solution to the problem is already known,
it may be helpful to pass it to the solver so that it can be used. A solver
that supports this feature will try to use this information to create its
initial feasible solution.

Note that it may not always be faster to give a hint like this to the
solver. There is also no guarantee that the solver will use this hint or
try to return a solution "close" to this assignment in case of multiple
optimal solutions.

optional .operations_research.PartialVariableAssignment solution_hint = 6;

Returns
The solutionHint.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1851 of file MPModelProto.java.

◆ getSolutionHintOrBuilder()

com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder com.google.ortools.linearsolver.MPModelProto.getSolutionHintOrBuilder ( )
Solution hint.

If a feasible or almost-feasible solution to the problem is already known,
it may be helpful to pass it to the solver so that it can be used. A solver
that supports this feature will try to use this information to create its
initial feasible solution.

Note that it may not always be faster to give a hint like this to the
solver. There is also no guarantee that the solver will use this hint or
try to return a solution "close" to this assignment in case of multiple
optimal solutions.

optional .operations_research.PartialVariableAssignment solution_hint = 6;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1872 of file MPModelProto.java.

◆ getVariable()

com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelProto.getVariable ( int index)
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1509 of file MPModelProto.java.

◆ getVariableCount()

int com.google.ortools.linearsolver.MPModelProto.getVariableCount ( )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1498 of file MPModelProto.java.

◆ getVariableList()

java.util.List< com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelProto.getVariableList ( )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1475 of file MPModelProto.java.

◆ getVariableOrBuilder()

com.google.ortools.linearsolver.MPVariableProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.getVariableOrBuilder ( int index)
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1520 of file MPModelProto.java.

◆ getVariableOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.getVariableOrBuilderList ( )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1487 of file MPModelProto.java.

◆ hashCode()

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

Definition at line 2056 of file MPModelProto.java.

◆ hasMaximize()

boolean com.google.ortools.linearsolver.MPModelProto.hasMaximize ( )
True if the problem is a maximization problem. Minimize by default.

optional bool maximize = 1 [default = false];

Returns
Whether the maximize field is set.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1663 of file MPModelProto.java.

◆ hasName()

boolean com.google.ortools.linearsolver.MPModelProto.hasName ( )
Name of the model.

optional string name = 5 [default = ""];

Returns
Whether the name field is set.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1759 of file MPModelProto.java.

◆ hasObjectiveOffset()

boolean com.google.ortools.linearsolver.MPModelProto.hasObjectiveOffset ( )
Offset for the objective function. Must be finite.

optional double objective_offset = 2 [default = 0];

Returns
Whether the objectiveOffset field is set.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1690 of file MPModelProto.java.

◆ hasQuadraticObjective()

boolean com.google.ortools.linearsolver.MPModelProto.hasQuadraticObjective ( )
Optionally, a quadratic objective.
As of 2019/06, only SCIP and Gurobi support quadratic objectives.

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Returns
Whether the quadraticObjective field is set.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1718 of file MPModelProto.java.

◆ hasSolutionHint()

boolean com.google.ortools.linearsolver.MPModelProto.hasSolutionHint ( )
Solution hint.

If a feasible or almost-feasible solution to the problem is already known,
it may be helpful to pass it to the solver so that it can be used. A solver
that supports this feature will try to use this information to create its
initial feasible solution.

Note that it may not always be faster to give a hint like this to the
solver. There is also no guarantee that the solver will use this hint or
try to return a solution "close" to this assignment in case of multiple
optimal solutions.

optional .operations_research.PartialVariableAssignment solution_hint = 6;

Returns
Whether the solutionHint field is set.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 1829 of file MPModelProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.ortools.linearsolver.MPModelProto.internalGetFieldAccessorTable ( )
protected

Definition at line 45 of file MPModelProto.java.

◆ isInitialized()

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

Definition at line 1919 of file MPModelProto.java.

◆ newBuilder() [1/2]

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

Definition at line 2179 of file MPModelProto.java.

◆ newBuilder() [2/2]

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

Definition at line 2182 of file MPModelProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 2178 of file MPModelProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected

Definition at line 2192 of file MPModelProto.java.

◆ newInstance()

java.lang.Object com.google.ortools.linearsolver.MPModelProto.newInstance ( UnusedPrivateParameter unused)
protected

Definition at line 33 of file MPModelProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 2150 of file MPModelProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 2156 of file MPModelProto.java.

◆ parseFrom() [1/10]

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

Definition at line 2127 of file MPModelProto.java.

◆ parseFrom() [2/10]

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

Definition at line 2131 of file MPModelProto.java.

◆ parseFrom() [3/10]

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

Definition at line 2116 of file MPModelProto.java.

◆ parseFrom() [4/10]

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

Definition at line 2121 of file MPModelProto.java.

◆ parseFrom() [5/10]

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

Definition at line 2163 of file MPModelProto.java.

◆ parseFrom() [6/10]

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

Definition at line 2169 of file MPModelProto.java.

◆ parseFrom() [7/10]

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

Definition at line 2137 of file MPModelProto.java.

◆ parseFrom() [8/10]

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

Definition at line 2142 of file MPModelProto.java.

◆ parseFrom() [9/10]

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

Definition at line 2105 of file MPModelProto.java.

◆ parseFrom() [10/10]

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

Definition at line 2110 of file MPModelProto.java.

◆ parser()

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

Definition at line 4547 of file MPModelProto.java.

◆ toBuilder()

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

Definition at line 2186 of file MPModelProto.java.

◆ writeTo()

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

Definition at line 1929 of file MPModelProto.java.

Member Data Documentation

◆ ANNOTATION_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.ANNOTATION_FIELD_NUMBER = 9
static

Definition at line 1876 of file MPModelProto.java.

◆ CONSTRAINT_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.CONSTRAINT_FIELD_NUMBER = 4
static

Definition at line 1525 of file MPModelProto.java.

◆ GENERAL_CONSTRAINT_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.GENERAL_CONSTRAINT_FIELD_NUMBER = 7
static

Definition at line 1586 of file MPModelProto.java.

◆ MAXIMIZE_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.MAXIMIZE_FIELD_NUMBER = 1
static

Definition at line 1652 of file MPModelProto.java.

◆ NAME_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.NAME_FIELD_NUMBER = 5
static

Definition at line 1747 of file MPModelProto.java.

◆ OBJECTIVE_OFFSET_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.OBJECTIVE_OFFSET_FIELD_NUMBER = 2
static

Definition at line 1679 of file MPModelProto.java.

◆ PARSER

final com.google.protobuf.Parser<MPModelProto> com.google.ortools.linearsolver.MPModelProto.PARSER
static
Initial value:
= new com.google.protobuf.AbstractParser<MPModelProto>() {
@java.lang.Override
public MPModelProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
}

Definition at line 4526 of file MPModelProto.java.

◆ QUADRATIC_OBJECTIVE_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.QUADRATIC_OBJECTIVE_FIELD_NUMBER = 8
static

Definition at line 1706 of file MPModelProto.java.

◆ SOLUTION_HINT_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.SOLUTION_HINT_FIELD_NUMBER = 6
static

Definition at line 1808 of file MPModelProto.java.

◆ VARIABLE_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.VARIABLE_FIELD_NUMBER = 3
static

Definition at line 1464 of file MPModelProto.java.


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