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

71 lines
31 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"/>-->
2019-06-20 23:19:36 +02:00
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="banner-container">
<div id="banner">
2019-06-29 18:18:08 +02:00
<span id="sfml">OR-Tools 7.2</span>
</div>
</div>
2019-06-26 12:16:47 +02:00
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
<div id="content">
2019-06-13 02:45:44 +02:00
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_b2c6d49957bf5d0c7726edb4b829cd4d.html">gen</a></li><li class="navelem"><a class="el" href="dir_82da1734a9cb0f1cf40dbd95c2117ce5.html">com</a></li><li class="navelem"><a class="el" href="dir_1713cbfcde5229f242ac28be432e77c9.html">google</a></li><li class="navelem"><a class="el" href="dir_06c320066273db25e45ae140036401c9.html">ortools</a></li><li class="navelem"><a class="el" href="dir_4f0d63c348f97e5defc3c6fccd9ab57f.html">linearsolver</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">MPConstraint.java</div> </div>
</div><!--header-->
<div class="contents">
2019-07-15 15:36:07 -07: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.0</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#a654792eee57a5c3525aaee5ca4725692"> 22</a></span>&#160; <span class="keyword">protected</span> <a class="code" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a654792eee57a5c3525aaee5ca4725692">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
2019-07-15 14:27:40 -07:00
<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_a654792eee57a5c3525aaee5ca4725692"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a654792eee57a5c3525aaee5ca4725692">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>
2019-07-15 15:36:07 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a618f2f3ec61372cf3d815474dd4cfe37"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a618f2f3ec61372cf3d815474dd4cfe37">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>
2019-07-15 14:27:40 -07:00
<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>
2019-07-15 15:36:07 -07:00
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus_html_ad29d7027ae02163b264f5d6d76746729"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1BasisStatus.html#ad29d7027ae02163b264f5d6d76746729">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#l00703">MPSolver.java:703</a></div></div>
2019-07-15 14:27:40 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a74bd970ff663fd82cfd98f8c325ae66a"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a74bd970ff663fd82cfd98f8c325ae66a">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_ac2bdf0d37be6b685385192b46a07e04f"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ac2bdf0d37be6b685385192b46a07e04f">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>
2019-07-15 15:36:07 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_afc81d369d94d405df3c6b63a207b5bed"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#afc81d369d94d405df3c6b63a207b5bed">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>
2019-07-15 14:27:40 -07:00
<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>
2019-07-15 15:36:07 -07:00
<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#l00692">MPSolver.java:692</a></div></div>
2019-07-15 14:27:40 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a69e183e06fdbdc0821de660f3711fb88"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a69e183e06fdbdc0821de660f3711fb88">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>
2019-07-15 15:36:07 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_ad18f39cb6a79397484be63580488d06d"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ad18f39cb6a79397484be63580488d06d">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>
2019-07-15 14:27:40 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a71e2a5848b6791b9ffe2948ad9d17e5a"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a71e2a5848b6791b9ffe2948ad9d17e5a">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_1MPConstraint_html_a61e46874870357d7331ee973b8762096"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a61e46874870357d7331ee973b8762096">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_a8ea6d4649734d3344a5a104722710312"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a8ea6d4649734d3344a5a104722710312">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_a38b1497981713ee13af81bf6cc18ef7d"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a38b1497981713ee13af81bf6cc18ef7d">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_ae2415596e11e86d0a08a68d4207e568e"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#ae2415596e11e86d0a08a68d4207e568e">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>
2019-07-15 15:36:07 -07:00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_af0a22061a7584adff48a839cd37a4b63"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#af0a22061a7584adff48a839cd37a4b63">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>
2019-06-13 02:45:44 +02:00
</div><!-- fragment --></div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
2019-06-13 02:45:44 +02:00
</html>