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

Public Member Functions

java.util.List< com.google.ortools.linearsolver.MPVariableProtogetVariableList ()
 
com.google.ortools.linearsolver.MPVariableProto getVariable (int index)
 
int getVariableCount ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuildergetVariableOrBuilderList ()
 
com.google.ortools.linearsolver.MPVariableProtoOrBuilder getVariableOrBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPConstraintProtogetConstraintList ()
 
com.google.ortools.linearsolver.MPConstraintProto getConstraint (int index)
 
int getConstraintCount ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuildergetConstraintOrBuilderList ()
 
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder getConstraintOrBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProtogetGeneralConstraintList ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto getGeneralConstraint (int index)
 
int getGeneralConstraintCount ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuildergetGeneralConstraintOrBuilderList ()
 
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 ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation getAnnotation (int index)
 
int getAnnotationCount ()
 
java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuildergetAnnotationOrBuilderList ()
 
com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder getAnnotationOrBuilder (int index)
 

Detailed Description

Definition at line 7 of file MPModelProtoOrBuilder.java.

Member Function Documentation

◆ getAnnotation()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

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

◆ getAnnotationCount()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

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

◆ getAnnotationList()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

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

◆ getAnnotationOrBuilder()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

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

◆ getAnnotationOrBuilderList()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

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

◆ getConstraint()

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

repeated .operations_research.MPConstraintProto constraint = 4;

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

◆ getConstraintCount()

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

repeated .operations_research.MPConstraintProto constraint = 4;

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

◆ getConstraintList()

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

repeated .operations_research.MPConstraintProto constraint = 4;

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

◆ getConstraintOrBuilder()

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

repeated .operations_research.MPConstraintProto constraint = 4;

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

◆ getConstraintOrBuilderList()

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

repeated .operations_research.MPConstraintProto constraint = 4;

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

◆ getGeneralConstraint()

com.google.ortools.linearsolver.MPGeneralConstraintProto com.google.ortools.linearsolver.MPModelProtoOrBuilder.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;

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

◆ getGeneralConstraintCount()

int com.google.ortools.linearsolver.MPModelProtoOrBuilder.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;

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

◆ getGeneralConstraintList()

java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto > com.google.ortools.linearsolver.MPModelProtoOrBuilder.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;

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

◆ getGeneralConstraintOrBuilder()

com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProtoOrBuilder.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;

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

◆ getGeneralConstraintOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder > com.google.ortools.linearsolver.MPModelProtoOrBuilder.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;

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

◆ getMaximize()

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

optional bool maximize = 1 [default = false];

Returns
The maximize.

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

◆ getName()

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

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

Returns
The name.

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

◆ getNameBytes()

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

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

Returns
The bytes for name.

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

◆ getObjectiveOffset()

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

optional double objective_offset = 2 [default = 0];

Returns
The objectiveOffset.

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

◆ getQuadraticObjective()

com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPModelProtoOrBuilder.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.

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

◆ getQuadraticObjectiveOrBuilder()

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

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

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

◆ getSolutionHint()

com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.MPModelProtoOrBuilder.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.

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

◆ getSolutionHintOrBuilder()

com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder com.google.ortools.linearsolver.MPModelProtoOrBuilder.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;

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

◆ getVariable()

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

repeated .operations_research.MPVariableProto variable = 3;

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

◆ getVariableCount()

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

repeated .operations_research.MPVariableProto variable = 3;

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

◆ getVariableList()

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

repeated .operations_research.MPVariableProto variable = 3;

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

◆ getVariableOrBuilder()

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

repeated .operations_research.MPVariableProto variable = 3;

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

◆ getVariableOrBuilderList()

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

repeated .operations_research.MPVariableProto variable = 3;

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

◆ hasMaximize()

boolean com.google.ortools.linearsolver.MPModelProtoOrBuilder.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.

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

◆ hasName()

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

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

Returns
Whether the name field is set.

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

◆ hasObjectiveOffset()

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

optional double objective_offset = 2 [default = 0];

Returns
Whether the objectiveOffset field is set.

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

◆ hasQuadraticObjective()

boolean com.google.ortools.linearsolver.MPModelProtoOrBuilder.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.

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

◆ hasSolutionHint()

boolean com.google.ortools.linearsolver.MPModelProtoOrBuilder.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.

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


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