<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#a1de5b8aecba1386644e22b57c067031f"> 20</a></span> <spanclass="keyword">protected</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a1de5b8aecba1386644e22b57c067031f">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_1main__research__linear__solverJNI_html_a815d8b79e546402468ba070f59edcd71"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI.html#a815d8b79e546402468ba070f59edcd71">com.google.ortools.linearsolver.main_research_linear_solverJNI.MPVariable_index</a></div><divclass="ttdeci">static final native int MPVariable_index(long jarg1, MPVariable jarg1_)</div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_ad435a3621ef7493b59b507d42f7bae5d"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#ad435a3621ef7493b59b507d42f7bae5d">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_aa6f8444c479bc98d6693f4f438a11317"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#aa6f8444c479bc98d6693f4f438a11317">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_ab0c516392721a19d6b3713adc55a843b"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#ab0c516392721a19d6b3713adc55a843b">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>
<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="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_ae2de472f757d3e124143dfd7cee4f0eb"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#ae2de472f757d3e124143dfd7cee4f0eb">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_abd406be5e65f37771effe20d9203e6f8"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#abd406be5e65f37771effe20d9203e6f8">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="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#l00686">MPSolver.java:686</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_adc2cf97513e2e664fc5938f5952fc5b2"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#adc2cf97513e2e664fc5938f5952fc5b2">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_aebc206265b26cf9e84abbef64d404478"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#aebc206265b26cf9e84abbef64d404478">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_a2c3a8277b887c85254c93e0b24b8f9ff"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a2c3a8277b887c85254c93e0b24b8f9ff">com.google.ortools.linearsolver.MPVariable.ub</a></div><divclass="ttdeci">double ub()</div><divclass="ttdoc">Returns the upper bound.</div><divclass="ttdef"><b>Definition:</b><ahref="MPVariable_8java_source.html#l00086">MPVariable.java:86</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI_html_a871c6d65c5dc4711f668220a0324712e"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI.html#a871c6d65c5dc4711f668220a0324712e">com.google.ortools.linearsolver.main_research_linear_solverJNI.MPVariable_setInteger</a></div><divclass="ttdeci">static final native void MPVariable_setInteger(long jarg1, MPVariable jarg1_, boolean jarg2)</div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI_html_ae06b7882cd821913ccec6b792cfad04f"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI.html#ae06b7882cd821913ccec6b792cfad04f">com.google.ortools.linearsolver.main_research_linear_solverJNI.MPVariable_basisStatus</a></div><divclass="ttdeci">static final native int MPVariable_basisStatus(long jarg1, MPVariable jarg1_)</div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI_html_a0b7a91c4fcd173241f8b8565582b96df"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1main__research__linear__solverJNI.html#a0b7a91c4fcd173241f8b8565582b96df">com.google.ortools.linearsolver.main_research_linear_solverJNI.MPVariable_setUb</a></div><divclass="ttdeci">static final native void MPVariable_setUb(long jarg1, MPVariable jarg1_, double jarg2)</div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_a4b4757b272c53389235599422d06bf1e"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a4b4757b272c53389235599422d06bf1e">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#l00124">MPVariable.java:124</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_ae8cb4fcf1369df1579217adee2da4f4f"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#ae8cb4fcf1369df1579217adee2da4f4f">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>