Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
MPModelProto contains all the information for a Linear Programming model.
Protobuf type operations_research.MPModelProto
Definition at line 2173 of file MPModelProto.java.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
com.google.ortools.linearsolver.MPModelProto com.google.ortools.linearsolver.MPModelProto.Builder.build | ( | ) |
Definition at line 2271 of file MPModelProto.java.
com.google.ortools.linearsolver.MPModelProto com.google.ortools.linearsolver.MPModelProto.Builder.buildPartial | ( | ) |
Definition at line 2280 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.clear | ( | ) |
Definition at line 2212 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearAnnotation | ( | ) |
repeated .operations_research.MPModelProto.Annotation annotation = 9;
Definition at line 4349 of file MPModelProto.java.
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.
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.
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];
Definition at line 3617 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearName | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Definition at line 3926 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.clearObjectiveOffset | ( | ) |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
Definition at line 3673 of file MPModelProto.java.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
com.google.ortools.linearsolver.MPModelProto com.google.ortools.linearsolver.MPModelProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 2266 of file MPModelProto.java.
|
static |
Definition at line 2178 of file MPModelProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelProto.Builder.getDescriptorForType | ( | ) |
Definition at line 2261 of file MPModelProto.java.
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.
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.
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.
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.
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.
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.
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.
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];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3590 of file MPModelProto.java.
java.lang.String com.google.ortools.linearsolver.MPModelProto.Builder.getName | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3866 of file MPModelProto.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelProto.Builder.getNameBytes | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3889 of file MPModelProto.java.
double com.google.ortools.linearsolver.MPModelProto.Builder.getObjectiveOffset | ( | ) |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3646 of file MPModelProto.java.
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;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3704 of file MPModelProto.java.
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.
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.
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;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3992 of file MPModelProto.java.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3578 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.Builder.hasName | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3855 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.Builder.hasObjectiveOffset | ( | ) |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3634 of file MPModelProto.java.
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;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3692 of file MPModelProto.java.
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;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 3971 of file MPModelProto.java.
|
protected |
Definition at line 2184 of file MPModelProto.java.
final boolean com.google.ortools.linearsolver.MPModelProto.Builder.isInitialized | ( | ) |
Definition at line 2496 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPModelProto | other | ) |
Definition at line 2367 of file MPModelProto.java.
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.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 2358 of file MPModelProto.java.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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];
value | The maximize to set. |
Definition at line 3602 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.setName | ( | java.lang.String | value | ) |
Name of the model.
optional string name = 5 [default = ""];
value | The name to set. |
Definition at line 3910 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.Builder.setNameBytes | ( | com.google.protobuf.ByteString | value | ) |
Name of the model.
optional string name = 5 [default = ""];
value | The bytes for name to set. |
Definition at line 3941 of file MPModelProto.java.
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];
value | The objectiveOffset to set. |
Definition at line 3658 of file MPModelProto.java.
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.
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.
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.
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.
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.
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.