<ahref="MPObjective_8java.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aid="l00001"name="l00001"></a><spanclass="lineno"> 1</span><spanclass="comment">/* ----------------------------------------------------------------------------</span></div>
<divclass="line"><aid="l00002"name="l00002"></a><spanclass="lineno"> 2</span><spanclass="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div>
<divclass="line"><aid="l00003"name="l00003"></a><spanclass="lineno"> 3</span><spanclass="comment"> * Version 4.0.2</span></div>
<divclass="line"><aid="l00005"name="l00005"></a><spanclass="lineno"> 5</span><spanclass="comment"> * Do not make changes to this file unless you know what you are doing--modify</span></div>
<divclass="line"><aid="l00006"name="l00006"></a><spanclass="lineno"> 6</span><spanclass="comment"> * the SWIG interface file instead.</span></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_1MPObjective_html_a0ebfc4cd154927baea28768085a5e596"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a0ebfc4cd154927baea28768085a5e596">com.google.ortools.linearsolver.MPObjective.setMinimization</a></div><divclass="ttdeci">void setMinimization()</div><divclass="ttdoc">Sets the optimization direction to minimize.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00095">MPObjective.java:95</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_a13ef2407c5511981c31fbff93bceb64a"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a13ef2407c5511981c31fbff93bceb64a">com.google.ortools.linearsolver.MPObjective.minimization</a></div><divclass="ttdeci">boolean minimization()</div><divclass="ttdoc">Is the optimization direction set to minimize?</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00116">MPObjective.java:116</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_a1bf9f1dc3db20737a1d30ad170b018ba"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a1bf9f1dc3db20737a1d30ad170b018ba">com.google.ortools.linearsolver.MPObjective.getCoefficient</a></div><divclass="ttdeci">double getCoefficient(MPVariable var)</div><divclass="ttdoc">Gets the coefficient of a given variable in the objective It returns 0 if the variable does not ap...</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00067">MPObjective.java:67</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_1MPObjective_html_a3e301fd943d1213d84f4535c5820fb12"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a3e301fd943d1213d84f4535c5820fb12">com.google.ortools.linearsolver.MPObjective.bestBound</a></div><divclass="ttdeci">double bestBound()</div><divclass="ttdoc">Returns the best objective bound.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00141">MPObjective.java:141</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_1MPObjective_html_a89a0443e99075788cda10446629c99a1"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a89a0443e99075788cda10446629c99a1">com.google.ortools.linearsolver.MPObjective.offset</a></div><divclass="ttdeci">double offset()</div><divclass="ttdoc">Gets the constant term in the objective.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00081">MPObjective.java:81</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_abfa75fba90f37b4d24977a274620c9af"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#abfa75fba90f37b4d24977a274620c9af">com.google.ortools.linearsolver.MPObjective.maximization</a></div><divclass="ttdeci">boolean maximization()</div><divclass="ttdoc">Is the optimization direction set to maximize?</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00109">MPObjective.java:109</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_1linearsolver_1_1MPObjective_html_ac8bb3912a3ce86b15842e79d0b421204"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#ac8bb3912a3ce86b15842e79d0b421204">com.google.ortools.linearsolver.MPObjective.clear</a></div><divclass="ttdeci">void clear()</div><divclass="ttdoc">Clears the offset, all variables and coefficients, and the optimization direction.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00048">MPObjective.java:48</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_aca42a412d866fbaab5b203e034f139db"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#aca42a412d866fbaab5b203e034f139db">com.google.ortools.linearsolver.MPObjective.setOptimizationDirection</a></div><divclass="ttdeci">void setOptimizationDirection(boolean maximize)</div><divclass="ttdoc">Sets the optimization direction (maximize: true or minimize: false).</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00088">MPObjective.java:88</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_ae7afa9f361880cd80b313fcd79f4fa65"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#ae7afa9f361880cd80b313fcd79f4fa65">com.google.ortools.linearsolver.MPObjective.setOffset</a></div><divclass="ttdeci">void setOffset(double value)</div><divclass="ttdoc">Sets the constant term in the objective.</div><divclass="ttdef"><b>Definition:</b><ahref="MPObjective_8java_source.html#l00074">MPObjective.java:74</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>