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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPModelProto getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPModelProto build ()
 
com.google.ortools.linearsolver.MPModelProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPModelProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< com.google.ortools.linearsolver.MPVariableProtogetVariableList ()
 
int getVariableCount ()
 
com.google.ortools.linearsolver.MPVariableProto getVariable (int index)
 
Builder setVariable (int index, com.google.ortools.linearsolver.MPVariableProto value)
 
Builder setVariable (int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
 
Builder addVariable (com.google.ortools.linearsolver.MPVariableProto value)
 
Builder addVariable (int index, com.google.ortools.linearsolver.MPVariableProto value)
 
Builder addVariable (com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
 
Builder addVariable (int index, com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
 
Builder addAllVariable (java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto > values)
 
Builder clearVariable ()
 
Builder removeVariable (int index)
 
com.google.ortools.linearsolver.MPVariableProto.Builder getVariableBuilder (int index)
 
com.google.ortools.linearsolver.MPVariableProtoOrBuilder getVariableOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuildergetVariableOrBuilderList ()
 
com.google.ortools.linearsolver.MPVariableProto.Builder addVariableBuilder ()
 
com.google.ortools.linearsolver.MPVariableProto.Builder addVariableBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPVariableProto.BuildergetVariableBuilderList ()
 
java.util.List< com.google.ortools.linearsolver.MPConstraintProtogetConstraintList ()
 
int getConstraintCount ()
 
com.google.ortools.linearsolver.MPConstraintProto getConstraint (int index)
 
Builder setConstraint (int index, com.google.ortools.linearsolver.MPConstraintProto value)
 
Builder setConstraint (int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
 
Builder addConstraint (com.google.ortools.linearsolver.MPConstraintProto value)
 
Builder addConstraint (int index, com.google.ortools.linearsolver.MPConstraintProto value)
 
Builder addConstraint (com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
 
Builder addConstraint (int index, com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
 
Builder addAllConstraint (java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto > values)
 
Builder clearConstraint ()
 
Builder removeConstraint (int index)
 
com.google.ortools.linearsolver.MPConstraintProto.Builder getConstraintBuilder (int index)
 
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder getConstraintOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuildergetConstraintOrBuilderList ()
 
com.google.ortools.linearsolver.MPConstraintProto.Builder addConstraintBuilder ()
 
com.google.ortools.linearsolver.MPConstraintProto.Builder addConstraintBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPConstraintProto.BuildergetConstraintBuilderList ()
 
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProtogetGeneralConstraintList ()
 
int getGeneralConstraintCount ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto getGeneralConstraint (int index)
 
Builder setGeneralConstraint (int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value)
 
Builder setGeneralConstraint (int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
 
Builder addGeneralConstraint (com.google.ortools.linearsolver.MPGeneralConstraintProto value)
 
Builder addGeneralConstraint (int index, com.google.ortools.linearsolver.MPGeneralConstraintProto value)
 
Builder addGeneralConstraint (com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
 
Builder addGeneralConstraint (int index, com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
 
Builder addAllGeneralConstraint (java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto > values)
 
Builder clearGeneralConstraint ()
 
Builder removeGeneralConstraint (int index)
 
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder getGeneralConstraintBuilder (int index)
 
com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder getGeneralConstraintOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuildergetGeneralConstraintOrBuilderList ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder addGeneralConstraintBuilder ()
 
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder addGeneralConstraintBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto.BuildergetGeneralConstraintBuilderList ()
 
boolean hasMaximize ()
 
boolean getMaximize ()
 
Builder setMaximize (boolean value)
 
Builder clearMaximize ()
 
boolean hasObjectiveOffset ()
 
double getObjectiveOffset ()
 
Builder setObjectiveOffset (double value)
 
Builder clearObjectiveOffset ()
 
boolean hasQuadraticObjective ()
 
com.google.ortools.linearsolver.MPQuadraticObjective getQuadraticObjective ()
 
Builder setQuadraticObjective (com.google.ortools.linearsolver.MPQuadraticObjective value)
 
Builder setQuadraticObjective (com.google.ortools.linearsolver.MPQuadraticObjective.Builder builderForValue)
 
Builder mergeQuadraticObjective (com.google.ortools.linearsolver.MPQuadraticObjective value)
 
Builder clearQuadraticObjective ()
 
com.google.ortools.linearsolver.MPQuadraticObjective.Builder getQuadraticObjectiveBuilder ()
 
com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder getQuadraticObjectiveOrBuilder ()
 
boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
Builder setName (java.lang.String value)
 
Builder clearName ()
 
Builder setNameBytes (com.google.protobuf.ByteString value)
 
boolean hasSolutionHint ()
 
com.google.ortools.linearsolver.PartialVariableAssignment getSolutionHint ()
 
Builder setSolutionHint (com.google.ortools.linearsolver.PartialVariableAssignment value)
 
Builder setSolutionHint (com.google.ortools.linearsolver.PartialVariableAssignment.Builder builderForValue)
 
Builder mergeSolutionHint (com.google.ortools.linearsolver.PartialVariableAssignment value)
 
Builder clearSolutionHint ()
 
com.google.ortools.linearsolver.PartialVariableAssignment.Builder getSolutionHintBuilder ()
 
com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder ()
 
java.util.List< com.google.ortools.linearsolver.MPModelProto.AnnotationgetAnnotationList ()
 
int getAnnotationCount ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation getAnnotation (int index)
 
Builder setAnnotation (int index, com.google.ortools.linearsolver.MPModelProto.Annotation value)
 
Builder setAnnotation (int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue)
 
Builder addAnnotation (com.google.ortools.linearsolver.MPModelProto.Annotation value)
 
Builder addAnnotation (int index, com.google.ortools.linearsolver.MPModelProto.Annotation value)
 
Builder addAnnotation (com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue)
 
Builder addAnnotation (int index, com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue)
 
Builder addAllAnnotation (java.lang.Iterable<? extends com.google.ortools.linearsolver.MPModelProto.Annotation > values)
 
Builder clearAnnotation ()
 
Builder removeAnnotation (int index)
 
com.google.ortools.linearsolver.MPModelProto.Annotation.Builder getAnnotationBuilder (int index)
 
com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder getAnnotationOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuildergetAnnotationOrBuilderList ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation.Builder addAnnotationBuilder ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation.Builder addAnnotationBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPModelProto.Annotation.BuildergetAnnotationBuilderList ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPModelProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

Detailed Description

MPModelProto contains all the information for a Linear Programming model.

Protobuf type operations_research.MPModelProto

Definition at line 2173 of file MPModelProto.java.

Member Function Documentation

◆ addAllAnnotation()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAllAnnotation ( java.lang.Iterable<? extends com.google.ortools.linearsolver.MPModelProto.Annotation > values)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4334 of file MPModelProto.java.

◆ addAllConstraint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAllConstraint ( java.lang.Iterable<? extends com.google.ortools.linearsolver.MPConstraintProto > values)
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3103 of file MPModelProto.java.

◆ addAllGeneralConstraint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAllGeneralConstraint ( java.lang.Iterable<? extends com.google.ortools.linearsolver.MPGeneralConstraintProto > values)
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;

Definition at line 3425 of file MPModelProto.java.

◆ addAllVariable()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAllVariable ( java.lang.Iterable<? extends com.google.ortools.linearsolver.MPVariableProto > values)
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2791 of file MPModelProto.java.

◆ addAnnotation() [1/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAnnotation ( com.google.ortools.linearsolver.MPModelProto.Annotation value)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4273 of file MPModelProto.java.

◆ addAnnotation() [2/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAnnotation ( com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4306 of file MPModelProto.java.

◆ addAnnotation() [3/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAnnotation ( int index,
com.google.ortools.linearsolver.MPModelProto.Annotation value )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4289 of file MPModelProto.java.

◆ addAnnotation() [4/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAnnotation ( int index,
com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4320 of file MPModelProto.java.

◆ addAnnotationBuilder() [1/2]

com.google.ortools.linearsolver.MPModelProto.Annotation.Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAnnotationBuilder ( )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4403 of file MPModelProto.java.

◆ addAnnotationBuilder() [2/2]

com.google.ortools.linearsolver.MPModelProto.Annotation.Builder com.google.ortools.linearsolver.MPModelProto.Builder.addAnnotationBuilder ( int index)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4410 of file MPModelProto.java.

◆ addConstraint() [1/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addConstraint ( com.google.ortools.linearsolver.MPConstraintProto value)
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3026 of file MPModelProto.java.

◆ addConstraint() [2/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addConstraint ( com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue)
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3067 of file MPModelProto.java.

◆ addConstraint() [3/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addConstraint ( int index,
com.google.ortools.linearsolver.MPConstraintProto value )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3046 of file MPModelProto.java.

◆ addConstraint() [4/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addConstraint ( int index,
com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3085 of file MPModelProto.java.

◆ addConstraintBuilder() [1/2]

com.google.ortools.linearsolver.MPConstraintProto.Builder com.google.ortools.linearsolver.MPModelProto.Builder.addConstraintBuilder ( )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3196 of file MPModelProto.java.

◆ addConstraintBuilder() [2/2]

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

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3207 of file MPModelProto.java.

◆ addGeneralConstraint() [1/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addGeneralConstraint ( com.google.ortools.linearsolver.MPGeneralConstraintProto value)
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;

Definition at line 3344 of file MPModelProto.java.

◆ addGeneralConstraint() [2/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addGeneralConstraint ( com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue)
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;

Definition at line 3387 of file MPModelProto.java.

◆ addGeneralConstraint() [3/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addGeneralConstraint ( int index,
com.google.ortools.linearsolver.MPGeneralConstraintProto value )
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;

Definition at line 3365 of file MPModelProto.java.

◆ addGeneralConstraint() [4/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addGeneralConstraint ( int index,
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue )
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;

Definition at line 3406 of file MPModelProto.java.

◆ addGeneralConstraintBuilder() [1/2]

com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder com.google.ortools.linearsolver.MPModelProto.Builder.addGeneralConstraintBuilder ( )
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;

Definition at line 3524 of file MPModelProto.java.

◆ addGeneralConstraintBuilder() [2/2]

com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder com.google.ortools.linearsolver.MPModelProto.Builder.addGeneralConstraintBuilder ( 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;

Definition at line 3536 of file MPModelProto.java.

◆ addVariable() [1/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addVariable ( com.google.ortools.linearsolver.MPVariableProto value)
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2714 of file MPModelProto.java.

◆ addVariable() [2/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addVariable ( com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue)
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2755 of file MPModelProto.java.

◆ addVariable() [3/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addVariable ( int index,
com.google.ortools.linearsolver.MPVariableProto value )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2734 of file MPModelProto.java.

◆ addVariable() [4/4]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.addVariable ( int index,
com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2773 of file MPModelProto.java.

◆ addVariableBuilder() [1/2]

com.google.ortools.linearsolver.MPVariableProto.Builder com.google.ortools.linearsolver.MPModelProto.Builder.addVariableBuilder ( )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2884 of file MPModelProto.java.

◆ addVariableBuilder() [2/2]

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

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2895 of file MPModelProto.java.

◆ build()

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

Definition at line 2271 of file MPModelProto.java.

◆ buildPartial()

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

Definition at line 2280 of file MPModelProto.java.

◆ clear()

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

Definition at line 2212 of file MPModelProto.java.

◆ clearAnnotation()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4349 of file MPModelProto.java.

◆ clearConstraint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearConstraint ( )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3122 of file MPModelProto.java.

◆ clearGeneralConstraint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearGeneralConstraint ( )
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;

Definition at line 3445 of file MPModelProto.java.

◆ clearMaximize()

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

optional bool maximize = 1 [default = false];

Returns
This builder for chaining.

Definition at line 3617 of file MPModelProto.java.

◆ clearName()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearName ( )
Name of the model.

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

Returns
This builder for chaining.

Definition at line 3926 of file MPModelProto.java.

◆ clearObjectiveOffset()

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

optional double objective_offset = 2 [default = 0];

Returns
This builder for chaining.

Definition at line 3673 of file MPModelProto.java.

◆ clearQuadraticObjective()

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

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Definition at line 3785 of file MPModelProto.java.

◆ clearSolutionHint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearSolutionHint ( )
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;

Definition at line 4109 of file MPModelProto.java.

◆ clearVariable()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearVariable ( )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2810 of file MPModelProto.java.

◆ getAnnotation()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 4232 of file MPModelProto.java.

◆ getAnnotationBuilder()

com.google.ortools.linearsolver.MPModelProto.Annotation.Builder com.google.ortools.linearsolver.MPModelProto.Builder.getAnnotationBuilder ( int index)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4375 of file MPModelProto.java.

◆ getAnnotationBuilderList()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4419 of file MPModelProto.java.

◆ getAnnotationCount()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 4222 of file MPModelProto.java.

◆ getAnnotationList()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 4212 of file MPModelProto.java.

◆ getAnnotationOrBuilder()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 4382 of file MPModelProto.java.

◆ getAnnotationOrBuilderList()

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

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 4393 of file MPModelProto.java.

◆ getConstraint()

com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelProto.Builder.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 2973 of file MPModelProto.java.

◆ getConstraintBuilder()

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

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3156 of file MPModelProto.java.

◆ getConstraintBuilderList()

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

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3220 of file MPModelProto.java.

◆ getConstraintCount()

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

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 2959 of file MPModelProto.java.

◆ getConstraintList()

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

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 2945 of file MPModelProto.java.

◆ getConstraintOrBuilder()

com.google.ortools.linearsolver.MPConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.Builder.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 3167 of file MPModelProto.java.

◆ getConstraintOrBuilderList()

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

repeated .operations_research.MPConstraintProto constraint = 4;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 3182 of file MPModelProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 2266 of file MPModelProto.java.

◆ getDescriptor()

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

Definition at line 2178 of file MPModelProto.java.

◆ getDescriptorForType()

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

Definition at line 2261 of file MPModelProto.java.

◆ getGeneralConstraint()

com.google.ortools.linearsolver.MPGeneralConstraintProto com.google.ortools.linearsolver.MPModelProto.Builder.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 3288 of file MPModelProto.java.

◆ getGeneralConstraintBuilder()

com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder com.google.ortools.linearsolver.MPModelProto.Builder.getGeneralConstraintBuilder ( 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;

Definition at line 3481 of file MPModelProto.java.

◆ getGeneralConstraintBuilderList()

java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder > com.google.ortools.linearsolver.MPModelProto.Builder.getGeneralConstraintBuilderList ( )
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;

Definition at line 3550 of file MPModelProto.java.

◆ getGeneralConstraintCount()

int com.google.ortools.linearsolver.MPModelProto.Builder.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 3273 of file MPModelProto.java.

◆ getGeneralConstraintList()

java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto > com.google.ortools.linearsolver.MPModelProto.Builder.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 3258 of file MPModelProto.java.

◆ getGeneralConstraintOrBuilder()

com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.Builder.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 3493 of file MPModelProto.java.

◆ getGeneralConstraintOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.Builder.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 3509 of file MPModelProto.java.

◆ getMaximize()

boolean com.google.ortools.linearsolver.MPModelProto.Builder.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 3590 of file MPModelProto.java.

◆ getName()

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

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

Returns
The name.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 3866 of file MPModelProto.java.

◆ getNameBytes()

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

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

Returns
The bytes for name.

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 3889 of file MPModelProto.java.

◆ getObjectiveOffset()

double com.google.ortools.linearsolver.MPModelProto.Builder.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 3646 of file MPModelProto.java.

◆ getQuadraticObjective()

com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPModelProto.Builder.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 3704 of file MPModelProto.java.

◆ getQuadraticObjectiveBuilder()

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

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Definition at line 3803 of file MPModelProto.java.

◆ getQuadraticObjectiveOrBuilder()

com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder com.google.ortools.linearsolver.MPModelProto.Builder.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 3816 of file MPModelProto.java.

◆ getSolutionHint()

com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.MPModelProto.Builder.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 3992 of file MPModelProto.java.

◆ getSolutionHintBuilder()

com.google.ortools.linearsolver.PartialVariableAssignment.Builder com.google.ortools.linearsolver.MPModelProto.Builder.getSolutionHintBuilder ( )
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;

Definition at line 4136 of file MPModelProto.java.

◆ getSolutionHintOrBuilder()

com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder com.google.ortools.linearsolver.MPModelProto.Builder.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 4158 of file MPModelProto.java.

◆ getVariable()

com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelProto.Builder.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 2661 of file MPModelProto.java.

◆ getVariableBuilder()

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

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2844 of file MPModelProto.java.

◆ getVariableBuilderList()

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

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2908 of file MPModelProto.java.

◆ getVariableCount()

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

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 2647 of file MPModelProto.java.

◆ getVariableList()

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

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 2633 of file MPModelProto.java.

◆ getVariableOrBuilder()

com.google.ortools.linearsolver.MPVariableProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.Builder.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 2855 of file MPModelProto.java.

◆ getVariableOrBuilderList()

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

repeated .operations_research.MPVariableProto variable = 3;

Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.

Definition at line 2870 of file MPModelProto.java.

◆ hasMaximize()

boolean com.google.ortools.linearsolver.MPModelProto.Builder.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 3578 of file MPModelProto.java.

◆ hasName()

boolean com.google.ortools.linearsolver.MPModelProto.Builder.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 3855 of file MPModelProto.java.

◆ hasObjectiveOffset()

boolean com.google.ortools.linearsolver.MPModelProto.Builder.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 3634 of file MPModelProto.java.

◆ hasQuadraticObjective()

boolean com.google.ortools.linearsolver.MPModelProto.Builder.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 3692 of file MPModelProto.java.

◆ hasSolutionHint()

boolean com.google.ortools.linearsolver.MPModelProto.Builder.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 3971 of file MPModelProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 2184 of file MPModelProto.java.

◆ isInitialized()

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

Definition at line 2496 of file MPModelProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 2367 of file MPModelProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 2501 of file MPModelProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 2358 of file MPModelProto.java.

◆ mergeQuadraticObjective()

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

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Definition at line 3759 of file MPModelProto.java.

◆ mergeSolutionHint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.mergeSolutionHint ( com.google.ortools.linearsolver.PartialVariableAssignment value)
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;

Definition at line 4074 of file MPModelProto.java.

◆ removeAnnotation()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.removeAnnotation ( int index)

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4362 of file MPModelProto.java.

◆ removeConstraint()

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

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3139 of file MPModelProto.java.

◆ removeGeneralConstraint()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.removeGeneralConstraint ( 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;

Definition at line 3463 of file MPModelProto.java.

◆ removeVariable()

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

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2827 of file MPModelProto.java.

◆ setAnnotation() [1/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setAnnotation ( int index,
com.google.ortools.linearsolver.MPModelProto.Annotation value )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4242 of file MPModelProto.java.

◆ setAnnotation() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setAnnotation ( int index,
com.google.ortools.linearsolver.MPModelProto.Annotation.Builder builderForValue )

repeated .operations_research.MPModelProto.Annotation annotation = 9;

Definition at line 4259 of file MPModelProto.java.

◆ setConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setConstraint ( int index,
com.google.ortools.linearsolver.MPConstraintProto value )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 2987 of file MPModelProto.java.

◆ setConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setConstraint ( int index,
com.google.ortools.linearsolver.MPConstraintProto.Builder builderForValue )
All the constraints appearing in the model.

repeated .operations_research.MPConstraintProto constraint = 4;

Definition at line 3008 of file MPModelProto.java.

◆ setGeneralConstraint() [1/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setGeneralConstraint ( int index,
com.google.ortools.linearsolver.MPGeneralConstraintProto value )
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;

Definition at line 3303 of file MPModelProto.java.

◆ setGeneralConstraint() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setGeneralConstraint ( int index,
com.google.ortools.linearsolver.MPGeneralConstraintProto.Builder builderForValue )
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;

Definition at line 3325 of file MPModelProto.java.

◆ setMaximize()

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

optional bool maximize = 1 [default = false];

Parameters
valueThe maximize to set.
Returns
This builder for chaining.

Definition at line 3602 of file MPModelProto.java.

◆ setName()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setName ( java.lang.String value)
Name of the model.

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

Parameters
valueThe name to set.
Returns
This builder for chaining.

Definition at line 3910 of file MPModelProto.java.

◆ setNameBytes()

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setNameBytes ( com.google.protobuf.ByteString value)
Name of the model.

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

Parameters
valueThe bytes for name to set.
Returns
This builder for chaining.

Definition at line 3941 of file MPModelProto.java.

◆ setObjectiveOffset()

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

optional double objective_offset = 2 [default = 0];

Parameters
valueThe objectiveOffset to set.
Returns
This builder for chaining.

Definition at line 3658 of file MPModelProto.java.

◆ setQuadraticObjective() [1/2]

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

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Definition at line 3719 of file MPModelProto.java.

◆ setQuadraticObjective() [2/2]

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

optional .operations_research.MPQuadraticObjective quadratic_objective = 8;

Definition at line 3740 of file MPModelProto.java.

◆ setSolutionHint() [1/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setSolutionHint ( com.google.ortools.linearsolver.PartialVariableAssignment value)
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;

Definition at line 4016 of file MPModelProto.java.

◆ setSolutionHint() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setSolutionHint ( com.google.ortools.linearsolver.PartialVariableAssignment.Builder builderForValue)
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;

Definition at line 4046 of file MPModelProto.java.

◆ setVariable() [1/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setVariable ( int index,
com.google.ortools.linearsolver.MPVariableProto value )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2675 of file MPModelProto.java.

◆ setVariable() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.Builder.setVariable ( int index,
com.google.ortools.linearsolver.MPVariableProto.Builder builderForValue )
All the variables appearing in the model.

repeated .operations_research.MPVariableProto variable = 3;

Definition at line 2696 of file MPModelProto.java.


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