main_research_linear_solverJNI.java
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.0
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.google.ortools.linearsolver;
10 
12  public final static native int MPSolver_CLP_LINEAR_PROGRAMMING_get();
13  public final static native int MPSolver_GLOP_LINEAR_PROGRAMMING_get();
14  public final static native int MPSolver_CBC_MIXED_INTEGER_PROGRAMMING_get();
15  public final static native int MPSolver_BOP_INTEGER_PROGRAMMING_get();
16  public final static native long new_MPSolver(String jarg1, int jarg2);
17  public final static native void delete_MPSolver(long jarg1);
18  public final static native boolean MPSolver_supportsProblemType(int jarg1);
19  public final static native void MPSolver_clear(long jarg1, MPSolver jarg1_);
20  public final static native int MPSolver_numVariables(long jarg1, MPSolver jarg1_);
21  public final static native long MPSolver_lookupVariableOrNull(long jarg1, MPSolver jarg1_, String jarg2);
22  public final static native long MPSolver_makeVar(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, boolean jarg4, String jarg5);
23  public final static native long MPSolver_makeNumVar(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, String jarg4);
24  public final static native long MPSolver_makeIntVar(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, String jarg4);
25  public final static native long MPSolver_makeBoolVar(long jarg1, MPSolver jarg1_, String jarg2);
26  public final static native int MPSolver_numConstraints(long jarg1, MPSolver jarg1_);
27  public final static native long MPSolver_lookupConstraintOrNull(long jarg1, MPSolver jarg1_, String jarg2);
28  public final static native long MPSolver_makeConstraint__SWIG_0(long jarg1, MPSolver jarg1_, double jarg2, double jarg3);
29  public final static native long MPSolver_makeConstraint__SWIG_1(long jarg1, MPSolver jarg1_);
30  public final static native long MPSolver_makeConstraint__SWIG_2(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, String jarg4);
31  public final static native long MPSolver_makeConstraint__SWIG_3(long jarg1, MPSolver jarg1_, String jarg2);
32  public final static native long MPSolver_objective(long jarg1, MPSolver jarg1_);
33  public final static native int MPSolver_NOT_SOLVED_get();
34  public final static native int MPSolver_solve__SWIG_0(long jarg1, MPSolver jarg1_);
35  public final static native int MPSolver_solve__SWIG_1(long jarg1, MPSolver jarg1_, long jarg2, MPSolverParameters jarg2_);
36  public final static native double[] MPSolver_computeConstraintActivities(long jarg1, MPSolver jarg1_);
37  public final static native boolean MPSolver_verifySolution(long jarg1, MPSolver jarg1_, double jarg2, boolean jarg3);
38  public final static native void MPSolver_reset(long jarg1, MPSolver jarg1_);
39  public final static native boolean MPSolver_interruptSolve(long jarg1, MPSolver jarg1_);
40  public final static native boolean MPSolver_setSolverSpecificParametersAsString(long jarg1, MPSolver jarg1_, String jarg2);
41  public final static native int MPSolver_FREE_get();
42  public final static native double MPSolver_infinity();
43  public final static native void MPSolver_enableOutput(long jarg1, MPSolver jarg1_);
44  public final static native void MPSolver_suppressOutput(long jarg1, MPSolver jarg1_);
45  public final static native long MPSolver_iterations(long jarg1, MPSolver jarg1_);
46  public final static native long MPSolver_nodes(long jarg1, MPSolver jarg1_);
47  public final static native double MPSolver_computeExactConditionNumber(long jarg1, MPSolver jarg1_);
48  public final static native void MPSolver_setTimeLimit(long jarg1, MPSolver jarg1_, long jarg2);
49  public final static native long MPSolver_wallTime(long jarg1, MPSolver jarg1_);
50  public final static native String MPSolver_exportModelAsLpFormat__SWIG_0(long jarg1, MPSolver jarg1_, long jarg2, MPModelExportOptions jarg2_);
51  public final static native String MPSolver_exportModelAsLpFormat__SWIG_1(long jarg1, MPSolver jarg1_);
52  public final static native String MPSolver_exportModelAsMpsFormat__SWIG_0(long jarg1, MPSolver jarg1_, long jarg2, MPModelExportOptions jarg2_);
53  public final static native String MPSolver_exportModelAsMpsFormat__SWIG_1(long jarg1, MPSolver jarg1_);
54  public final static native void MPSolver_setHint(long jarg1, MPSolver jarg1_, MPVariable[] jarg2, double[] jarg3);
55  public final static native boolean MPSolver_setNumThreads(long jarg1, MPSolver jarg1_, int jarg2);
56  public final static native void MPObjective_clear(long jarg1, MPObjective jarg1_);
57  public final static native void MPObjective_setCoefficient(long jarg1, MPObjective jarg1_, long jarg2, MPVariable jarg2_, double jarg3);
58  public final static native double MPObjective_getCoefficient(long jarg1, MPObjective jarg1_, long jarg2, MPVariable jarg2_);
59  public final static native void MPObjective_setOffset(long jarg1, MPObjective jarg1_, double jarg2);
60  public final static native double MPObjective_offset(long jarg1, MPObjective jarg1_);
61  public final static native void MPObjective_setOptimizationDirection(long jarg1, MPObjective jarg1_, boolean jarg2);
62  public final static native void MPObjective_setMinimization(long jarg1, MPObjective jarg1_);
63  public final static native void MPObjective_setMaximization(long jarg1, MPObjective jarg1_);
64  public final static native boolean MPObjective_maximization(long jarg1, MPObjective jarg1_);
65  public final static native boolean MPObjective_minimization(long jarg1, MPObjective jarg1_);
66  public final static native double MPObjective_value(long jarg1, MPObjective jarg1_);
67  public final static native double MPObjective_bestBound(long jarg1, MPObjective jarg1_);
68  public final static native void delete_MPObjective(long jarg1);
69  public final static native String MPVariable_name(long jarg1, MPVariable jarg1_);
70  public final static native void MPVariable_setInteger(long jarg1, MPVariable jarg1_, boolean jarg2);
71  public final static native double MPVariable_solutionValue(long jarg1, MPVariable jarg1_);
72  public final static native int MPVariable_index(long jarg1, MPVariable jarg1_);
73  public final static native double MPVariable_lb(long jarg1, MPVariable jarg1_);
74  public final static native double MPVariable_ub(long jarg1, MPVariable jarg1_);
75  public final static native void MPVariable_setLb(long jarg1, MPVariable jarg1_, double jarg2);
76  public final static native void MPVariable_setUb(long jarg1, MPVariable jarg1_, double jarg2);
77  public final static native void MPVariable_setBounds(long jarg1, MPVariable jarg1_, double jarg2, double jarg3);
78  public final static native double MPVariable_reducedCost(long jarg1, MPVariable jarg1_);
79  public final static native int MPVariable_basisStatus(long jarg1, MPVariable jarg1_);
80  public final static native void delete_MPVariable(long jarg1);
81  public final static native String MPConstraint_name(long jarg1, MPConstraint jarg1_);
82  public final static native void MPConstraint_setCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_, double jarg3);
83  public final static native double MPConstraint_getCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_);
84  public final static native double MPConstraint_lb(long jarg1, MPConstraint jarg1_);
85  public final static native double MPConstraint_ub(long jarg1, MPConstraint jarg1_);
86  public final static native void MPConstraint_setLb(long jarg1, MPConstraint jarg1_, double jarg2);
87  public final static native void MPConstraint_setUb(long jarg1, MPConstraint jarg1_, double jarg2);
88  public final static native void MPConstraint_setBounds(long jarg1, MPConstraint jarg1_, double jarg2, double jarg3);
89  public final static native boolean MPConstraint_isLazy(long jarg1, MPConstraint jarg1_);
90  public final static native void MPConstraint_setIsLazy(long jarg1, MPConstraint jarg1_, boolean jarg2);
91  public final static native int MPConstraint_index(long jarg1, MPConstraint jarg1_);
92  public final static native double MPConstraint_dualValue(long jarg1, MPConstraint jarg1_);
93  public final static native int MPConstraint_basisStatus(long jarg1, MPConstraint jarg1_);
94  public final static native void delete_MPConstraint(long jarg1);
95  public final static native int MPSolverParameters_RELATIVE_MIP_GAP_get();
96  public final static native int MPSolverParameters_PRIMAL_TOLERANCE_get();
97  public final static native int MPSolverParameters_DUAL_TOLERANCE_get();
98  public final static native int MPSolverParameters_PRESOLVE_get();
99  public final static native int MPSolverParameters_LP_ALGORITHM_get();
100  public final static native int MPSolverParameters_INCREMENTALITY_get();
101  public final static native int MPSolverParameters_SCALING_get();
102  public final static native int MPSolverParameters_PRESOLVE_OFF_get();
103  public final static native int MPSolverParameters_PRESOLVE_ON_get();
104  public final static native int MPSolverParameters_DUAL_get();
105  public final static native int MPSolverParameters_PRIMAL_get();
106  public final static native int MPSolverParameters_BARRIER_get();
107  public final static native int MPSolverParameters_INCREMENTALITY_OFF_get();
108  public final static native int MPSolverParameters_INCREMENTALITY_ON_get();
109  public final static native int MPSolverParameters_SCALING_OFF_get();
110  public final static native int MPSolverParameters_SCALING_ON_get();
111  public final static native double MPSolverParameters_kDefaultRelativeMipGap_get();
112  public final static native double MPSolverParameters_kDefaultPrimalTolerance_get();
113  public final static native double MPSolverParameters_kDefaultDualTolerance_get();
114  public final static native int MPSolverParameters_kDefaultPresolve_get();
115  public final static native int MPSolverParameters_kDefaultIncrementality_get();
116  public final static native long new_MPSolverParameters();
117  public final static native void MPSolverParameters_setDoubleParam(long jarg1, MPSolverParameters jarg1_, int jarg2, double jarg3);
118  public final static native void MPSolverParameters_setIntegerParam(long jarg1, MPSolverParameters jarg1_, int jarg2, int jarg3);
119  public final static native double MPSolverParameters_getDoubleParam(long jarg1, MPSolverParameters jarg1_, int jarg2);
120  public final static native int MPSolverParameters_getIntegerParam(long jarg1, MPSolverParameters jarg1_, int jarg2);
121  public final static native void delete_MPSolverParameters(long jarg1);
122  public final static native long new_MPModelExportOptions();
123  public final static native void MPModelExportOptions_Obfuscate_set(long jarg1, MPModelExportOptions jarg1_, boolean jarg2);
124  public final static native boolean MPModelExportOptions_Obfuscate_get(long jarg1, MPModelExportOptions jarg1_);
125  public final static native void MPModelExportOptions_LogInvalidNames_set(long jarg1, MPModelExportOptions jarg1_, boolean jarg2);
126  public final static native boolean MPModelExportOptions_LogInvalidNames_get(long jarg1, MPModelExportOptions jarg1_);
127  public final static native void MPModelExportOptions_ShowUnusedVariables_set(long jarg1, MPModelExportOptions jarg1_, boolean jarg2);
128  public final static native boolean MPModelExportOptions_ShowUnusedVariables_get(long jarg1, MPModelExportOptions jarg1_);
129  public final static native void MPModelExportOptions_MaxLineLength_set(long jarg1, MPModelExportOptions jarg1_, int jarg2);
130  public final static native int MPModelExportOptions_MaxLineLength_get(long jarg1, MPModelExportOptions jarg1_);
131  public final static native void delete_MPModelExportOptions(long jarg1);
132 }
static final native long MPSolver_iterations(long jarg1, MPSolver jarg1_)
static final native int MPSolver_solve__SWIG_0(long jarg1, MPSolver jarg1_)
static final native double MPVariable_reducedCost(long jarg1, MPVariable jarg1_)
static final native void MPSolver_suppressOutput(long jarg1, MPSolver jarg1_)
static final native void MPConstraint_setCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_, double jarg3)
static final native int MPSolver_numConstraints(long jarg1, MPSolver jarg1_)
static final native long MPSolver_makeConstraint__SWIG_1(long jarg1, MPSolver jarg1_)
static final native boolean MPObjective_maximization(long jarg1, MPObjective jarg1_)
static final native void MPObjective_setMaximization(long jarg1, MPObjective jarg1_)
static final native double MPSolverParameters_getDoubleParam(long jarg1, MPSolverParameters jarg1_, int jarg2)
static final native void MPModelExportOptions_ShowUnusedVariables_set(long jarg1, MPModelExportOptions jarg1_, boolean jarg2)
static final native void MPModelExportOptions_Obfuscate_set(long jarg1, MPModelExportOptions jarg1_, boolean jarg2)
static final native String MPConstraint_name(long jarg1, MPConstraint jarg1_)
static final native int MPVariable_index(long jarg1, MPVariable jarg1_)
static final native int MPSolverParameters_getIntegerParam(long jarg1, MPSolverParameters jarg1_, int jarg2)
static final native void MPConstraint_setIsLazy(long jarg1, MPConstraint jarg1_, boolean jarg2)
static final native void delete_MPSolverParameters(long jarg1)
static final native double MPObjective_value(long jarg1, MPObjective jarg1_)
static final native long MPSolver_makeConstraint__SWIG_0(long jarg1, MPSolver jarg1_, double jarg2, double jarg3)
static final native void MPObjective_setMinimization(long jarg1, MPObjective jarg1_)
static final native void delete_MPObjective(long jarg1)
static final native String MPSolver_exportModelAsLpFormat__SWIG_1(long jarg1, MPSolver jarg1_)
static final native double MPVariable_lb(long jarg1, MPVariable jarg1_)
static final native boolean MPSolver_supportsProblemType(int jarg1)
static final native long MPSolver_makeIntVar(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, String jarg4)
static final native boolean MPSolver_setSolverSpecificParametersAsString(long jarg1, MPSolver jarg1_, String jarg2)
static final native void MPObjective_clear(long jarg1, MPObjective jarg1_)
static final native void MPSolver_setHint(long jarg1, MPSolver jarg1_, MPVariable[] jarg2, double[] jarg3)
static final native double MPVariable_solutionValue(long jarg1, MPVariable jarg1_)
static final native String MPSolver_exportModelAsMpsFormat__SWIG_1(long jarg1, MPSolver jarg1_)
static final native boolean MPModelExportOptions_Obfuscate_get(long jarg1, MPModelExportOptions jarg1_)
static final native void MPSolver_setTimeLimit(long jarg1, MPSolver jarg1_, long jarg2)
static final native double MPConstraint_getCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_)
static final native void MPConstraint_setUb(long jarg1, MPConstraint jarg1_, double jarg2)
static final native int MPSolver_solve__SWIG_1(long jarg1, MPSolver jarg1_, long jarg2, MPSolverParameters jarg2_)
static final native long MPSolver_makeConstraint__SWIG_2(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, String jarg4)
static final native double MPSolverParameters_kDefaultDualTolerance_get()
static final native boolean MPModelExportOptions_ShowUnusedVariables_get(long jarg1, MPModelExportOptions jarg1_)
static final native void MPVariable_setLb(long jarg1, MPVariable jarg1_, double jarg2)
static final native void MPConstraint_setBounds(long jarg1, MPConstraint jarg1_, double jarg2, double jarg3)
static final native void delete_MPModelExportOptions(long jarg1)
static final native int MPConstraint_index(long jarg1, MPConstraint jarg1_)
static final native boolean MPObjective_minimization(long jarg1, MPObjective jarg1_)
static final native void MPSolver_reset(long jarg1, MPSolver jarg1_)
static final native boolean MPSolver_setNumThreads(long jarg1, MPSolver jarg1_, int jarg2)
static final native long MPSolver_makeBoolVar(long jarg1, MPSolver jarg1_, String jarg2)
static final native void MPSolverParameters_setIntegerParam(long jarg1, MPSolverParameters jarg1_, int jarg2, int jarg3)
static final native String MPSolver_exportModelAsMpsFormat__SWIG_0(long jarg1, MPSolver jarg1_, long jarg2, MPModelExportOptions jarg2_)
static final native double MPObjective_bestBound(long jarg1, MPObjective jarg1_)
static final native double MPObjective_offset(long jarg1, MPObjective jarg1_)
static final native void MPModelExportOptions_MaxLineLength_set(long jarg1, MPModelExportOptions jarg1_, int jarg2)
static final native void MPModelExportOptions_LogInvalidNames_set(long jarg1, MPModelExportOptions jarg1_, boolean jarg2)
static final native void MPSolver_enableOutput(long jarg1, MPSolver jarg1_)
static final native long MPSolver_objective(long jarg1, MPSolver jarg1_)
static final native double MPSolverParameters_kDefaultPrimalTolerance_get()
static final native void MPObjective_setCoefficient(long jarg1, MPObjective jarg1_, long jarg2, MPVariable jarg2_, double jarg3)
static final native void MPVariable_setInteger(long jarg1, MPVariable jarg1_, boolean jarg2)
static final native int MPVariable_basisStatus(long jarg1, MPVariable jarg1_)
static final native void MPConstraint_setLb(long jarg1, MPConstraint jarg1_, double jarg2)
static final native boolean MPSolver_verifySolution(long jarg1, MPSolver jarg1_, double jarg2, boolean jarg3)
static final native void MPVariable_setUb(long jarg1, MPVariable jarg1_, double jarg2)
static final native long MPSolver_makeConstraint__SWIG_3(long jarg1, MPSolver jarg1_, String jarg2)
static final native void delete_MPVariable(long jarg1)
static final native boolean MPConstraint_isLazy(long jarg1, MPConstraint jarg1_)
static final native int MPConstraint_basisStatus(long jarg1, MPConstraint jarg1_)
static final native double MPVariable_ub(long jarg1, MPVariable jarg1_)
static final native boolean MPModelExportOptions_LogInvalidNames_get(long jarg1, MPModelExportOptions jarg1_)
static final native void MPObjective_setOptimizationDirection(long jarg1, MPObjective jarg1_, boolean jarg2)
static final native void delete_MPConstraint(long jarg1)
static final native double MPObjective_getCoefficient(long jarg1, MPObjective jarg1_, long jarg2, MPVariable jarg2_)
static final native long MPSolver_wallTime(long jarg1, MPSolver jarg1_)
static final native long new_MPSolver(String jarg1, int jarg2)
static final native long MPSolver_lookupVariableOrNull(long jarg1, MPSolver jarg1_, String jarg2)
static final native long MPSolver_makeVar(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, boolean jarg4, String jarg5)
static final native double [] MPSolver_computeConstraintActivities(long jarg1, MPSolver jarg1_)
static final native void MPVariable_setBounds(long jarg1, MPVariable jarg1_, double jarg2, double jarg3)
static final native void MPSolver_clear(long jarg1, MPSolver jarg1_)
static final native long MPSolver_lookupConstraintOrNull(long jarg1, MPSolver jarg1_, String jarg2)
static final native void MPObjective_setOffset(long jarg1, MPObjective jarg1_, double jarg2)
static final native int MPModelExportOptions_MaxLineLength_get(long jarg1, MPModelExportOptions jarg1_)
static final native double MPConstraint_ub(long jarg1, MPConstraint jarg1_)
static final native String MPSolver_exportModelAsLpFormat__SWIG_0(long jarg1, MPSolver jarg1_, long jarg2, MPModelExportOptions jarg2_)
static final native double MPSolverParameters_kDefaultRelativeMipGap_get()
static final native int MPSolver_numVariables(long jarg1, MPSolver jarg1_)
static final native void delete_MPSolver(long jarg1)
static final native void MPSolverParameters_setDoubleParam(long jarg1, MPSolverParameters jarg1_, int jarg2, double jarg3)
static final native long MPSolver_nodes(long jarg1, MPSolver jarg1_)
static final native String MPVariable_name(long jarg1, MPVariable jarg1_)
static final native double MPConstraint_lb(long jarg1, MPConstraint jarg1_)
static final native boolean MPSolver_interruptSolve(long jarg1, MPSolver jarg1_)
static final native long MPSolver_makeNumVar(long jarg1, MPSolver jarg1_, double jarg2, double jarg3, String jarg4)
static final native double MPSolver_computeExactConditionNumber(long jarg1, MPSolver jarg1_)
static final native double MPConstraint_dualValue(long jarg1, MPConstraint jarg1_)