<ahref="CMakeTest_8java.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="keyword">package </span>com.google.ortools;</div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a82184e0f0aff709cbbe18de9eb417071"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a82184e0f0aff709cbbe18de9eb417071">com.google.ortools.linearsolver.MPSolver.objective</a></div><divclass="ttdeci">MPObjective objective()</div><divclass="ttdoc">Returns the mutable objective object.</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00282">MPSolver.java:282</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_ac25a1dff53df1bd7dc9f0844ee04ec82"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#ac25a1dff53df1bd7dc9f0844ee04ec82">com.google.ortools.linearsolver.MPObjective.value</a></div><divclass="ttdeci">double value()</div><divclass="ttdoc">Returns the objective value of the best solution found so far.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00131">MPObjective.java:131</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1Loader_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1Loader.html">com.google.ortools.Loader</a></div><divclass="ttdoc">Load native libraries needed for using ortools-java.</div><divclass="ttdef"><b>Definition:</b><ahref="Loader_8java_source.html#l00019">Loader.java:19</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a578663951935567719114bc0b29a944d"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a578663951935567719114bc0b29a944d">com.google.ortools.linearsolver.MPSolver.makeNumVar</a></div><divclass="ttdeci">MPVariable makeNumVar(double lb, double ub, String name)</div><divclass="ttdoc">Creates a continuous variable.</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00193">MPSolver.java:193</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_a7ebbe7c8fd2df3c8ace0e427aea69f9d"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a7ebbe7c8fd2df3c8ace0e427aea69f9d">com.google.ortools.linearsolver.MPObjective.setCoefficient</a></div><divclass="ttdeci">void setCoefficient(MPVariable var, double coeff)</div><divclass="ttdoc">Sets the coefficient of the variable in the objective.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00058">MPObjective.java:58</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a7ebbe7c8fd2df3c8ace0e427aea69f9d"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a7ebbe7c8fd2df3c8ace0e427aea69f9d">com.google.ortools.linearsolver.MPConstraint.setCoefficient</a></div><divclass="ttdeci">void setCoefficient(MPVariable var, double coeff)</div><divclass="ttdoc">Sets the coefficient of the variable on the constraint.</div><divclass="ttdef"><b>Definition:</b><ahref="MPConstraint_8java_source.html#l00059">MPConstraint.java:59</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_afc33432267b4d13352c17882456f17b7"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#afc33432267b4d13352c17882456f17b7">com.google.ortools.linearsolver.MPVariable.solutionValue</a></div><divclass="ttdeci">double solutionValue()</div><divclass="ttdoc">Returns the value of the variable in the current solution.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00065">MPVariable.java:65</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">com.google.ortools.linearsolver.MPConstraint</a></div><divclass="ttdoc">The class for constraints of a Mathematical Programming (MP) model.</div><divclass="ttdef"><b>Definition:</b><ahref="MPConstraint_8java_source.html#l00018">MPConstraint.java:18</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_a2aa46eaf880bbc6b4f797effdcb318fc"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a2aa46eaf880bbc6b4f797effdcb318fc">com.google.ortools.linearsolver.MPObjective.setMaximization</a></div><divclass="ttdeci">void setMaximization()</div><divclass="ttdoc">Sets the optimization direction to maximize.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00102">MPObjective.java:102</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_aab85a4d37821f9c248ce02b5d397b793"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#aab85a4d37821f9c248ce02b5d397b793">com.google.ortools.linearsolver.MPSolver.makeConstraint</a></div><divclass="ttdeci">MPConstraint makeConstraint(double lb, double ub)</div><divclass="ttdoc">Creates a linear constraint with given bounds.</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00250">MPSolver.java:250</a></div></div>
<divclass="ttc"id="aenumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1OptimizationProblemType_html"><divclass="ttname"><ahref="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1OptimizationProblemType.html">com.google.ortools.linearsolver.MPSolver.OptimizationProblemType</a></div><divclass="ttdoc">The type of problems (LP or MIP) that will be solved and the underlying solver (GLOP,...</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00599">MPSolver.java:599</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html">com.google.ortools.linearsolver.MPObjective</a></div><divclass="ttdoc">A class to express a linear objective.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00016">MPObjective.java:16</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a0937b6374d066c8aaaaf854945b0071a"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a0937b6374d066c8aaaaf854945b0071a">com.google.ortools.linearsolver.MPSolver.numVariables</a></div><divclass="ttdeci">int numVariables()</div><divclass="ttdoc">Returns the number of variables.</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00156">MPSolver.java:156</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">com.google.ortools.linearsolver.MPVariable</a></div><divclass="ttdoc">The class for variables of a Mathematical Programming (MP) model.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00016">MPVariable.java:16</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a71333b4ef2e0f6cbc6f50cca0e6c15d3"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a71333b4ef2e0f6cbc6f50cca0e6c15d3">com.google.ortools.linearsolver.MPSolver.numConstraints</a></div><divclass="ttdeci">int numConstraints()</div><divclass="ttdoc">Returns the number of constraints.</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00217">MPSolver.java:217</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a3ebb968238bcc45c20bea2c0fbc887f5"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a3ebb968238bcc45c20bea2c0fbc887f5">com.google.ortools.linearsolver.MPSolver.solve</a></div><divclass="ttdeci">MPSolver.ResultStatus solve()</div><divclass="ttdoc">Solves the problem using the default parameter values.</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00290">MPSolver.java:290</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html">com.google.ortools.linearsolver.MPSolver</a></div><divclass="ttdoc">This mathematical programming (MP) solver class is the main class though which users build and solve...</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00017">MPSolver.java:17</a></div></div>