Files
ortools-clone/docs/java/MPConstraint_8java_source.html
2022-01-15 22:53:18 +01:00

210 lines
34 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OR-Tools</title>
<meta http-equiv="Content-Type" content="text/html;"/>
<meta charset="utf-8"/>
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="banner-container">
<div id="banner">
<span id="sfml">Google OR-Tools 9.2</span>
</div>
</div>
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
<h2>Java Reference</h2>
<ul>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1sat.html">CP-SAT</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1graph.html">Graph</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1algorithms.html">Knapsack solver</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1linearsolver.html">Linear solver</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1constraintsolver.html">Routing</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1util.html">Util</a></li>
</ul>
</div>
<div id="content">
<div align="center">
<h1 style="color: #145A32;">Java Reference</h1>
</div>
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('MPConstraint_8java_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle"><div class="title">MPConstraint.java</div></div>
</div><!--header-->
<div class="contents">
<a href="MPConstraint_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/* ----------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * Version 4.0.2</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Do not make changes to this file unless you know what you are doing--modify</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * the SWIG interface file instead.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * ----------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">package </span>com.google.ortools.linearsolver;</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">import</span> java.lang.reflect.*;</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html"> 18</a></span><span class="keyword">public</span> <span class="keyword">class </span><a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">MPConstraint</a> {</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">private</span> <span class="keyword">transient</span> <span class="keywordtype">long</span> swigCPtr;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">protected</span> <span class="keyword">transient</span> <span class="keywordtype">boolean</span> swigCMemOwn;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa9fb6b25e62d6971f62cd3e33e4d8f94"> 22</a></span> <span class="keyword">protected</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa9fb6b25e62d6971f62cd3e33e4d8f94">MPConstraint</a>(<span class="keywordtype">long</span> cPtr, <span class="keywordtype">boolean</span> cMemoryOwn) {</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> swigCMemOwn = cMemoryOwn;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> swigCPtr = cPtr;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> }</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">protected</span> <span class="keyword">static</span> <span class="keywordtype">long</span> getCPtr(<a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">MPConstraint</a> obj) {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keywordflow">return</span> (obj == <span class="keyword">null</span>) ? 0 : obj.swigCPtr;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> }</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> @SuppressWarnings(<span class="stringliteral">&quot;deprecation&quot;</span>)</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> protected <span class="keywordtype">void</span> finalize() {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a155da317e33b817886120f10038c12cf">delete</a>();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> }</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a155da317e33b817886120f10038c12cf"> 36</a></span> <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a155da317e33b817886120f10038c12cf">delete</a>() {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">if</span> (swigCPtr != 0) {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">if</span> (swigCMemOwn) {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> swigCMemOwn = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> main_research_linear_solverJNI.delete_MPConstraint(swigCPtr);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> }</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> swigCPtr = 0;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#afa2149aced9d90555f788dfc81c23d15"> 49</a></span> <span class="keyword">public</span> String <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#afa2149aced9d90555f788dfc81c23d15">name</a>() {</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_name(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a7ebbe7c8fd2df3c8ace0e427aea69f9d"> 59</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a7ebbe7c8fd2df3c8ace0e427aea69f9d">setCoefficient</a>(<a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">MPVariable</a> var, <span class="keywordtype">double</span> coeff) {</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> main_research_linear_solverJNI.MPConstraint_setCoefficient(swigCPtr, <span class="keyword">this</span>, <a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">MPVariable</a>.getCPtr(var), var, coeff);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a1bf9f1dc3db20737a1d30ad170b018ba"> 67</a></span> <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a1bf9f1dc3db20737a1d30ad170b018ba">getCoefficient</a>(<a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">MPVariable</a> var) {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_getCoefficient(swigCPtr, <span class="keyword">this</span>, <a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">MPVariable</a>.getCPtr(var), var);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8"> 74</a></span> <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">lb</a>() {</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_lb(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036"> 81</a></span> <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036">ub</a>() {</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_ub(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a9f70bea621443367cfb9c8ebe2a0166a"> 88</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a9f70bea621443367cfb9c8ebe2a0166a">setLb</a>(<span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">lb</a>) {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> main_research_linear_solverJNI.MPConstraint_setLb(swigCPtr, <span class="keyword">this</span>, <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">lb</a>);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ac42e9173b5c99b1a6b9aab16e79088e4"> 95</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ac42e9173b5c99b1a6b9aab16e79088e4">setUb</a>(<span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036">ub</a>) {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> main_research_linear_solverJNI.MPConstraint_setUb(swigCPtr, <span class="keyword">this</span>, <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036">ub</a>);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aeddf6e61849e64cda2d1d58291133c21"> 102</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aeddf6e61849e64cda2d1d58291133c21">setBounds</a>(<span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">lb</a>, <span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036">ub</a>) {</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> main_research_linear_solverJNI.MPConstraint_setBounds(swigCPtr, <span class="keyword">this</span>, <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">lb</a>, <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036">ub</a>);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> }</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa93740b16b636898fa47615e3767a426"> 109</a></span> <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa93740b16b636898fa47615e3767a426">isLazy</a>() {</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_isLazy(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> }</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a0a3d355c9ed3e08808c6309a0f47e72f"> 126</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a0a3d355c9ed3e08808c6309a0f47e72f">setIsLazy</a>(<span class="keywordtype">boolean</span> laziness) {</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> main_research_linear_solverJNI.MPConstraint_setIsLazy(swigCPtr, <span class="keyword">this</span>, laziness);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a019749328da42c4814af71d3e3b647ad"> 133</a></span> <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a019749328da42c4814af71d3e3b647ad">index</a>() {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_index(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> }</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ad32d4827b8a9cf3849766b37ebabb334"> 141</a></span> <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ad32d4827b8a9cf3849766b37ebabb334">dualValue</a>() {</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordflow">return</span> main_research_linear_solverJNI.MPConstraint_dualValue(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> }</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ab92843a20b6487f6d4f270b60e2af719"> 157</a></span> <span class="keyword">public</span> <a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html">MPSolver</a>.<a class="code hl_class" href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html">BasisStatus</a> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ab92843a20b6487f6d4f270b60e2af719">basisStatus</a>() {</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html">MPSolver</a>.<a class="code hl_class" href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html">BasisStatus</a>.<a class="code hl_function" href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html#a422b60af4a323ca47bab1c40f420969b">swigToEnum</a>(main_research_linear_solverJNI.MPConstraint_basisStatus(swigCPtr, <span class="keyword">this</span>));</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> }</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span>}</div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">com.google.ortools.linearsolver.MPConstraint</a></div><div class="ttdoc">The class for constraints of a Mathematical Programming (MP) model.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00018">MPConstraint.java:18</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a019749328da42c4814af71d3e3b647ad"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a019749328da42c4814af71d3e3b647ad">com.google.ortools.linearsolver.MPConstraint.index</a></div><div class="ttdeci">int index()</div><div class="ttdoc">Returns the index of the constraint in the MPSolver::constraints_.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00133">MPConstraint.java:133</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a0a3d355c9ed3e08808c6309a0f47e72f"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a0a3d355c9ed3e08808c6309a0f47e72f">com.google.ortools.linearsolver.MPConstraint.setIsLazy</a></div><div class="ttdeci">void setIsLazy(boolean laziness)</div><div class="ttdoc">Advanced usage: sets the constraint &quot;laziness&quot;.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00126">MPConstraint.java:126</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a155da317e33b817886120f10038c12cf"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a155da317e33b817886120f10038c12cf">com.google.ortools.linearsolver.MPConstraint.delete</a></div><div class="ttdeci">synchronized void delete()</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00036">MPConstraint.java:36</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a1bf9f1dc3db20737a1d30ad170b018ba"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a1bf9f1dc3db20737a1d30ad170b018ba">com.google.ortools.linearsolver.MPConstraint.getCoefficient</a></div><div class="ttdeci">double getCoefficient(MPVariable var)</div><div class="ttdoc">Gets the coefficient of a given variable on the constraint (which is 0 if the variable does not appe...</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00067">MPConstraint.java:67</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a68fffc459264c22ae1c6ef0774f06036"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036">com.google.ortools.linearsolver.MPConstraint.ub</a></div><div class="ttdeci">double ub()</div><div class="ttdoc">Returns the upper bound.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00081">MPConstraint.java:81</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a7ebbe7c8fd2df3c8ace0e427aea69f9d"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a7ebbe7c8fd2df3c8ace0e427aea69f9d">com.google.ortools.linearsolver.MPConstraint.setCoefficient</a></div><div class="ttdeci">void setCoefficient(MPVariable var, double coeff)</div><div class="ttdoc">Sets the coefficient of the variable on the constraint.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00059">MPConstraint.java:59</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a9f70bea621443367cfb9c8ebe2a0166a"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a9f70bea621443367cfb9c8ebe2a0166a">com.google.ortools.linearsolver.MPConstraint.setLb</a></div><div class="ttdeci">void setLb(double lb)</div><div class="ttdoc">Sets the lower bound.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00088">MPConstraint.java:88</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_aa93740b16b636898fa47615e3767a426"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa93740b16b636898fa47615e3767a426">com.google.ortools.linearsolver.MPConstraint.isLazy</a></div><div class="ttdeci">boolean isLazy()</div><div class="ttdoc">Advanced usage: returns true if the constraint is &quot;lazy&quot; (see below).</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00109">MPConstraint.java:109</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_aa9fb6b25e62d6971f62cd3e33e4d8f94"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa9fb6b25e62d6971f62cd3e33e4d8f94">com.google.ortools.linearsolver.MPConstraint.MPConstraint</a></div><div class="ttdeci">MPConstraint(long cPtr, boolean cMemoryOwn)</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00022">MPConstraint.java:22</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_ab92843a20b6487f6d4f270b60e2af719"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ab92843a20b6487f6d4f270b60e2af719">com.google.ortools.linearsolver.MPConstraint.basisStatus</a></div><div class="ttdeci">MPSolver.BasisStatus basisStatus()</div><div class="ttdoc">Advanced usage: returns the basis status of the constraint.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00157">MPConstraint.java:157</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_ac42e9173b5c99b1a6b9aab16e79088e4"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ac42e9173b5c99b1a6b9aab16e79088e4">com.google.ortools.linearsolver.MPConstraint.setUb</a></div><div class="ttdeci">void setUb(double ub)</div><div class="ttdoc">Sets the upper bound.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00095">MPConstraint.java:95</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_ad32d4827b8a9cf3849766b37ebabb334"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ad32d4827b8a9cf3849766b37ebabb334">com.google.ortools.linearsolver.MPConstraint.dualValue</a></div><div class="ttdeci">double dualValue()</div><div class="ttdoc">Advanced usage: returns the dual value of the constraint in the current solution (only available for...</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00141">MPConstraint.java:141</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_adfc2cdd9cf50a1831abbfa80ac1d02c8"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#adfc2cdd9cf50a1831abbfa80ac1d02c8">com.google.ortools.linearsolver.MPConstraint.lb</a></div><div class="ttdeci">double lb()</div><div class="ttdoc">Returns the lower bound.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00074">MPConstraint.java:74</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_aeddf6e61849e64cda2d1d58291133c21"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aeddf6e61849e64cda2d1d58291133c21">com.google.ortools.linearsolver.MPConstraint.setBounds</a></div><div class="ttdeci">void setBounds(double lb, double ub)</div><div class="ttdoc">Sets both the lower and upper bounds.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00102">MPConstraint.java:102</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_afa2149aced9d90555f788dfc81c23d15"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#afa2149aced9d90555f788dfc81c23d15">com.google.ortools.linearsolver.MPConstraint.name</a></div><div class="ttdeci">String name()</div><div class="ttdoc">Returns the name of the constraint.</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00049">MPConstraint.java:49</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html">com.google.ortools.linearsolver.MPSolver</a></div><div class="ttdoc">This mathematical programming (MP) solver class is the main class though which users build and solve...</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00017">MPSolver.java:17</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">com.google.ortools.linearsolver.MPVariable</a></div><div class="ttdoc">The class for variables of a Mathematical Programming (MP) model.</div><div class="ttdef"><b>Definition:</b> <a href="MPVariable_8java_source.html#l00016">MPVariable.java:16</a></div></div>
<div class="ttc" id="aenumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus_html"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html">com.google.ortools.linearsolver.MPSolver.BasisStatus</a></div><div class="ttdoc">Advanced usage: possible basis status values for a variable and the slack variable of a linear const...</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00748">MPSolver.java:748</a></div></div>
<div class="ttc" id="aenumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus_html_a422b60af4a323ca47bab1c40f420969b"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html#a422b60af4a323ca47bab1c40f420969b">com.google.ortools.linearsolver.MPSolver.BasisStatus.swigToEnum</a></div><div class="ttdeci">static BasisStatus swigToEnum(int swigValue)</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00759">MPSolver.java:759</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>