<ahref="MPVariable_8java.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/* ----------------------------------------------------------------------------</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * Version 4.0.0</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> *</span></div><divclass="line"><aname="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"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment"> * the SWIG interface file instead.</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment"> * ----------------------------------------------------------------------------- */</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> </div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="keyword">package </span>com.google.ortools.linearsolver;</div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> </div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="keyword">import</span> java.lang.reflect.*;</div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> </div><divclass="line"><aname="l00016"></a><spanclass="lineno"><aclass="line"href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html"> 16</a></span> <spanclass="keyword">public</span><spanclass="keyword">class </span><aclass="code"href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">MPVariable</a> {</div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="keyword">private</span><spanclass="keyword">transient</span><spanclass="keywordtype">long</span> swigCPtr;</div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="keyword">protected</span><spanclass="keyword">transient</span><spanclass="keywordtype">boolean</span> swigCMemOwn;</div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> </div><divclass="line"><aname="l00020"></a><spanclass="lineno"><aclass="line"href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a1687210c1557a7025c46180b1a2473af"> 20</a></span> <spanclass="keyword">protected</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a1687210c1557a7025c46180b1a2473af">MPVariable</a>(<spanclass="keywordtype">long</span> cPtr, <spanclass="keywordtype">boolean</span> cMemoryOwn) {</div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span>  swigCMemOwn = cMemoryOwn;</div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span>  swigCPtr = cPtr;</div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span>  }</div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> </div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="keyword">protected</span><spanclass="keyword">static</span><spanclass="keywordtype">long</span> getCPtr(<aclass="code"href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">MPVariable</a> obj) {</div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="keywordflow">return</span> (obj == <spanclass="keyword">null</span>) ? 0 : obj.swigCPtr;</div><divclass="line"><aname="l00027"></a><spanclass="lineno"
<divclass="ttc"id="classcom_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="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_aeddf6e61849e64cda2d1d58291133c21"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#aeddf6e61849e64cda2d1d58291133c21">com.google.ortools.linearsolver.MPVariable.setBounds</a></div><divclass="ttdeci">void setBounds(double lb, double ub)</div><divclass="ttdoc">Sets both the lower and upper bounds.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00107">MPVariable.java:107</a></div></div>
<divclass="ttc"id="classcom_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="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_a4a1d3e9decf2f73184960fc6b470a170"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a4a1d3e9decf2f73184960fc6b470a170">com.google.ortools.linearsolver.MPVariable.reducedCost</a></div><divclass="ttdeci">double reducedCost()</div><divclass="ttdoc">Advanced usage: returns the reduced cost of the variable in the current solution (only available for...</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00115">MPVariable.java:115</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_afa2149aced9d90555f788dfc81c23d15"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#afa2149aced9d90555f788dfc81c23d15">com.google.ortools.linearsolver.MPVariable.name</a></div><divclass="ttdeci">String name()</div><divclass="ttdoc">Returns the name of the variable.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00047">MPVariable.java:47</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_adfc2cdd9cf50a1831abbfa80ac1d02c8"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">com.google.ortools.linearsolver.MPVariable.lb</a></div><divclass="ttdeci">double lb()</div><divclass="ttdoc">Returns the lower bound.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00079">MPVariable.java:79</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_ab92843a20b6487f6d4f270b60e2af719"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#ab92843a20b6487f6d4f270b60e2af719">com.google.ortools.linearsolver.MPVariable.basisStatus</a></div><divclass="ttdeci">MPSolver.BasisStatus basisStatus()</div><divclass="ttdoc">Advanced usage: returns the basis status of the variable in the current solution (only available for...</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00125">MPVariable.java:125</a></div></div>
<divclass="ttc"id="classcom_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>
<divclass="ttc"id="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus_html"><divclass="ttname"><ahref="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html">com.google.ortools.linearsolver.MPSolver.BasisStatus</a></div><divclass="ttdoc">Advanced usage: possible basis status values for a variable and the slack variable of a linear const...</div><divclass="ttdef"><b>Definition:</b><ahref="MPSolver_8java_source.html#l00703">MPSolver.java:703</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_a9f70bea621443367cfb9c8ebe2a0166a"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a9f70bea621443367cfb9c8ebe2a0166a">com.google.ortools.linearsolver.MPVariable.setLb</a></div><divclass="ttdeci">void setLb(double lb)</div><divclass="ttdoc">Sets the lower bound.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00093">MPVariable.java:93</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_a3fbb21f4f71d698cba995ab3d4a7b672"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a3fbb21f4f71d698cba995ab3d4a7b672">com.google.ortools.linearsolver.MPVariable.setInteger</a></div><divclass="ttdeci">void setInteger(boolean integer)</div><divclass="ttdoc">Sets the integrality requirement of the variable.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00054">MPVariable.java:54</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_a019749328da42c4814af71d3e3b647ad"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a019749328da42c4814af71d3e3b647ad">com.google.ortools.linearsolver.MPVariable.index</a></div><divclass="ttdeci">int index()</div><divclass="ttdoc">Returns the index of the variable in the MPSolver::variables_.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00072">MPVariable.java:72</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_ac42e9173b5c99b1a6b9aab16e79088e4"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#ac42e9173b5c99b1a6b9aab16e79088e4">com.google.ortools.linearsolver.MPVariable.setUb</a></div><divclass="ttdeci">void setUb(double ub)</div><divclass="ttdoc">Sets the upper bound.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00100">MPVariable.java:100</a></div></div>