<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="l00079"></a><spanclass="lineno"> 79</span> <spanclass="preprocessor">#include <ostream></span></div><divclass="line"><aname="l00080"></a><spanclass="lineno"> 80</span> <spanclass="preprocessor">#include <string></span></div><divclass="line"><aname="l00081"></a><spanclass="lineno"> 81</span> </div><divclass="line"><aname="l00082"></a><spanclass="lineno"> 82</span> <spanclass="preprocessor">#include "absl/container/flat_hash_map.h"</span></div><divclass="line"><aname="l00083"></a><spanclass="lineno"> 83</span> </div><divclass="line"><aname="l00084"></a><spanclass="lineno"><aclass="line"href="namespaceoperations__research.html"> 84</a></span> <spanclass="keyword">namespace </span><aclass="code"href="namespaceoperations__research.html">operations_research</a> {</div><divclass="line"><aname="l00085"></a><spanclass="lineno"> 85</span> </div><divclass="line"><aname="l00086"></a><spanclass="lineno"> 86</span> <spanclass="comment">// NOTE(user): forward declaration is necessary due to cyclic dependencies,</span></div><divclass="line"><aname="l00087"></a><spanclass="lineno"> 87</span> <spanclass="comment">// MPVariable is defined in linear_solver.h, which depends on LinearExpr.</span></div><divclass="line"><aname="l00088"></a><spanclass="lineno"> 88</span> <spanclass="keyword">class </span><aclass="code"href="classoperations__research_1_1MPVariable.html">MPVariable</a>;</div><divc
<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#l00192">linear_expr.h:192</a></div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a19c380b03cea21d7ac7325136a131ff0"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a19c380b03cea21d7ac7325136a131ff0">operations_research::LinearExpr::ToString</a></div><divclass="ttdeci">std::string ToString() const</div><divclass="ttdoc">A human readable representation of this.</div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a9a0830f046ea8c3f3285db715561edb8"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a9a0830f046ea8c3f3285db715561edb8">operations_research::LinearExpr::operator *=</a></div><divclass="ttdeci">LinearExpr & operator *=(double rhs)</div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_af45a590e01bfd8bf93c5f41a296f7b9a"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#af45a590e01bfd8bf93c5f41a296f7b9a">operations_research::LinearExpr::operator+=</a></div><divclass="ttdeci">LinearExpr & operator+=(const LinearExpr &rhs)</div></div>
<divclass="ttc"id="classoperations__research_1_1LinearRange_html_ac94f6b1a6cc64b35da3b2a250e0c606d"><divclass="ttname"><ahref="classoperations__research_1_1LinearRange.html#ac94f6b1a6cc64b35da3b2a250e0c606d">operations_research::LinearRange::linear_expr</a></div><divclass="ttdeci">const LinearExpr & linear_expr() const</div><divclass="ttdef"><b>Definition:</b><ahref="linear__expr_8h_source.html#l00206">linear_expr.h:206</a></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#l00114">linear_expr.h:114</a></div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_a1953d5ae154875095008836cd15ab348"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#a1953d5ae154875095008836cd15ab348">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_ad5070ceea6bb6c91e5ead49dd67696e4"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#ad5070ceea6bb6c91e5ead49dd67696e4">operations_research::LinearExpr::operator-=</a></div><divclass="ttdeci">LinearExpr & operator-=(const LinearExpr &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#l01000">linear_solver.h:1000</a></div></div>
<divclass="ttc"id="classoperations__research_1_1LinearExpr_html_ad77266a8988cfa2f5dcb9d25276cd4dc"><divclass="ttname"><ahref="classoperations__research_1_1LinearExpr.html#ad77266a8988cfa2f5dcb9d25276cd4dc">operations_research::LinearExpr::operator/=</a></div><divclass="ttdeci">LinearExpr & operator/=(double rhs)</div></div>