85 lines
30 KiB
HTML
85 lines
30 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">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 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&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">
|
|
<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> <span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <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> <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> <span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <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> <span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <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> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <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> <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> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <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> <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> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#include "absl/container/flat_hash_map.h"</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html"> 80</a></span> <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> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <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> <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> <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> </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html"> 110</a></span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html#a3245b8350f417872f1f638ecd22a832f">LinearExpr</a>();</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html#a3245b8350f417872f1f638ecd22a832f">LinearExpr</a>(<span class="keywordtype">double</span> constant); <span class="comment">// NOLINT</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="comment">/***</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> * Possible implicit conversions are intentional.</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> *</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"> * Warning: var is not owned.</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> */</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html#a3245b8350f417872f1f638ecd22a832f">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="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <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#a46b677de8b46c72ffdff9e16bc2e3745">NotVar</a>(<a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> var);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& <a class="code" href="classoperations__research_1_1LinearExpr.html#a5f501758e469b8718b8410bb87100f51">operator+=</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& rhs);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& <a class="code" href="classoperations__research_1_1LinearExpr.html#a359bec8d7b3221d7549c98b0825970d4">operator-=</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& rhs);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& <a class="code" href="classoperations__research_1_1LinearExpr.html#a757085e5b10be1bde2ff049a3dbc51c7">operator*=</a>(<span class="keywordtype">double</span> rhs);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& <a class="code" href="classoperations__research_1_1LinearExpr.html#a14e5dbbcd5618dc42a8799181490742e">operator/=</a>(<span class="keywordtype">double</span> rhs);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> <a class="code" href="classoperations__research_1_1LinearExpr.html#a3f94eb1c0b25852c0ff0910b83d363d9">operator-</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html#aff2f953067d8d8854273fa973496466e"> 138</a></span>  <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearExpr.html#aff2f953067d8d8854273fa973496466e">offset</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> offset_; }</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearExpr.html#a37d87e22cd7125839fab636219336df8"> 139</a></span>  <span class="keyword">const</span> absl::flat_hash_map<const MPVariable*, double>& <a class="code" href="classoperations__research_1_1LinearExpr.html#a37d87e22cd7125839fab636219336df8">terms</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">return</span> terms_;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  }</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearExpr.html#a07afbba5788651a38be83e959bbbc92c">SolutionValue</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordtype">double</span> offset_;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  absl::flat_hash_map<const MPVariable*, double> terms_;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> };</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">// NOTE(user): in the ops below, the non-"const LinearExpr&" are intentional.</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <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="l00157"></a><span class="lineno"> 157</span> <span class="comment">// passing one argument by value, mutating it, and then returning it. In</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// particular, this allows (with move semantics and RVO) an optimized</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">// evaluation of expressions such as</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment">// a + b + c + d</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">// (see http://en.cppreference.com/w/cpp/language/operators).</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> LinearExpr <a class="code" href="namespaceoperations__research.html#a97f9b83239285f5fdfcac1b8e8b4f162">operator+</a>(LinearExpr lhs, <span class="keyword">const</span> LinearExpr& rhs);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> LinearExpr <a class="code" href="namespaceoperations__research.html#a515cdaf4f9c4000bb3482a0c450e23c3">operator-</a>(LinearExpr lhs, <span class="keyword">const</span> LinearExpr& rhs);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> 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="l00165"></a><span class="lineno"> 165</span> 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="l00166"></a><span class="lineno"> 166</span> 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="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html"> 180</a></span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1LinearRange.html">LinearRange</a> {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#a9ce7b1b40dc5135ed9ca27cfedeca64e"> 182</a></span>  <a class="code" href="classoperations__research_1_1LinearRange.html#a9ce7b1b40dc5135ed9ca27cfedeca64e">LinearRange</a>() : lower_bound_(0), upper_bound_(0) {}</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="classoperations__research_1_1LinearRange.html#a9ce7b1b40dc5135ed9ca27cfedeca64e">LinearRange</a>(<span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d">lower_bound</a>, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& <a class="code" href="classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690">linear_expr</a>,</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041">upper_bound</a>);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d"> 193</a></span>  <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d">lower_bound</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lower_bound_; }</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690"> 194</a></span>  <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a>& <a class="code" href="classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690">linear_expr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> linear_expr_; }</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041"> 195</a></span>  <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041">upper_bound</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> upper_bound_; }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">double</span> lower_bound_;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="comment">// invariant: linear_expr_.offset() == 0.</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> linear_expr_;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">double</span> upper_bound_;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> };</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> LinearRange <a class="code" href="namespaceoperations__research.html#a6d1fa20f9c9faf7027c0b16f97139e80">operator<=</a>(<span class="keyword">const</span> LinearExpr& lhs, <span class="keyword">const</span> LinearExpr& rhs);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> LinearRange <a class="code" href="namespaceoperations__research.html#a08146f196bd9c3f492ee108732449ced">operator==</a>(<span class="keyword">const</span> LinearExpr& lhs, <span class="keyword">const</span> LinearExpr& rhs);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> LinearRange <a class="code" href="namespaceoperations__research.html#ac4052f92af6a7fbb1d45e17befcb68e0">operator>=</a>(<span class="keyword">const</span> LinearExpr& lhs, <span class="keyword">const</span> LinearExpr& rhs);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment">// TODO(user,user): explore defining more overloads to support:</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">// solver.AddRowConstraint(0.0 <= x + y + z <= 1.0);</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> } <span class="comment">// namespace operations_research</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor">#endif // OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_</span></div><div class="ttc" id="classoperations__research_1_1LinearRange_html_aa75204d544c4e4fc91c3ee8a091dd690"><div class="ttname"><a href="classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690">operations_research::LinearRange::linear_expr</a></div><div class="ttdeci">const LinearExpr & linear_expr() const</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_a97f9b83239285f5fdfcac1b8e8b4f162"><div class="ttname"><a href="namespaceoperations__research.html#a97f9b83239285f5fdfcac1b8e8b4f162">operations_research::operator+</a></div><div class="ttdeci">LinearExpr operator+(LinearExpr lhs, const LinearExpr &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<=</a></div><div class="ttdeci">LinearRange operator<=(const LinearExpr &lhs, const LinearExpr &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#l00180">linear_expr.h:180</a></div></div>
|
|
<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 &lhs, const LinearExpr &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 & 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>
|
|
<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>
|
|
<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>
|
|
<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< const MPVariable *, double > & terms() const</div><div class="ttdef"><b>Definition:</b> <a href="linear__expr_8h_source.html#l00139">linear_expr.h:139</a></div></div>
|
|
<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 & operator+=(const LinearExpr &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 & 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>=</a></div><div class="ttdeci">LinearRange operator>=(const LinearExpr &lhs, const LinearExpr &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 &rhs)</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#l00080">linear_expr.h:80</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#l00998">linear_solver.h:998</a></div></div>
|
|
<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>
|
|
<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>
|
|
<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 & operator-=(const LinearExpr &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>
|