Files
ortools-clone/docs/cpp_linear/linear__expr_8h_source.html
Laurent Perron f36ea62bbc new doc
2019-08-12 23:15:11 -07:00

87 lines
32 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"/>-->
<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">Google OR-Tools 7.3</span>
</div>
</div>
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
<h2>C++ Reference</h2>
<ul>
<li><a href="../cpp_algorithms/annotated.html">Algorithms</a></li>
<li><a href="../cpp_sat/annotated.html">CP-SAT</a></li>
<li><a href="../cpp_graph/annotated.html">Graph</a></li>
<li><a href="../cpp_routing/annotated.html">Routing</a></li>
<li><a href="../cpp_linear/annotated.html">Linear solver</a></li>
</ul>
</div>
<div id="content">
<div align="center">
<h1 style="color: #145A32;">C++ Reference: Linear solver</h1>
</div>
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<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="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> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">linear_expr.h</div> </div>
</div><!--header-->
<div class="contents">
<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="l00079"></a><span class="lineno"> 79</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></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="preprocessor">#include &quot;absl/container/flat_hash_map.h&quot;</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html"> 84</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="comment">// NOTE(user): forward declaration is necessary due to cyclic dependencies,</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="comment">// MPVariable is defined in linear_solver.h, which depends on LinearExpr.</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1MPVariable.html">MPVariable</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html"> 114</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> {</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html#a708e7b52aae1fa3c440ef7ced3f06cd9">LinearExpr</a>();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html#a708e7b52aae1fa3c440ef7ced3f06cd9">LinearExpr</a>(<span class="keywordtype">double</span> constant); <span class="comment">// NOLINT</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="comment">/***</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment"> * Possible implicit conversions are intentional.</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> * Warning: var is not owned.</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html#a708e7b52aae1fa3c440ef7ced3f06cd9">LinearExpr</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1MPVariable.html">MPVariable</a>* var); <span class="comment">// NOLINT</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">static</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> <a class="code" href="classoperations__research_1_1LinearExpr.html#a11dac3cad352ecca7e70e1c82b93a419">NotVar</a>(<a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> var);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; <a class="code" href="classoperations__research_1_1LinearExpr.html#af45a590e01bfd8bf93c5f41a296f7b9a">operator+=</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; rhs);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; <a class="code" href="classoperations__research_1_1LinearExpr.html#ad5070ceea6bb6c91e5ead49dd67696e4">operator-=</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; rhs);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; <a class="code" href="classoperations__research_1_1LinearExpr.html#a9a0830f046ea8c3f3285db715561edb8">operator*=</a>(<span class="keywordtype">double</span> rhs);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; <a class="code" href="classoperations__research_1_1LinearExpr.html#ad77266a8988cfa2f5dcb9d25276cd4dc">operator/=</a>(<span class="keywordtype">double</span> rhs);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> <a class="code" href="classoperations__research_1_1LinearExpr.html#a32985ab0882c48b374e1d26e0fdf9ce6">operator-</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html#a96ffc785b7b2135c7980c985883ffdd3"> 142</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearExpr.html#a96ffc785b7b2135c7980c985883ffdd3">offset</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> offset_; }</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html#a665001590f89bb9446d0030e2ef8047b"> 143</a></span>&#160; <span class="keyword">const</span> absl::flat_hash_map&lt;const MPVariable*, double&gt;&amp; <a class="code" href="classoperations__research_1_1LinearExpr.html#a665001590f89bb9446d0030e2ef8047b">terms</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordflow">return</span> terms_;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; }</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearExpr.html#a1953d5ae154875095008836cd15ab348">SolutionValue</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; std::string <a class="code" href="classoperations__research_1_1LinearExpr.html#a19c380b03cea21d7ac7325136a131ff0">ToString</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordtype">double</span> offset_;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; absl::flat_hash_map&lt;const MPVariable*, double&gt; terms_;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;};</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;std::ostream&amp; <a class="code" href="namespaceoperations__research.html#ad3390eca60a1042a3d81452cea3863aa">operator&lt;&lt;</a>(std::ostream&amp; stream, <span class="keyword">const</span> LinearExpr&amp; linear_expr);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="comment">// NOTE(user): in the ops below, the non-&quot;const LinearExpr&amp;&quot; are intentional.</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="comment">// We need to create a new LinearExpr for the result, so we lose nothing by</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="comment">// passing one argument by value, mutating it, and then returning it. In</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="comment">// particular, this allows (with move semantics and RVO) an optimized</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;<span class="comment">// evaluation of expressions such as</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="comment">// a + b + c + d</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;<span class="comment">// (see http://en.cppreference.com/w/cpp/language/operators).</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;LinearExpr <a class="code" href="namespaceoperations__research.html#a97f9b83239285f5fdfcac1b8e8b4f162">operator+</a>(LinearExpr lhs, <span class="keyword">const</span> LinearExpr&amp; rhs);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;LinearExpr <a class="code" href="namespaceoperations__research.html#a515cdaf4f9c4000bb3482a0c450e23c3">operator-</a>(LinearExpr lhs, <span class="keyword">const</span> LinearExpr&amp; rhs);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;LinearExpr <a class="code" href="namespaceoperations__research.html#a741104fe08089fe3520676487f7a685d">operator*</a>(LinearExpr lhs, <span class="keywordtype">double</span> rhs);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;LinearExpr <a class="code" href="namespaceoperations__research.html#abebdd7f40e90df8dc7d557b6e26da942">operator/</a>(LinearExpr lhs, <span class="keywordtype">double</span> rhs);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;LinearExpr <a class="code" href="namespaceoperations__research.html#a741104fe08089fe3520676487f7a685d">operator*</a>(<span class="keywordtype">double</span> lhs, LinearExpr rhs);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html"> 192</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1LinearRange.html">LinearRange</a> {</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#a32ea297f2577df1857c480c965f0b6b7"> 194</a></span>&#160; <a class="code" href="classoperations__research_1_1LinearRange.html#a32ea297f2577df1857c480c965f0b6b7">LinearRange</a>() : lower_bound_(0), upper_bound_(0) {}</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <a class="code" href="classoperations__research_1_1LinearRange.html#a32ea297f2577df1857c480c965f0b6b7">LinearRange</a>(<span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#a9748ce3280b2d4c16a2cd38a480b9c7c">lower_bound</a>, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; <a class="code" href="classoperations__research_1_1LinearRange.html#ac94f6b1a6cc64b35da3b2a250e0c606d">linear_expr</a>,</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#a5158072d27a176fc38524893183d6527">upper_bound</a>);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#a9748ce3280b2d4c16a2cd38a480b9c7c"> 205</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#a9748ce3280b2d4c16a2cd38a480b9c7c">lower_bound</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lower_bound_; }</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#ac94f6b1a6cc64b35da3b2a250e0c606d"> 206</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>&amp; <a class="code" href="classoperations__research_1_1LinearRange.html#ac94f6b1a6cc64b35da3b2a250e0c606d">linear_expr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> linear_expr_; }</div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#a5158072d27a176fc38524893183d6527"> 207</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#a5158072d27a176fc38524893183d6527">upper_bound</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> upper_bound_; }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keywordtype">double</span> lower_bound_;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="comment">// invariant: linear_expr_.offset() == 0.</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> linear_expr_;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keywordtype">double</span> upper_bound_;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;};</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;LinearRange <a class="code" href="namespaceoperations__research.html#a6d1fa20f9c9faf7027c0b16f97139e80">operator&lt;=</a>(<span class="keyword">const</span> LinearExpr&amp; lhs, <span class="keyword">const</span> LinearExpr&amp; rhs);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;LinearRange <a class="code" href="namespaceoperations__research.html#a08146f196bd9c3f492ee108732449ced">operator==</a>(<span class="keyword">const</span> LinearExpr&amp; lhs, <span class="keyword">const</span> LinearExpr&amp; rhs);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;LinearRange <a class="code" href="namespaceoperations__research.html#ac4052f92af6a7fbb1d45e17befcb68e0">operator&gt;=</a>(<span class="keyword">const</span> LinearExpr&amp; lhs, <span class="keyword">const</span> LinearExpr&amp; rhs);</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;<span class="comment">// TODO(user,user): explore defining more overloads to support:</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;<span class="comment">// solver.AddRowConstraint(0.0 &lt;= x + y + z &lt;= 1.0);</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;} <span class="comment">// namespace operations_research</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;<span class="preprocessor">#endif // OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_</span></div><div class="ttc" id="classoperations__research_1_1LinearRange_html_a9748ce3280b2d4c16a2cd38a480b9c7c"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#a9748ce3280b2d4c16a2cd38a480b9c7c">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#l00205">linear_expr.h:205</a></div></div>
<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>
<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#l00192">linear_expr.h:192</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a19c380b03cea21d7ac7325136a131ff0"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a19c380b03cea21d7ac7325136a131ff0">operations_research::LinearExpr::ToString</a></div><div class="ttdeci">std::string ToString() const</div><div class="ttdoc">A human readable representation of this.</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a9a0830f046ea8c3f3285db715561edb8"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a9a0830f046ea8c3f3285db715561edb8">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_af45a590e01bfd8bf93c5f41a296f7b9a"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#af45a590e01bfd8bf93c5f41a296f7b9a">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_1LinearRange_html_ac94f6b1a6cc64b35da3b2a250e0c606d"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#ac94f6b1a6cc64b35da3b2a250e0c606d">operations_research::LinearRange::linear_expr</a></div><div class="ttdeci">const LinearExpr &amp; linear_expr() const</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00206">linear_expr.h:206</a></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_a96ffc785b7b2135c7980c985883ffdd3"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a96ffc785b7b2135c7980c985883ffdd3">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#l00142">linear_expr.h:142</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearRange_html_a5158072d27a176fc38524893183d6527"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#a5158072d27a176fc38524893183d6527">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#l00207">linear_expr.h:207</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearRange_html_a32ea297f2577df1857c480c965f0b6b7"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#a32ea297f2577df1857c480c965f0b6b7">operations_research::LinearRange::LinearRange</a></div><div class="ttdeci">LinearRange()</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00194">linear_expr.h:194</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ad3390eca60a1042a3d81452cea3863aa"><div class="ttname"><a href="namespaceoperations__research.html#ad3390eca60a1042a3d81452cea3863aa">operations_research::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;stream, const LinearExpr &amp;linear_expr)</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a665001590f89bb9446d0030e2ef8047b"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a665001590f89bb9446d0030e2ef8047b">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#l00143">linear_expr.h:143</a></div></div>
<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#l00114">linear_expr.h:114</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a1953d5ae154875095008836cd15ab348"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a1953d5ae154875095008836cd15ab348">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="classoperations__research_1_1LinearExpr_html_a708e7b52aae1fa3c440ef7ced3f06cd9"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a708e7b52aae1fa3c440ef7ced3f06cd9">operations_research::LinearExpr::LinearExpr</a></div><div class="ttdeci">LinearExpr()</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="classoperations__research_1_1LinearExpr_html_ad5070ceea6bb6c91e5ead49dd67696e4"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#ad5070ceea6bb6c91e5ead49dd67696e4">operations_research::LinearExpr::operator-=</a></div><div class="ttdeci">LinearExpr &amp; operator-=(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>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a11dac3cad352ecca7e70e1c82b93a419"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a11dac3cad352ecca7e70e1c82b93a419">operations_research::LinearExpr::NotVar</a></div><div class="ttdeci">static LinearExpr NotVar(LinearExpr var)</div><div class="ttdoc">Returns 1-var.</div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_a32985ab0882c48b374e1d26e0fdf9ce6"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#a32985ab0882c48b374e1d26e0fdf9ce6">operations_research::LinearExpr::operator-</a></div><div class="ttdeci">LinearExpr operator-() const</div></div>
<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#l00084">linear_expr.h:84</a></div></div>
<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#l01000">linear_solver.h:1000</a></div></div>
<div class="ttc" id="classoperations__research_1_1LinearExpr_html_ad77266a8988cfa2f5dcb9d25276cd4dc"><div class="ttname"><a href="classoperations__research_1_1LinearExpr.html#ad77266a8988cfa2f5dcb9d25276cd4dc">operations_research::LinearExpr::operator/=</a></div><div class="ttdeci">LinearExpr &amp; operator/=(double rhs)</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>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>