Files
ortools-clone/docs/cpp_linear/linear__expr_8h_source.html

85 lines
30 KiB
HTML
Raw Normal View History

2019-07-15 17:42:24 -07:00
<!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">
<span id="sfml">OR-Tools 7.2</span>
</div>
</div>
<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><!-- 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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('linear__expr_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">linear_expr.h</div> </div>
</div><!--header-->
<div class="contents">
2019-07-16 10:13:02 -07:00
<a href="linear__expr_8h.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="preprocessor">#ifndef OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_map.h&quot;</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html"> 80</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment">// NOTE(user): forward declaration is necessary due to cyclic dependencies,</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="comment">// MPVariable is defined in linear_solver.h, which depends on LinearExpr.</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1MPVariable.html">MPVariable</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html"> 110</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> {</div><div class="li
2019-07-15 17:42:24 -07:00
<div class="ttc" id="namespaceoperations__research_html_a97f9b83239285f5fdfcac1b8e8b4f162"><div class="ttname"><a href="namespaceoperations__research.html#a97f9b83239285f5fdfcac1b8e8b4f162">operations_research::operator+</a></div><div class="ttdeci">LinearExpr operator+(LinearExpr lhs, const LinearExpr &amp;rhs)</div></div>
<div class="ttc" id="namespaceoperations__research_html_a741104fe08089fe3520676487f7a685d"><div class="ttname"><a href="namespaceoperations__research.html#a741104fe08089fe3520676487f7a685d">operations_research::operator *</a></div><div class="ttdeci">LinearExpr operator *(LinearExpr lhs, double rhs)</div></div>
<div class="ttc" id="namespaceoperations__research_html_a6d1fa20f9c9faf7027c0b16f97139e80"><div class="ttname"><a href="namespaceoperations__research.html#a6d1fa20f9c9faf7027c0b16f97139e80">operations_research::operator&lt;=</a></div><div class="ttdeci">LinearRange operator&lt;=(const LinearExpr &amp;lhs, const LinearExpr &amp;rhs)</div></div>
2019-07-15 17:55:13 -07:00
<div class="ttc" id="classoperations__research_1_1LinearRange_html"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html">operations_research::LinearRange</a></div><div class="ttdoc">An expression of the form:</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00180">linear_expr.h:180</a></div></div>
2019-07-15 17:42:24 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a07afbba5788651a38be83e959bbbc92c"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a07afbba5788651a38be83e959bbbc92c">operations_research::LinearExpr::SolutionValue</a></div><div class="ttdeci">double SolutionValue() const</div><div class="ttdoc">Evaluates the value of this expression at the solution found.</div></div>
<div class="ttc" id="namespaceoperations__research_html_a08146f196bd9c3f492ee108732449ced"><div class="ttname"><a href="namespaceoperations__research.html#a08146f196bd9c3f492ee108732449ced">operations_research::operator==</a></div><div class="ttdeci">LinearRange operator==(const LinearExpr &amp;lhs, const LinearExpr &amp;rhs)</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a757085e5b10be1bde2ff049a3dbc51c7"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a757085e5b10be1bde2ff049a3dbc51c7">operations_research::LinearExpr::operator *=</a></div><div class="ttdeci">LinearExpr &amp; operator *=(double rhs)</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a3245b8350f417872f1f638ecd22a832f"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a3245b8350f417872f1f638ecd22a832f">operations_research::LinearExpr::LinearExpr</a></div><div class="ttdeci">LinearExpr()</div></div>
2019-07-16 10:13:02 -07:00
<div class="ttc" id="classoperations__research_1_1LinearRange_html_ac9dc29ebeaf4a37d108c0094ca89eb9d"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d">operations_research::LinearRange::lower_bound</a></div><div class="ttdeci">double lower_bound() const</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00193">linear_expr.h:193</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearRange_html_a527995fddd9d1781d996ff6f50e48041"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041">operations_research::LinearRange::upper_bound</a></div><div class="ttdeci">double upper_bound() const</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00195">linear_expr.h:195</a></div></div>
2019-07-15 17:55:13 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html">operations_research::LinearExpr</a></div><div class="ttdoc">LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization...</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00110">linear_expr.h:110</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearRange_html_a9ce7b1b40dc5135ed9ca27cfedeca64e"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#a9ce7b1b40dc5135ed9ca27cfedeca64e">operations_research::LinearRange::LinearRange</a></div><div class="ttdeci">LinearRange()</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00182">linear_expr.h:182</a></div></div>
2019-07-16 10:13:02 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a37d87e22cd7125839fab636219336df8"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a37d87e22cd7125839fab636219336df8">operations_research::LinearExpr::terms</a></div><div class="ttdeci">const absl::flat_hash_map&lt; const MPVariable *, double &gt; &amp; terms() const</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00139">linear_expr.h:139</a></div></div>
2019-07-15 17:42:24 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a5f501758e469b8718b8410bb87100f51"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a5f501758e469b8718b8410bb87100f51">operations_research::LinearExpr::operator+=</a></div><div class="ttdeci">LinearExpr &amp; operator+=(const LinearExpr &amp;rhs)</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a14e5dbbcd5618dc42a8799181490742e"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a14e5dbbcd5618dc42a8799181490742e">operations_research::LinearExpr::operator/=</a></div><div class="ttdeci">LinearExpr &amp; operator/=(double rhs)</div></div>
<div class="ttc" id="namespaceoperations__research_html_ac4052f92af6a7fbb1d45e17befcb68e0"><div class="ttname"><a href="namespaceoperations__research.html#ac4052f92af6a7fbb1d45e17befcb68e0">operations_research::operator&gt;=</a></div><div class="ttdeci">LinearRange operator&gt;=(const LinearExpr &amp;lhs, const LinearExpr &amp;rhs)</div></div>
<div class="ttc" id="namespaceoperations__research_html_a515cdaf4f9c4000bb3482a0c450e23c3"><div class="ttname"><a href="namespaceoperations__research.html#a515cdaf4f9c4000bb3482a0c450e23c3">operations_research::operator-</a></div><div class="ttdeci">LinearExpr operator-(LinearExpr lhs, const LinearExpr &amp;rhs)</div></div>
2019-07-15 17:55:13 -07:00
<div class="ttc" id="namespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00080">linear_expr.h:80</a></div></div>
2019-07-16 10:13:02 -07:00
<div class="ttc" id="classoperations__research_1_1MPVariable_html"><div class="ttname"><a href="classoperations__research_1_1MPVariable.html">operations_research::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="linear__solver_8h_source.html#l00998">linear_solver.h:998</a></div></div>
2019-07-15 17:42:24 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a46b677de8b46c72ffdff9e16bc2e3745"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a46b677de8b46c72ffdff9e16bc2e3745">operations_research::LinearExpr::NotVar</a></div><div class="ttdeci">static LinearExpr NotVar(LinearExpr var)</div><div class="ttdoc">Returns 1-var.</div></div>
2019-07-16 10:13:02 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_aff2f953067d8d8854273fa973496466e"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#aff2f953067d8d8854273fa973496466e">operations_research::LinearExpr::offset</a></div><div class="ttdeci">double offset() const</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00138">linear_expr.h:138</a></div></div>
2019-07-15 17:42:24 -07:00
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a359bec8d7b3221d7549c98b0825970d4"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a359bec8d7b3221d7549c98b0825970d4">operations_research::LinearExpr::operator-=</a></div><div class="ttdeci">LinearExpr &amp; operator-=(const LinearExpr &amp;rhs)</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a3f94eb1c0b25852c0ff0910b83d363d9"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a3f94eb1c0b25852c0ff0910b83d363d9">operations_research::LinearExpr::operator-</a></div><div class="ttdeci">LinearExpr operator-() const</div></div>
<div class="ttc" id="namespaceoperations__research_html_abebdd7f40e90df8dc7d557b6e26da942"><div class="ttname"><a href="namespaceoperations__research.html#abebdd7f40e90df8dc7d557b6e26da942">operations_research::operator/</a></div><div class="ttdeci">LinearExpr operator/(LinearExpr lhs, double rhs)</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>