Files
ortools-clone/docs/dotnet/LinearConstraint_8cs_source.html

81 lines
43 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">
<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"/>-->
<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-29 18:18:08 +02:00
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
<div id="content">
<!-- 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="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</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>
<li><a href="globals.html"><span>File&#160;Members</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_4d3a5a688e4550f3d7725aaa5ab9c27b.html">linear_solver</a></li><li class="navelem"><a class="el" href="dir_3a3d7bac3b6f6c6e4a6cb4a9e2e91174.html">csharp</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">LinearConstraint.cs</div> </div>
</div><!--header-->
<div class="contents">
2019-07-04 15:11:35 +02:00
<a href="LinearConstraint_8cs.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">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</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;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Google.OrTools.LinearSolver</a></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;{</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">using</span> System;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <span class="keyword">using</span> System.Collections.<a class="code" href="namespaceSystem_1_1Collections_1_1Generic.html">Generic</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html"> 19</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html">LinearConstraint</a></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;{</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="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html#a5782c3fd63e882a9fa083fb06695f0eb"> 22</a></span>&#160; <span class="keyword">public</span> <span class="keyword">virtual</span> String <a class="code" href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html#a5782c3fd63e882a9fa083fb06695f0eb">ToString</a>()</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;LinearConstraint&quot;</
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint_html_af5001c10fcf37ab02c614d9a51716d56"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint.html#af5001c10fcf37ab02c614d9a51716d56">Google.OrTools.LinearSolver.RangeConstraint.ToString</a></div><div class="ttdeci">override String ToString()</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00043">LinearConstraint.cs:43</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html">Google.OrTools.LinearSolver.LinearConstraint</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00019">LinearConstraint.cs:19</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable.html">Google.OrTools.LinearSolver.Variable</a></div><div class="ttdef"><b>Definition:</b> <a href="Variable_8cs_source.html#l00013">Variable.cs:13</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint_html_ad66f4eafd022e8e64ea1d7e7dd39424d"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint.html#ad66f4eafd022e8e64ea1d7e7dd39424d">Google.OrTools.LinearSolver.RangeConstraint.RangeConstraint</a></div><div class="ttdeci">RangeConstraint(LinearExpr expr, double lb, double ub)</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00036">LinearConstraint.cs:36</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality_html_ad7ea09e15c9c705df55d47260507da6b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality.html#ad7ea09e15c9c705df55d47260507da6b">Google.OrTools.LinearSolver.Equality.Extract</a></div><div class="ttdeci">override Constraint Extract(Solver solver)</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00085">LinearConstraint.cs:85</a></div></div>
2019-07-04 15:11:35 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1MPConstraintVector_html_a98ca06e51719789ba98ae99c2450e2ff"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1MPConstraintVector.html#a98ca06e51719789ba98ae99c2450e2ff">Google.OrTools.LinearSolver.MPConstraintVector.MPConstraintVector</a></div><div class="ttdeci">MPConstraintVector()</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraintVector_8cs_source.html#l00242">MPConstraintVector.cs:242</a></div></div>
2019-06-29 18:18:08 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Constraint_html_abc86ee32159313d45e26911e2fb68fae"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Constraint.html#abc86ee32159313d45e26911e2fb68fae">Google.OrTools.LinearSolver.Constraint.SetCoefficient</a></div><div class="ttdeci">void SetCoefficient(Variable var, double coeff)</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2Constraint_8cs_source.html#l00052">linear_solver/Constraint.cs:52</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1VarEquality_html_a465d7e69ed71c309d37b60d09c1c16f5"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1VarEquality.html#a465d7e69ed71c309d37b60d09c1c16f5">Google.OrTools.LinearSolver.VarEquality.VarEquality</a></div><div class="ttdeci">VarEquality(Variable left, Variable right, bool equality)</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00111">LinearConstraint.cs:111</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearExpr_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearExpr.html">Google.OrTools.LinearSolver.LinearExpr</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearExpr_8cs_source.html#l00019">LinearExpr.cs:19</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html">Google.OrTools.LinearSolver.Solver</a></div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2Solver_8cs_source.html#l00013">linear_solver/Solver.cs:13</a></div></div>
2019-06-29 18:18:08 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable_html_a5dbd92367e4a651ea437d269acab8efc"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable.html#a5dbd92367e4a651ea437d269acab8efc">Google.OrTools.LinearSolver.Variable.Name</a></div><div class="ttdeci">string Name()</div><div class="ttdef"><b>Definition:</b> <a href="Variable_8cs_source.html#l00047">Variable.cs:47</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality_html_ae5b64f985f7a96026a2043e5d44747b0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality.html#ae5b64f985f7a96026a2043e5d44747b0">Google.OrTools.LinearSolver.Equality.ToString</a></div><div class="ttdeci">override String ToString()</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00080">LinearConstraint.cs:80</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1VarEquality_html_a8873df64946c84c01bce1768d6fab77a"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1VarEquality.html#a8873df64946c84c01bce1768d6fab77a">Google.OrTools.LinearSolver.VarEquality.ToString</a></div><div class="ttdeci">override String ToString()</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00118">LinearConstraint.cs:118</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearExpr_html_af376106ff5aaaaf0a97aa907a761041a"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearExpr.html#af376106ff5aaaaf0a97aa907a761041a">Google.OrTools.LinearSolver.LinearExpr.DoVisit</a></div><div class="ttdeci">virtual double DoVisit(Dictionary&lt; Variable, double &gt; coefficients, double multiplier)</div><div class="ttdef"><b>Definition:</b> <a href="LinearExpr_8cs_source.html#l00021">LinearExpr.cs:21</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint.html">Google.OrTools.LinearSolver.RangeConstraint</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00033">LinearConstraint.cs:33</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint_html_afeb4fcbe70b3d05874bb888c9127538a"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html#afeb4fcbe70b3d05874bb888c9127538a">Google.OrTools.LinearSolver.LinearConstraint.Extract</a></div><div class="ttdeci">virtual Constraint Extract(Solver solver)</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00027">LinearConstraint.cs:27</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Constraint_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Constraint.html">Google.OrTools.LinearSolver.Constraint</a></div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2Constraint_8cs_source.html#l00013">linear_solver/Constraint.cs:13</a></div></div>
2019-07-04 15:11:35 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1MPConstraintVector_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1MPConstraintVector.html">Google.OrTools.LinearSolver.MPConstraintVector</a></div><div class="ttdef"><b>Definition:</b> <a href="MPConstraintVector_8cs_source.html#l00013">MPConstraintVector.cs:13</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_ad56898a7c5476e8bcd41e92900f43c29"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#ad56898a7c5476e8bcd41e92900f43c29">Google.OrTools.LinearSolver.Solver.MakeConstraint</a></div><div class="ttdeci">Constraint MakeConstraint(double lb, double ub)</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2Solver_8cs_source.html#l00122">linear_solver/Solver.cs:122</a></div></div>
<div class="ttc" id="namespaceGoogle_1_1OrTools_1_1LinearSolver_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Google.OrTools.LinearSolver</a></div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2Constraint_8cs_source.html#l00011">linear_solver/Constraint.cs:11</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality_html_a1154b5a472a19f687a3c4ab361966b25"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality.html#a1154b5a472a19f687a3c4ab361966b25">Google.OrTools.LinearSolver.Equality.Equality</a></div><div class="ttdeci">Equality(LinearExpr left, LinearExpr right, bool equality)</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00073">LinearConstraint.cs:73</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint_html_a1af1ffd11f1cc088257cb3cb5193307e"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1RangeConstraint.html#a1af1ffd11f1cc088257cb3cb5193307e">Google.OrTools.LinearSolver.RangeConstraint.Extract</a></div><div class="ttdeci">override Constraint Extract(Solver solver)</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00048">LinearConstraint.cs:48</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Equality.html">Google.OrTools.LinearSolver.Equality</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00071">LinearConstraint.cs:71</a></div></div>
<div class="ttc" id="namespaceSystem_1_1Collections_1_1Generic_html"><div class="ttname"><a href="namespaceSystem_1_1Collections_1_1Generic.html">Generic</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearExpr_html_ad946b2f73071b326274f0c613d629869"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearExpr.html#ad946b2f73071b326274f0c613d629869">Google.OrTools.LinearSolver.LinearExpr.Visit</a></div><div class="ttdeci">double Visit(Dictionary&lt; Variable, double &gt; coefficients)</div><div class="ttdef"><b>Definition:</b> <a href="LinearExpr_8cs_source.html#l00027">LinearExpr.cs:27</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint_html_a5782c3fd63e882a9fa083fb06695f0eb"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1LinearConstraint.html#a5782c3fd63e882a9fa083fb06695f0eb">Google.OrTools.LinearSolver.LinearConstraint.ToString</a></div><div class="ttdeci">virtual String ToString()</div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00022">LinearConstraint.cs:22</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1VarEquality_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1VarEquality.html">Google.OrTools.LinearSolver.VarEquality</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearConstraint_8cs_source.html#l00109">LinearConstraint.cs:109</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>