Reference

C++

Python

DotNET

Java Documentation

Java Reference

LinearSolver.java
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ortools/linear_solver/linear_solver.proto
3 
4 package com.google.ortools.linearsolver;
5 
6 public final class LinearSolver {
7  private LinearSolver() {}
8  public static void registerAllExtensions(
9  com.google.protobuf.ExtensionRegistryLite registry) {
10  }
11 
12  public static void registerAllExtensions(
13  com.google.protobuf.ExtensionRegistry registry) {
15  (com.google.protobuf.ExtensionRegistryLite) registry);
16  }
17  static final com.google.protobuf.Descriptors.Descriptor
18  internal_static_operations_research_MPVariableProto_descriptor;
19  static final
20  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
21  internal_static_operations_research_MPVariableProto_fieldAccessorTable;
22  static final com.google.protobuf.Descriptors.Descriptor
23  internal_static_operations_research_MPConstraintProto_descriptor;
24  static final
25  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
26  internal_static_operations_research_MPConstraintProto_fieldAccessorTable;
27  static final com.google.protobuf.Descriptors.Descriptor
28  internal_static_operations_research_MPGeneralConstraintProto_descriptor;
29  static final
30  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
31  internal_static_operations_research_MPGeneralConstraintProto_fieldAccessorTable;
32  static final com.google.protobuf.Descriptors.Descriptor
33  internal_static_operations_research_MPIndicatorConstraint_descriptor;
34  static final
35  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
36  internal_static_operations_research_MPIndicatorConstraint_fieldAccessorTable;
37  static final com.google.protobuf.Descriptors.Descriptor
38  internal_static_operations_research_MPSosConstraint_descriptor;
39  static final
40  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
41  internal_static_operations_research_MPSosConstraint_fieldAccessorTable;
42  static final com.google.protobuf.Descriptors.Descriptor
43  internal_static_operations_research_MPQuadraticConstraint_descriptor;
44  static final
45  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
46  internal_static_operations_research_MPQuadraticConstraint_fieldAccessorTable;
47  static final com.google.protobuf.Descriptors.Descriptor
48  internal_static_operations_research_MPQuadraticObjective_descriptor;
49  static final
50  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
51  internal_static_operations_research_MPQuadraticObjective_fieldAccessorTable;
52  static final com.google.protobuf.Descriptors.Descriptor
53  internal_static_operations_research_PartialVariableAssignment_descriptor;
54  static final
55  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
56  internal_static_operations_research_PartialVariableAssignment_fieldAccessorTable;
57  static final com.google.protobuf.Descriptors.Descriptor
58  internal_static_operations_research_MPModelProto_descriptor;
59  static final
60  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
61  internal_static_operations_research_MPModelProto_fieldAccessorTable;
62  static final com.google.protobuf.Descriptors.Descriptor
63  internal_static_operations_research_OptionalDouble_descriptor;
64  static final
65  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
66  internal_static_operations_research_OptionalDouble_fieldAccessorTable;
67  static final com.google.protobuf.Descriptors.Descriptor
68  internal_static_operations_research_MPSolverCommonParameters_descriptor;
69  static final
70  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
71  internal_static_operations_research_MPSolverCommonParameters_fieldAccessorTable;
72  static final com.google.protobuf.Descriptors.Descriptor
73  internal_static_operations_research_MPModelDeltaProto_descriptor;
74  static final
75  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
76  internal_static_operations_research_MPModelDeltaProto_fieldAccessorTable;
77  static final com.google.protobuf.Descriptors.Descriptor
78  internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_descriptor;
79  static final
80  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
81  internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_fieldAccessorTable;
82  static final com.google.protobuf.Descriptors.Descriptor
83  internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_descriptor;
84  static final
85  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
86  internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_fieldAccessorTable;
87  static final com.google.protobuf.Descriptors.Descriptor
88  internal_static_operations_research_MPModelRequest_descriptor;
89  static final
90  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
91  internal_static_operations_research_MPModelRequest_fieldAccessorTable;
92  static final com.google.protobuf.Descriptors.Descriptor
93  internal_static_operations_research_MPSolutionResponse_descriptor;
94  static final
95  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
96  internal_static_operations_research_MPSolutionResponse_fieldAccessorTable;
97 
98  public static com.google.protobuf.Descriptors.FileDescriptor
100  return descriptor;
101  }
102  private static com.google.protobuf.Descriptors.FileDescriptor
103  descriptor;
104  static {
105  java.lang.String[] descriptorData = {
106  "\n)ortools/linear_solver/linear_solver.pr" +
107  "oto\022\023operations_research\032#ortools/util/o" +
108  "ptional_boolean.proto\"\262\001\n\017MPVariableProt" +
109  "o\022\031\n\013lower_bound\030\001 \001(\001:\004-inf\022\030\n\013upper_bo" +
110  "und\030\002 \001(\001:\003inf\022 \n\025objective_coefficient\030" +
111  "\003 \001(\001:\0010\022\031\n\nis_integer\030\004 \001(\010:\005false\022\016\n\004n" +
112  "ame\030\005 \001(\t:\000\022\035\n\022branching_priority\030\006 \001(\005:" +
113  "\0010\"\240\001\n\021MPConstraintProto\022\025\n\tvar_index\030\006 " +
114  "\003(\005B\002\020\001\022\027\n\013coefficient\030\007 \003(\001B\002\020\001\022\031\n\013lowe" +
115  "r_bound\030\002 \001(\001:\004-inf\022\030\n\013upper_bound\030\003 \001(\001" +
116  ":\003inf\022\016\n\004name\030\004 \001(\t:\000\022\026\n\007is_lazy\030\005 \001(\010:\005" +
117  "false\"\230\002\n\030MPGeneralConstraintProto\022\016\n\004na" +
118  "me\030\001 \001(\t:\000\022J\n\024indicator_constraint\030\002 \001(\013" +
119  "2*.operations_research.MPIndicatorConstr" +
120  "aintH\000\022>\n\016sos_constraint\030\003 \001(\0132$.operati" +
121  "ons_research.MPSosConstraintH\000\022J\n\024quadra" +
122  "tic_constraint\030\004 \001(\0132*.operations_resear" +
123  "ch.MPQuadraticConstraintH\000B\024\n\022general_co" +
124  "nstraint\"y\n\025MPIndicatorConstraint\022\021\n\tvar" +
125  "_index\030\001 \001(\005\022\021\n\tvar_value\030\002 \001(\005\022:\n\nconst" +
126  "raint\030\003 \001(\0132&.operations_research.MPCons" +
127  "traintProto\"\237\001\n\017MPSosConstraint\022E\n\004type\030" +
128  "\001 \001(\0162).operations_research.MPSosConstra" +
129  "int.Type:\014SOS1_DEFAULT\022\021\n\tvar_index\030\002 \003(" +
130  "\005\022\016\n\006weight\030\003 \003(\001\"\"\n\004Type\022\020\n\014SOS1_DEFAUL" +
131  "T\020\000\022\010\n\004SOS2\020\001\"\264\001\n\025MPQuadraticConstraint\022" +
132  "\021\n\tvar_index\030\001 \003(\005\022\023\n\013coefficient\030\002 \003(\001\022" +
133  "\023\n\013qvar1_index\030\003 \003(\005\022\023\n\013qvar2_index\030\004 \003(" +
134  "\005\022\024\n\014qcoefficient\030\005 \003(\001\022\031\n\013lower_bound\030\006" +
135  " \001(\001:\004-inf\022\030\n\013upper_bound\030\007 \001(\001:\003inf\"U\n\024" +
136  "MPQuadraticObjective\022\023\n\013qvar1_index\030\001 \003(" +
137  "\005\022\023\n\013qvar2_index\030\002 \003(\005\022\023\n\013coefficient\030\003 " +
138  "\003(\001\"I\n\031PartialVariableAssignment\022\025\n\tvar_" +
139  "index\030\001 \003(\005B\002\020\001\022\025\n\tvar_value\030\002 \003(\001B\002\020\001\"\242" +
140  "\003\n\014MPModelProto\0226\n\010variable\030\003 \003(\0132$.oper" +
141  "ations_research.MPVariableProto\022:\n\nconst" +
142  "raint\030\004 \003(\0132&.operations_research.MPCons" +
143  "traintProto\022I\n\022general_constraint\030\007 \003(\0132" +
144  "-.operations_research.MPGeneralConstrain" +
145  "tProto\022\027\n\010maximize\030\001 \001(\010:\005false\022\033\n\020objec" +
146  "tive_offset\030\002 \001(\001:\0010\022F\n\023quadratic_object" +
147  "ive\030\010 \001(\0132).operations_research.MPQuadra" +
148  "ticObjective\022\016\n\004name\030\005 \001(\t:\000\022E\n\rsolution" +
149  "_hint\030\006 \001(\0132..operations_research.Partia" +
150  "lVariableAssignment\"\037\n\016OptionalDouble\022\r\n" +
151  "\005value\030\001 \001(\001\"\275\004\n\030MPSolverCommonParameter" +
152  "s\022=\n\020relative_mip_gap\030\001 \001(\0132#.operations" +
153  "_research.OptionalDouble\022=\n\020primal_toler" +
154  "ance\030\002 \001(\0132#.operations_research.Optiona" +
155  "lDouble\022;\n\016dual_tolerance\030\003 \001(\0132#.operat" +
156  "ions_research.OptionalDouble\022j\n\014lp_algor" +
157  "ithm\030\004 \001(\0162?.operations_research.MPSolve" +
158  "rCommonParameters.LPAlgorithmValues:\023LP_" +
159  "ALGO_UNSPECIFIED\022H\n\010presolve\030\005 \001(\0162$.ope" +
160  "rations_research.OptionalBoolean:\020BOOL_U" +
161  "NSPECIFIED\022G\n\007scaling\030\007 \001(\0162$.operations" +
162  "_research.OptionalBoolean:\020BOOL_UNSPECIF" +
163  "IED\"g\n\021LPAlgorithmValues\022\027\n\023LP_ALGO_UNSP" +
164  "ECIFIED\020\000\022\020\n\014LP_ALGO_DUAL\020\001\022\022\n\016LP_ALGO_P" +
165  "RIMAL\020\002\022\023\n\017LP_ALGO_BARRIER\020\003\"\263\003\n\021MPModel" +
166  "DeltaProto\022 \n\030baseline_model_file_path\030\001" +
167  " \001(\t\022Y\n\022variable_overrides\030\002 \003(\0132=.opera" +
168  "tions_research.MPModelDeltaProto.Variabl" +
169  "eOverridesEntry\022]\n\024constraint_overrides\030" +
170  "\003 \003(\0132?.operations_research.MPModelDelta" +
171  "Proto.ConstraintOverridesEntry\032^\n\026Variab" +
172  "leOverridesEntry\022\013\n\003key\030\001 \001(\005\0223\n\005value\030\002" +
173  " \001(\0132$.operations_research.MPVariablePro" +
174  "to:\0028\001\032b\n\030ConstraintOverridesEntry\022\013\n\003ke" +
175  "y\030\001 \001(\005\0225\n\005value\030\002 \001(\0132&.operations_rese" +
176  "arch.MPConstraintProto:\0028\001\"\266\005\n\016MPModelRe" +
177  "quest\0220\n\005model\030\001 \001(\0132!.operations_resear" +
178  "ch.MPModelProto\022C\n\013solver_type\030\002 \001(\0162..o" +
179  "perations_research.MPModelRequest.Solver" +
180  "Type\022!\n\031solver_time_limit_seconds\030\003 \001(\001\022" +
181  ",\n\035enable_internal_solver_output\030\004 \001(\010:\005" +
182  "false\022\"\n\032solver_specific_parameters\030\005 \001(" +
183  "\t\"\267\003\n\nSolverType\022\033\n\027GLOP_LINEAR_PROGRAMM" +
184  "ING\020\002\022\032\n\026CLP_LINEAR_PROGRAMMING\020\000\022\033\n\027GLP" +
185  "K_LINEAR_PROGRAMMING\020\001\022\035\n\031GUROBI_LINEAR_" +
186  "PROGRAMMING\020\006\022\034\n\030CPLEX_LINEAR_PROGRAMMIN" +
187  "G\020\n\022\"\n\036SCIP_MIXED_INTEGER_PROGRAMMING\020\003\022" +
188  "\"\n\036GLPK_MIXED_INTEGER_PROGRAMMING\020\004\022!\n\035C" +
189  "BC_MIXED_INTEGER_PROGRAMMING\020\005\022$\n GUROBI" +
190  "_MIXED_INTEGER_PROGRAMMING\020\007\022#\n\037CPLEX_MI" +
191  "XED_INTEGER_PROGRAMMING\020\013\022\033\n\027BOP_INTEGER" +
192  "_PROGRAMMING\020\014\022\033\n\027SAT_INTEGER_PROGRAMMIN" +
193  "G\020\016\022&\n\"KNAPSACK_MIXED_INTEGER_PROGRAMMIN" +
194  "G\020\r\"\203\002\n\022MPSolutionResponse\022T\n\006status\030\001 \001" +
195  "(\0162+.operations_research.MPSolverRespons" +
196  "eStatus:\027MPSOLVER_UNKNOWN_STATUS\022\022\n\nstat" +
197  "us_str\030\007 \001(\t\022\027\n\017objective_value\030\002 \001(\001\022\034\n" +
198  "\024best_objective_bound\030\005 \001(\001\022\032\n\016variable_" +
199  "value\030\003 \003(\001B\002\020\001\022\026\n\ndual_value\030\004 \003(\001B\002\020\001\022" +
200  "\030\n\014reduced_cost\030\006 \003(\001B\002\020\001*\372\002\n\026MPSolverRe" +
201  "sponseStatus\022\024\n\020MPSOLVER_OPTIMAL\020\000\022\025\n\021MP" +
202  "SOLVER_FEASIBLE\020\001\022\027\n\023MPSOLVER_INFEASIBLE" +
203  "\020\002\022\026\n\022MPSOLVER_UNBOUNDED\020\003\022\025\n\021MPSOLVER_A" +
204  "BNORMAL\020\004\022\027\n\023MPSOLVER_NOT_SOLVED\020\006\022\033\n\027MP" +
205  "SOLVER_MODEL_IS_VALID\020a\022\033\n\027MPSOLVER_UNKN" +
206  "OWN_STATUS\020c\022\032\n\026MPSOLVER_MODEL_INVALID\020\005" +
207  "\022(\n$MPSOLVER_MODEL_INVALID_SOLUTION_HINT" +
208  "\020T\022,\n(MPSOLVER_MODEL_INVALID_SOLVER_PARA" +
209  "METERS\020U\022$\n MPSOLVER_SOLVER_TYPE_UNAVAIL" +
210  "ABLE\020\007B#\n\037com.google.ortools.linearsolve" +
211  "rP\001"
212  };
213  descriptor = com.google.protobuf.Descriptors.FileDescriptor
214  .internalBuildGeneratedFileFrom(descriptorData,
215  new com.google.protobuf.Descriptors.FileDescriptor[] {
216  com.google.ortools.util.OptionalBooleanOuterClass.getDescriptor(),
217  });
218  internal_static_operations_research_MPVariableProto_descriptor =
219  getDescriptor().getMessageTypes().get(0);
220  internal_static_operations_research_MPVariableProto_fieldAccessorTable = new
221  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
222  internal_static_operations_research_MPVariableProto_descriptor,
223  new java.lang.String[] { "LowerBound", "UpperBound", "ObjectiveCoefficient", "IsInteger", "Name", "BranchingPriority", });
224  internal_static_operations_research_MPConstraintProto_descriptor =
225  getDescriptor().getMessageTypes().get(1);
226  internal_static_operations_research_MPConstraintProto_fieldAccessorTable = new
227  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
228  internal_static_operations_research_MPConstraintProto_descriptor,
229  new java.lang.String[] { "VarIndex", "Coefficient", "LowerBound", "UpperBound", "Name", "IsLazy", });
230  internal_static_operations_research_MPGeneralConstraintProto_descriptor =
231  getDescriptor().getMessageTypes().get(2);
232  internal_static_operations_research_MPGeneralConstraintProto_fieldAccessorTable = new
233  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
234  internal_static_operations_research_MPGeneralConstraintProto_descriptor,
235  new java.lang.String[] { "Name", "IndicatorConstraint", "SosConstraint", "QuadraticConstraint", "GeneralConstraint", });
236  internal_static_operations_research_MPIndicatorConstraint_descriptor =
237  getDescriptor().getMessageTypes().get(3);
238  internal_static_operations_research_MPIndicatorConstraint_fieldAccessorTable = new
239  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
240  internal_static_operations_research_MPIndicatorConstraint_descriptor,
241  new java.lang.String[] { "VarIndex", "VarValue", "Constraint", });
242  internal_static_operations_research_MPSosConstraint_descriptor =
243  getDescriptor().getMessageTypes().get(4);
244  internal_static_operations_research_MPSosConstraint_fieldAccessorTable = new
245  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
246  internal_static_operations_research_MPSosConstraint_descriptor,
247  new java.lang.String[] { "Type", "VarIndex", "Weight", });
248  internal_static_operations_research_MPQuadraticConstraint_descriptor =
249  getDescriptor().getMessageTypes().get(5);
250  internal_static_operations_research_MPQuadraticConstraint_fieldAccessorTable = new
251  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
252  internal_static_operations_research_MPQuadraticConstraint_descriptor,
253  new java.lang.String[] { "VarIndex", "Coefficient", "Qvar1Index", "Qvar2Index", "Qcoefficient", "LowerBound", "UpperBound", });
254  internal_static_operations_research_MPQuadraticObjective_descriptor =
255  getDescriptor().getMessageTypes().get(6);
256  internal_static_operations_research_MPQuadraticObjective_fieldAccessorTable = new
257  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
258  internal_static_operations_research_MPQuadraticObjective_descriptor,
259  new java.lang.String[] { "Qvar1Index", "Qvar2Index", "Coefficient", });
260  internal_static_operations_research_PartialVariableAssignment_descriptor =
261  getDescriptor().getMessageTypes().get(7);
262  internal_static_operations_research_PartialVariableAssignment_fieldAccessorTable = new
263  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
264  internal_static_operations_research_PartialVariableAssignment_descriptor,
265  new java.lang.String[] { "VarIndex", "VarValue", });
266  internal_static_operations_research_MPModelProto_descriptor =
267  getDescriptor().getMessageTypes().get(8);
268  internal_static_operations_research_MPModelProto_fieldAccessorTable = new
269  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
270  internal_static_operations_research_MPModelProto_descriptor,
271  new java.lang.String[] { "Variable", "Constraint", "GeneralConstraint", "Maximize", "ObjectiveOffset", "QuadraticObjective", "Name", "SolutionHint", });
272  internal_static_operations_research_OptionalDouble_descriptor =
273  getDescriptor().getMessageTypes().get(9);
274  internal_static_operations_research_OptionalDouble_fieldAccessorTable = new
275  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
276  internal_static_operations_research_OptionalDouble_descriptor,
277  new java.lang.String[] { "Value", });
278  internal_static_operations_research_MPSolverCommonParameters_descriptor =
279  getDescriptor().getMessageTypes().get(10);
280  internal_static_operations_research_MPSolverCommonParameters_fieldAccessorTable = new
281  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
282  internal_static_operations_research_MPSolverCommonParameters_descriptor,
283  new java.lang.String[] { "RelativeMipGap", "PrimalTolerance", "DualTolerance", "LpAlgorithm", "Presolve", "Scaling", });
284  internal_static_operations_research_MPModelDeltaProto_descriptor =
285  getDescriptor().getMessageTypes().get(11);
286  internal_static_operations_research_MPModelDeltaProto_fieldAccessorTable = new
287  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
288  internal_static_operations_research_MPModelDeltaProto_descriptor,
289  new java.lang.String[] { "BaselineModelFilePath", "VariableOverrides", "ConstraintOverrides", });
290  internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_descriptor =
291  internal_static_operations_research_MPModelDeltaProto_descriptor.getNestedTypes().get(0);
292  internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_fieldAccessorTable = new
293  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
294  internal_static_operations_research_MPModelDeltaProto_VariableOverridesEntry_descriptor,
295  new java.lang.String[] { "Key", "Value", });
296  internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_descriptor =
297  internal_static_operations_research_MPModelDeltaProto_descriptor.getNestedTypes().get(1);
298  internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_fieldAccessorTable = new
299  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
300  internal_static_operations_research_MPModelDeltaProto_ConstraintOverridesEntry_descriptor,
301  new java.lang.String[] { "Key", "Value", });
302  internal_static_operations_research_MPModelRequest_descriptor =
303  getDescriptor().getMessageTypes().get(12);
304  internal_static_operations_research_MPModelRequest_fieldAccessorTable = new
305  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
306  internal_static_operations_research_MPModelRequest_descriptor,
307  new java.lang.String[] { "Model", "SolverType", "SolverTimeLimitSeconds", "EnableInternalSolverOutput", "SolverSpecificParameters", });
308  internal_static_operations_research_MPSolutionResponse_descriptor =
309  getDescriptor().getMessageTypes().get(13);
310  internal_static_operations_research_MPSolutionResponse_fieldAccessorTable = new
311  com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
312  internal_static_operations_research_MPSolutionResponse_descriptor,
313  new java.lang.String[] { "Status", "StatusStr", "ObjectiveValue", "BestObjectiveBound", "VariableValue", "DualValue", "ReducedCost", });
315  }
316 
317  // @@protoc_insertion_point(outer_class_scope)
318 }
static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)