Files
ortools-clone/docs/java/MPConstraint_8java_source.html

116 lines
33 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019-06-13 02:45:44 +02:00
<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>
2020-09-01 16:00:33 +02:00
<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">
2021-12-14 13:41:01 +01:00
<span id="sfml">Google OR-Tools 9.2</span>
</div>
</div>
2019-08-07 18:01:08 -07:00
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
2019-08-12 09:16:03 -07:00
<h2>Java Reference</h2>
2019-08-07 18:01:08 -07:00
<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">
2019-08-07 18:01:08 -07:00
<div align="center">
<h1 style="color: #145A32;">Java Reference</h1>
</div>
2022-01-16 18:02:36 +01:00
<!-- Generated by Doxygen 1.8.15 -->
2020-09-01 16:00:33 +02:00
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
2020-09-01 16:00:33 +02:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-16 18:02:36 +01:00
/* @license-end */</script>
2020-09-01 16:00:33 +02:00
<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">
2019-06-13 02:45:44 +02:00
</div>
</div>
2020-09-01 16:00:33 +02:00
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('MPConstraint_8java_source.html','');});
2020-09-01 16:00:33 +02:00
/* @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>
2019-06-13 02:45:44 +02:00
<div class="header">
2022-01-16 18:02:36 +01:00
<div class="headertitle">
<div class="title">MPConstraint.java</div> </div>
2019-06-13 02:45:44 +02:00
</div><!--header-->
<div class="contents">
2022-01-16 18:02:36 +01:00
<a href="MPConstraint_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* ----------------------------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Version 4.0.1</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Do not make changes to this file unless you know what you are doing--modify</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * the SWIG interface file instead.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * ----------------------------------------------------------------------------- */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="keyword">package </span>com.google.ortools.linearsolver;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="keyword">import</span> java.lang.reflect.*;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html"> 18</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">MPConstraint</a> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keyword">private</span> <span class="keyword">transient</span> <span class="keywordtype">long</span> swigCPtr;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keyword">protected</span> <span class="keyword">transient</span> <span class="keywordtype">boolean</span> swigCMemOwn;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#aa9fb6b25e62d6971f62cd3e33e4d8f94"> 22</a></span>&#160; <span class="keyword">protected</span> <a class="code" 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 name="l00023"></a><span class="lineno"> 23</span>&#160; swigCMemOwn = cMemoryOwn;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; swigCPtr = cPtr;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; }</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keyword">protected</span> <span class="keyword">static</span> <span class="keywordtype">long</span> getCPtr(<a class="code" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">MPConstraint</a> obj) {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">return</span> (obj == <span class="keyword">null</span>) ? 0 : obj.swigCPtr;</div><div class="line"><a name="l00029"></a><s
<div class="ttc" id="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="enumcom_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="enumcom_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 class="ttc" id="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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="classcom_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>
2021-01-26 11:28:50 +01:00
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2019-08-07 18:01:08 -07:00
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
2019-06-13 02:45:44 +02:00
</html>