<ahref="linear__expr_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2010-2018 Google LLC</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">// you may not use this file except in compliance with the License.</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">// You may obtain a copy of the License at</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment">// Unless required by applicable law or agreed to in writing, software</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment">// See the License for the specific language governing permissions and</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment">// limitations under the License.</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> </div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="preprocessor">#ifndef OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="preprocessor">#define OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> </div><divclass="line"><aname="l00078"></a><spanclass="lineno"> 78</span> <spanclass="preprocessor">#include "absl/container/flat_hash_map.h"</span></div><divclass="line"><aname="l00079"></a><spanclass="lineno"> 79</span> </div><divclass="line"><aname="l00080"></a><spanclass="lineno"><aclass="line"href="namespaceoperations__research.html"> 80</a></span> <spanclass="keyword">namespace </span><aclass="code"href="namespaceoperations__research.html">operations_research</a> {</div><divclass="line"><aname="l00081"></a><spanclass="lineno"> 81</span> </div><divclass="line"><aname="l00082"></a><spanclass="lineno"> 82</span> <spanclass="comment">// NOTE(user): forward declaration is necessary due to cyclic dependencies,</span></div><divclass="line"><aname="l00083"></a><spanclass="lineno"> 83</span> <spanclass="comment">// MPVariable is defined in linear_solver.h, which depends on LinearExpr.</span></div><divclass="line"><aname="l00084"></a><spanclass="lineno"> 84</span> <spanclass="keyword">class </span><aclass="code"href="classoperations__research_1_1MPVariable.html">MPVariable</a>;</div><divclass="line"><aname="l00085"></a><spanclass="lineno"> 85</span> </div><divclass="line"><aname="l00110"></a><spanclass="lineno"><aclass="line"href="classoperations__research_1_1LinearExpr.html"> 110</a></span> <spanclass="keyword">class </span><aclass="code"href="classoperations__research_1_1LinearExpr.html">LinearExpr</a> {</div><divclass="li
<divclass="ttc"id="classoperations__research_1_1LinearRange_html"><divclass="ttname"><ahref="classoperations__research_1_1LinearRange.html">operations_research::LinearRange</a></div><divclass="ttdoc">An expression of the form:</div><divclass="ttdef"><b>Definition:</b><ahref="linear__expr_8h_source.html#l00180">linear_expr.h:180</a></div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a07afbba5788651a38be83e959bbbc92c"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a07afbba5788651a38be83e959bbbc92c">operations_research::LinearExpr::SolutionValue</a></div><divclass="ttdeci">double SolutionValue() const</div><divclass="ttdoc">Evaluates the value of this expression at the solution found.</div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html">operations_research::LinearExpr</a></div><divclass="ttdoc">LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization...</div><divclass="ttdef"><b>Definition:</b><ahref="linear__expr_8h_source.html#l00110">linear_expr.h:110</a></div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a5f501758e469b8718b8410bb87100f51"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a5f501758e469b8718b8410bb87100f51">operations_research::LinearExpr::operator+=</a></div><divclass="ttdeci">LinearExpr & operator+=(const LinearExpr &rhs)</div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a14e5dbbcd5618dc42a8799181490742e"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a14e5dbbcd5618dc42a8799181490742e">operations_research::LinearExpr::operator/=</a></div><divclass="ttdeci">LinearExpr & operator/=(double rhs)</div></div>
<divclass="ttc"id="classoperations__research_1_1MPVariable_html"><divclass="ttname"><ahref="classoperations__research_1_1MPVariable.html">operations_research::MPVariable</a></div><divclass="ttdoc">The class for variables of a Mathematical Programming (MP) model.</div><divclass="ttdef"><b>Definition:</b><ahref="linear__solver_8h_source.html#l00998">linear_solver.h:998</a></div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a359bec8d7b3221d7549c98b0825970d4"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a359bec8d7b3221d7549c98b0825970d4">operations_research::LinearExpr::operator-=</a></div><divclass="ttdeci">LinearExpr & operator-=(const LinearExpr &rhs)</div></div>