<ahref="cp__model_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="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="l00266"></a><spanclass="lineno"> 266</span> <spanclass="keywordtype">void</span><aclass="code"href="classoperations__research_1_1sat_1_1LinearExpr.html#ab00374af3fbd853d2d5f04a5ca608ec2">AddTerm</a>(<aclass="code"href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> var, int64 coeff);</div>
<divclass="line"><aname="l00282"></a><spanclass="lineno"> 282</span> <spanclass="keyword">static</span><aclass="code"href="classoperations__research_1_1sat_1_1LinearExpr.html">LinearExpr</a><aclass="code"href="classoperations__research_1_1sat_1_1LinearExpr.html#a4575c5afc539cb5f35bf5fe753158569">Term</a>(<aclass="code"href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> var, int64 coefficient);</div>
<divclass="line"><aname="l00515"></a><spanclass="lineno"> 515</span> <spanclass="keywordtype">void</span><aclass="code"href="classoperations__research_1_1sat_1_1ReservoirConstraint.html#adbf37b87cdabfe283381f9d42f7e80fb">AddEvent</a>(<aclass="code"href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> time, int64 demand);</div>
<divclass="line"><aname="l00528"></a><spanclass="lineno"> 528</span> <aclass="code"href="classoperations__research_1_1sat_1_1ReservoirConstraint.html">ReservoirConstraint</a>(<aclass="code"href="classoperations__research_1_1sat_1_1ConstraintProto.html">ConstraintProto</a>* proto, <aclass="code"href="classoperations__research_1_1sat_1_1CpModelBuilder.html">CpModelBuilder</a>* builder);</div>
<divclass="line"><aname="l00581"></a><spanclass="lineno"> 581</span> <aclass="code"href="classoperations__research_1_1sat_1_1CumulativeConstraint.html">CumulativeConstraint</a>(<aclass="code"href="classoperations__research_1_1sat_1_1ConstraintProto.html">ConstraintProto</a>* proto, <aclass="code"href="classoperations__research_1_1sat_1_1CpModelBuilder.html">CpModelBuilder</a>* builder);</div>
<divclass="line"><aname="l00627"></a><spanclass="lineno"><aclass="line"href="classoperations__research_1_1sat_1_1CpModelBuilder.html#a9c73529fc4e296344e3a8abcf6043ac0"> 627</a></span> <aclass="code"href="classoperations__research_1_1sat_1_1Constraint.html">Constraint</a><aclass="code"href="classoperations__research_1_1sat_1_1CpModelBuilder.html#a9c73529fc4e296344e3a8abcf6043ac0">AddImplication</a>(<aclass="code"href="classoperations__research_1_1sat_1_1BoolVar.html">BoolVar</a> a, <aclass="code"href="classoperations__research_1_1sat_1_1BoolVar.html">BoolVar</a> b) {</div>
<divclass="line"><aname="l00854"></a><spanclass="lineno"> 854</span> <spanclass="keywordtype">void</span><aclass="code"href="classoperations__research_1_1sat_1_1CpModelBuilder.html#ac1fcee16c92c43742bc7b0d3b78c7c28">AddHint</a>(<aclass="code"href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> var, int64 value);</div>
<divclass="line"><aname="l00867"></a><spanclass="lineno"> 867</span> <spanclass="comment">// Fills the 'expr_proto' with the linear expression represented by 'expr'.</span></div>
<divclass="line"><aname="l00871"></a><spanclass="lineno"> 871</span> <spanclass="comment">// Returns a (cached) integer variable index with a constant value.</span></div>
<divclass="line"><aname="l00874"></a><spanclass="lineno"> 874</span> <spanclass="comment">// Returns a valid integer index from a BoolVar index.</span></div>
<divclass="line"><aname="l00875"></a><spanclass="lineno"> 875</span> <spanclass="comment">// If the input index is a positive, it returns this index.</span></div>
<divclass="line"><aname="l00876"></a><spanclass="lineno"> 876</span> <spanclass="comment">// If the input index is negative, it creates a cached IntVar equal to</span></div>
<divclass="line"><aname="l00877"></a><spanclass="lineno"> 877</span> <spanclass="comment">// 1 - BoolVar(PositiveRef(index)), and returns the index of this new</span></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_ae7be47301fa8fdc0f4944877cd2fe7ba"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#ae7be47301fa8fdc0f4944877cd2fe7ba">operations_research::sat::BoolVar::Proto</a></div><divclass="ttdeci">const IntegerVariableProto & Proto() const</div><divclass="ttdoc">Returns the underlying protobuf object (useful for testing).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00093">cp_model.h:93</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a79da7cf24c71242159d1e57cb3680530"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a79da7cf24c71242159d1e57cb3680530">operations_research::sat::IntVar::operator!=</a></div><divclass="ttdeci">bool operator!=(const IntVar &other) const</div><divclass="ttdoc">Difference test with anpther IntVar.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00168">cp_model.h:168</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a191cd9b1ba3e3c01a558a1f6c02a4429"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a191cd9b1ba3e3c01a558a1f6c02a4429">operations_research::sat::IntVar::Name</a></div><divclass="ttdeci">const std::string & Name() const</div><divclass="ttdoc">Returns the name of the variable (or the empty string if not set).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00156">cp_model.h:156</a></div></div>
<divclass="ttc"id="anamespaceoperations__research_1_1sat_html_afa415e372a9d64eede869ed98666c29c"><divclass="ttname"><ahref="namespaceoperations__research_1_1sat.html#afa415e372a9d64eede869ed98666c29c">operations_research::sat::SolutionBooleanValue</a></div><divclass="ttdeci">bool SolutionBooleanValue(const CpSolverResponse &r, BoolVar x)</div><divclass="ttdoc">Evaluates the value of a Boolean literal in a solver response.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_aa67c05613e104e47d09fcafa7fe4bcfa"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#aa67c05613e104e47d09fcafa7fe4bcfa">operations_research::sat::CpModelBuilder::AddLessOrEqual</a></div><divclass="ttdeci">Constraint AddLessOrEqual(const LinearExpr &left, const LinearExpr &right)</div><divclass="ttdoc">Adds left <= right.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1Constraint_html_ab24547e367af774c764d4fbf76a23223"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1Constraint.html#ab24547e367af774c764d4fbf76a23223">operations_research::sat::Constraint::MutableProto</a></div><divclass="ttdeci">ConstraintProto * MutableProto() const</div><divclass="ttdoc">Returns the mutable underlying protobuf object (useful for model edition).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00430">cp_model.h:430</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_a5faa887b5cfc205902474ccd69223870"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#a5faa887b5cfc205902474ccd69223870">operations_research::sat::BoolVar::WithName</a></div><divclass="ttdeci">BoolVar WithName(const std::string &name)</div><divclass="ttdoc">Sets the name of the variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a79061f94ca7a97d0616f8b270358c771"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a79061f94ca7a97d0616f8b270358c771">operations_research::sat::IntVar::SolutionIntegerMax</a></div><divclass="ttdeci">friend int64 SolutionIntegerMax(const CpSolverResponse &r, IntVar x)</div><divclass="ttdoc">Returns the max of an integer variable in a solution.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CumulativeConstraint_html_a93d6b777e333ebf211de4c96208dfe8d"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CumulativeConstraint.html#a93d6b777e333ebf211de4c96208dfe8d">operations_research::sat::CumulativeConstraint::AddDemand</a></div><divclass="ttdeci">void AddDemand(IntervalVar interval, IntVar demand)</div><divclass="ttdoc">Adds a pair (interval, demand) to the constraint.</div></div>
<divclass="ttc"id="anamespaceoperations__research_1_1sat_html_a9c0ae0d048a431656985fc79428bbe67"><divclass="ttname"><ahref="namespaceoperations__research_1_1sat.html#a9c0ae0d048a431656985fc79428bbe67">operations_research::sat::operator<<</a></div><divclass="ttdeci">std::ostream & operator<<(std::ostream &os, const BoolVar &var)</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a580af67c82c83176a2938fb24b3b0c98"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a580af67c82c83176a2938fb24b3b0c98">operations_research::sat::CpModelBuilder::NewBoolVar</a></div><divclass="ttdeci">BoolVar NewBoolVar()</div><divclass="ttdoc">Creates a Boolean variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a02b89136ac6040e03a762f9588bbb38f"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a02b89136ac6040e03a762f9588bbb38f">operations_research::sat::IntVar::MutableProto</a></div><divclass="ttdeci">IntegerVariableProto * MutableProto() const</div><divclass="ttdoc">Returns the mutable underlying protobuf object (useful for model edition).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00181">cp_model.h:181</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a7cb0963c126cc771ab69529f40826812"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a7cb0963c126cc771ab69529f40826812">operations_research::sat::IntervalVar::operator!=</a></div><divclass="ttdeci">bool operator!=(const IntervalVar &other) const</div><divclass="ttdoc">Difference test with another interval variable.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00353">cp_model.h:353</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_a16e8537a019c3aa686e290a82d68356e"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#a16e8537a019c3aa686e290a82d68356e">operations_research::sat::LinearExpr::ScalProd</a></div><divclass="ttdeci">static LinearExpr ScalProd(absl::Span< const IntVar > vars, absl::Span< const int64 > coeffs)</div><divclass="ttdoc">Constructs the scalar product of variables and coefficients.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a3e3b31a2b9e3c9799b0d4de7cce25157"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a3e3b31a2b9e3c9799b0d4de7cce25157">operations_research::sat::IntervalVar::PresenceBoolVar</a></div><divclass="ttdeci">BoolVar PresenceBoolVar() const</div><divclass="ttdoc">Returns a BoolVar indicating the presence of this interval.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1NoOverlap2DConstraint_html_ac9f005471a4a54c288d4dc259d25fbc3"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1NoOverlap2DConstraint.html#ac9f005471a4a54c288d4dc259d25fbc3">operations_research::sat::NoOverlap2DConstraint::AddRectangle</a></div><divclass="ttdeci">void AddRectangle(IntervalVar x_coordinate, IntervalVar y_coordinate)</div><divclass="ttdoc">Adds a rectangle (parallel to the axis) to the constraint.</div></div>
<divclass="ttc"id="anamespaceoperations__research_1_1sat_html_a5e3de118c1f8dd5a7ec21704e05684b9"><divclass="ttname"><ahref="namespaceoperations__research_1_1sat.html#a5e3de118c1f8dd5a7ec21704e05684b9">operations_research::sat::Not</a></div><divclass="ttdeci">BoolVar Not(BoolVar x)</div><divclass="ttdoc">A convenient wrapper so we can write Not(x) instead of x.Not() which is sometimes clearer.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_ad73e372cd9d1def69624f85777393123"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#ad73e372cd9d1def69624f85777393123">operations_research::sat::IntervalVar::operator<<</a></div><divclass="ttdeci">friend std::ostream & operator<<(std::ostream &os, const IntervalVar &var)</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a75c76026eaca8ea83038fb6dfc9e734e"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a75c76026eaca8ea83038fb6dfc9e734e">operations_research::sat::CpModelBuilder::AddCircuitConstraint</a></div><divclass="ttdeci">CircuitConstraint AddCircuitConstraint()</div><divclass="ttdoc">Adds a circuit constraint.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_a191cd9b1ba3e3c01a558a1f6c02a4429"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#a191cd9b1ba3e3c01a558a1f6c02a4429">operations_research::sat::BoolVar::Name</a></div><divclass="ttdeci">const std::string & Name() const</div><divclass="ttdoc">Returns the name of the variable.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00074">cp_model.h:74</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1ReservoirConstraint_html_adbf37b87cdabfe283381f9d42f7e80fb"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1ReservoirConstraint.html#adbf37b87cdabfe283381f9d42f7e80fb">operations_research::sat::ReservoirConstraint::AddEvent</a></div><divclass="ttdeci">void AddEvent(IntVar time, int64 demand)</div><divclass="ttdoc">Adds a mandatory event.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1Constraint_html_a0ef1ea52810f5cb078f58799520b833c"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1Constraint.html#a0ef1ea52810f5cb078f58799520b833c">operations_research::sat::Constraint::OnlyEnforceIf</a></div><divclass="ttdeci">Constraint OnlyEnforceIf(absl::Span< const BoolVar > literals)</div><divclass="ttdoc">The constraint will be enforced iff all literals listed here are true.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1Constraint_html_a808ccd064e687092f93e0d6671536e21"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1Constraint.html#a808ccd064e687092f93e0d6671536e21">operations_research::sat::Constraint::Proto</a></div><divclass="ttdeci">const ConstraintProto & Proto() const</div><divclass="ttdoc">Returns the underlying protobuf object (useful for testing).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00427">cp_model.h:427</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_ab6091344cb80f81a2b80c4cad2233457"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#ab6091344cb80f81a2b80c4cad2233457">operations_research::sat::CpModelBuilder::AddGreaterOrEqual</a></div><divclass="ttdeci">Constraint AddGreaterOrEqual(const LinearExpr &left, const LinearExpr &right)</div><divclass="ttdoc">Adds left >= right.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a93e3463c812581d990d7c4524cc8c4c7"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a93e3463c812581d990d7c4524cc8c4c7">operations_research::sat::CpModelBuilder::AddBoolXor</a></div><divclass="ttdeci">Constraint AddBoolXor(absl::Span< const BoolVar > literals)</div><divclass="ttdoc">Adds the constraint that a odd number of literal is true.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a9fb68d41ffab385f703f7944ba2e5211"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a9fb68d41ffab385f703f7944ba2e5211">operations_research::sat::CpModelBuilder::AddBoolAnd</a></div><divclass="ttdeci">Constraint AddBoolAnd(absl::Span< const BoolVar > literals)</div><divclass="ttdoc">Adds the constraint that all literals must be true.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a64bd6fadf44a9840c837cc701b2b9043"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a64bd6fadf44a9840c837cc701b2b9043">operations_research::sat::IntVar::SolutionIntegerValue</a></div><divclass="ttdeci">friend int64 SolutionIntegerValue(const CpSolverResponse &r, const LinearExpr &expr)</div><divclass="ttdoc">Evaluates the value of an linear expression in a solver response.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_a31c7f110218898a51c24fbd17b42f621"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#a31c7f110218898a51c24fbd17b42f621">operations_research::sat::LinearExpr::AddConstant</a></div><divclass="ttdeci">LinearExpr & AddConstant(int64 value)</div><divclass="ttdoc">Adds a constant value to the linear expression.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1ReservoirConstraint_html_af1151b0627920bc9eddd2b532dd274b2"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1ReservoirConstraint.html#af1151b0627920bc9eddd2b532dd274b2">operations_research::sat::ReservoirConstraint::AddOptionalEvent</a></div><divclass="ttdeci">void AddOptionalEvent(IntVar time, int64 demand, BoolVar is_active)</div><divclass="ttdoc">Adds a optional event.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_acca41811e8aaab0112b987749c0ecb93"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#acca41811e8aaab0112b987749c0ecb93">operations_research::sat::BoolVar::index</a></div><divclass="ttdeci">int index() const</div><divclass="ttdoc">Returns the index of the variable in the model.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00108">cp_model.h:108</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a4927017e2b77774933a43bfc83b6ab39"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a4927017e2b77774933a43bfc83b6ab39">operations_research::sat::IntVar::AddConstant</a></div><divclass="ttdeci">LinearExpr AddConstant(int64 value) const</div><divclass="ttdoc">Adds a constant value to an integer variable and returns a linear expression.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_ad93e8152b59e0db58d7e5ba4a525dd81"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#ad93e8152b59e0db58d7e5ba4a525dd81">operations_research::sat::LinearExpr::coefficients</a></div><divclass="ttdeci">const std::vector< int64 >& coefficients() const</div><divclass="ttdoc">Returns the vector of coefficients.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00288">cp_model.h:288</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1Domain_html"><divclass="ttname"><ahref="classoperations__research_1_1Domain.html">operations_research::Domain</a></div><divclass="ttdoc">We call domain any subset of Int64 = [kint64min, kint64max].</div><divclass="ttdef"><b>Definition:</b><ahref="sorted__interval__list_8h_source.html#l00080">sorted_interval_list.h:80</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_aa96427ca5156644ef61e4ffec3ea4083"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#aa96427ca5156644ef61e4ffec3ea4083">operations_research::sat::LinearExpr::variables</a></div><divclass="ttdeci">const std::vector< IntVar >& variables() const</div><divclass="ttdoc">Returns the vector of variables.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00285">cp_model.h:285</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_a4575c5afc539cb5f35bf5fe753158569"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#a4575c5afc539cb5f35bf5fe753158569">operations_research::sat::LinearExpr::Term</a></div><divclass="ttdeci">static LinearExpr Term(IntVar var, int64 coefficient)</div><divclass="ttdoc">Construncts var * coefficient.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a9c73529fc4e296344e3a8abcf6043ac0"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a9c73529fc4e296344e3a8abcf6043ac0">operations_research::sat::CpModelBuilder::AddImplication</a></div><divclass="ttdeci">Constraint AddImplication(BoolVar a, BoolVar b)</div><divclass="ttdoc">Adds a => b.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00627">cp_model.h:627</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a7ec28144e7a47f2e8067b895dba4971a"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a7ec28144e7a47f2e8067b895dba4971a">operations_research::sat::CpModelBuilder::Build</a></div><divclass="ttdeci">const CpModelProto & Build() const</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00858">cp_model.h:858</a></div></div>
<divclass="ttc"id="anamespaceoperations__research_1_1sat_html_aeaed9bdf2a27bb778ba397666cb874d7"><divclass="ttname"><ahref="namespaceoperations__research_1_1sat.html#aeaed9bdf2a27bb778ba397666cb874d7">operations_research::sat::SolutionIntegerValue</a></div><divclass="ttdeci">int64 SolutionIntegerValue(const CpSolverResponse &r, const LinearExpr &expr)</div><divclass="ttdoc">Evaluates the value of an linear expression in a solver response.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_acca41811e8aaab0112b987749c0ecb93"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#acca41811e8aaab0112b987749c0ecb93">operations_research::sat::IntervalVar::index</a></div><divclass="ttdeci">int index() const</div><divclass="ttdoc">Returns the index of the interval constraint in the model.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00371">cp_model.h:371</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a93177d9951cd72c46ef51f55b0eba6c1"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a93177d9951cd72c46ef51f55b0eba6c1">operations_research::sat::IntervalVar::EndVar</a></div><divclass="ttdeci">IntVar EndVar() const</div><divclass="ttdoc">Returns the end variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_abb93372bf4b86beb59afd982e3e2e35b"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#abb93372bf4b86beb59afd982e3e2e35b">operations_research::sat::CpModelBuilder::AddBoolOr</a></div><divclass="ttdeci">Constraint AddBoolOr(absl::Span< const BoolVar > literals)</div><divclass="ttdoc">Adds the constraint that at least one of the literals must be true.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_ac1fcee16c92c43742bc7b0d3b78c7c28"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#ac1fcee16c92c43742bc7b0d3b78c7c28">operations_research::sat::CpModelBuilder::AddHint</a></div><divclass="ttdeci">void AddHint(IntVar var, int64 value)</div><divclass="ttdoc">Adds hinting to a variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1Constraint_html_a191cd9b1ba3e3c01a558a1f6c02a4429"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1Constraint.html#a191cd9b1ba3e3c01a558a1f6c02a4429">operations_research::sat::Constraint::Name</a></div><divclass="ttdeci">const std::string & Name() const</div><divclass="ttdoc">Returns the name of the constraint (or the empty string if not set).</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_aabad4e80a83e1b7ceb05a1a33263c6af"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#aabad4e80a83e1b7ceb05a1a33263c6af">operations_research::sat::CpModelBuilder::AddModuloEquality</a></div><divclass="ttdeci">Constraint AddModuloEquality(IntVar target, IntVar var, IntVar mod)</div><divclass="ttdoc">Adds target = var % mod.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1AutomatonConstraint_html_a91c44b4bd258542c96f064b771996ccb"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1AutomatonConstraint.html#a91c44b4bd258542c96f064b771996ccb">operations_research::sat::AutomatonConstraint::AddTransition</a></div><divclass="ttdeci">void AddTransition(int tail, int head, int64 transition_label)</div><divclass="ttdoc">Adds a transitions to the automaton.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1ConstraintProto_html_a2ec4b0b15e694caaaa842243694c51f5"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1ConstraintProto.html#a2ec4b0b15e694caaaa842243694c51f5">operations_research::sat::ConstraintProto::interval</a></div><divclass="ttdeci">const ::operations_research::sat::IntervalConstraintProto & interval() const</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8pb_8h_source.html#l09084">cp_model.pb.h:9084</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a992e2e2fd31057ae895a5e1ee406c067"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a992e2e2fd31057ae895a5e1ee406c067">operations_research::sat::CpModelBuilder::Minimize</a></div><divclass="ttdeci">void Minimize(const LinearExpr &expr)</div><divclass="ttdoc">Adds a linear minimization objective.</div></div>
<divclass="ttc"id="anamespaceoperations__research_1_1sat_html_a671200a31003492dbef21f2b4ee3dcbd"><divclass="ttname"><ahref="namespaceoperations__research_1_1sat.html#a671200a31003492dbef21f2b4ee3dcbd">operations_research::sat::SolutionIntegerMin</a></div><divclass="ttdeci">int64 SolutionIntegerMin(const CpSolverResponse &r, IntVar x)</div><divclass="ttdoc">Returns the min of an integer variable in a solution.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_acca41811e8aaab0112b987749c0ecb93"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#acca41811e8aaab0112b987749c0ecb93">operations_research::sat::IntVar::index</a></div><divclass="ttdeci">int index() const</div><divclass="ttdoc">Returns the index of the variable in the model.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00186">cp_model.h:186</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a49f862c5400f04e70393acc6b78f096a"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a49f862c5400f04e70393acc6b78f096a">operations_research::sat::CpModelBuilder::Maximize</a></div><divclass="ttdeci">void Maximize(const LinearExpr &expr)</div><divclass="ttdoc">Adds a linear maximization objective.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CircuitConstraint_html_ac64dffddebc8b332ee6a4db064c426d2"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CircuitConstraint.html#ac64dffddebc8b332ee6a4db064c426d2">operations_research::sat::CircuitConstraint::AddArc</a></div><divclass="ttdeci">void AddArc(int tail, int head, BoolVar literal)</div><divclass="ttdoc">Add an arc to the circuit.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_acf0b12c4598ff0e9badb80795341e1ce"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#acf0b12c4598ff0e9badb80795341e1ce">operations_research::sat::BoolVar::Not</a></div><divclass="ttdeci">BoolVar Not() const</div><divclass="ttdoc">Returns the logical negation of the current Boolean variable.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00077">cp_model.h:77</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_ac007930625d02938b9440eafdd23dcdc"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#ac007930625d02938b9440eafdd23dcdc">operations_research::sat::BoolVar::operator==</a></div><divclass="ttdeci">bool operator==(const BoolVar &other) const</div><divclass="ttdoc">Equality test with another boolvar.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00080">cp_model.h:80</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1MultipleCircuitConstraint_html_ac64dffddebc8b332ee6a4db064c426d2"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1MultipleCircuitConstraint.html#ac64dffddebc8b332ee6a4db064c426d2">operations_research::sat::MultipleCircuitConstraint::AddArc</a></div><divclass="ttdeci">void AddArc(int tail, int head, BoolVar literal)</div><divclass="ttdoc">Add an arc to the circuit.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a41087c5f2f732f7a2f336b45b952f199"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a41087c5f2f732f7a2f336b45b952f199">operations_research::sat::IntervalVar::Name</a></div><divclass="ttdeci">std::string Name() const</div><divclass="ttdoc">Returns the name of the interval (or the empty string if not set).</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntegerVariableProto_html_a24dcbf29c0d6cd766009a182a6484e3b"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntegerVariableProto.html#a24dcbf29c0d6cd766009a182a6484e3b">operations_research::sat::IntegerVariableProto::name</a></div><divclass="ttdeci">const std::string & name() const</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8pb_8h_source.html#l05692">cp_model.pb.h:5692</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a6a381cb501091af7e3e8604baa503e4f"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a6a381cb501091af7e3e8604baa503e4f">operations_research::sat::CpModelBuilder::AddDecisionStrategy</a></div><divclass="ttdeci">void AddDecisionStrategy(absl::Span< const IntVar > variables, DecisionStrategyProto::VariableSelectionStrategy var_strategy, DecisionStrategyProto::DomainReductionStrategy domain_strategy)</div><divclass="ttdoc">Adds a decision strategy on a list of integer variables.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a9c481bea08e8109289cdd3ee8d4a24d8"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a9c481bea08e8109289cdd3ee8d4a24d8">operations_research::sat::CpModelBuilder::FalseVar</a></div><divclass="ttdeci">BoolVar FalseVar()</div><divclass="ttdoc">Creates an always false Boolean variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html">operations_research::sat::CpModelBuilder</a></div><divclass="ttdoc">Wrapper class around the cp_model proto.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00593">cp_model.h:593</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a7414f9395b4bafa9c58fe865b68165dd"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a7414f9395b4bafa9c58fe865b68165dd">operations_research::sat::IntervalVar::SizeVar</a></div><divclass="ttdeci">IntVar SizeVar() const</div><divclass="ttdoc">Returns the size variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a0efb111b753edb71e39cb7d1243d93d1"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a0efb111b753edb71e39cb7d1243d93d1">operations_research::sat::CpModelBuilder::AddForbiddenAssignments</a></div><divclass="ttdeci">TableConstraint AddForbiddenAssignments(absl::Span< const IntVar > vars)</div><divclass="ttdoc">Adds an forbidden assignments constraint.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a41656ab2aa515b1768f3325383c32a47"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a41656ab2aa515b1768f3325383c32a47">operations_research::sat::CpModelBuilder::AddDivisionEquality</a></div><divclass="ttdeci">Constraint AddDivisionEquality(IntVar target, IntVar numerator, IntVar denominator)</div><divclass="ttdoc">Adds target = num / denom (integer division rounded towards 0).</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_a8391a20c25890ccbf3f5e3982afed236"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#a8391a20c25890ccbf3f5e3982afed236">operations_research::sat::BoolVar::SolutionBooleanValue</a></div><divclass="ttdeci">friend bool SolutionBooleanValue(const CpSolverResponse &r, BoolVar x)</div><divclass="ttdoc">Evaluates the value of a Boolean literal in a solver response.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_af6e22d55cdb0a5a5dda6e70f4d339f85"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#af6e22d55cdb0a5a5dda6e70f4d339f85">operations_research::sat::CpModelBuilder::AddNoOverlap</a></div><divclass="ttdeci">Constraint AddNoOverlap(absl::Span< const IntervalVar > vars)</div><divclass="ttdoc">Adds a no-overlap constraint that ensures that all present intervals do not overlap in time.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a81c51e7386ecad3111a9fb9e2bacc29d"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a81c51e7386ecad3111a9fb9e2bacc29d">operations_research::sat::CpModelBuilder::AddGreaterThan</a></div><divclass="ttdeci">Constraint AddGreaterThan(const LinearExpr &left, const LinearExpr &right)</div><divclass="ttdoc">Adds left > right.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a76b3dff7b13e85766819c3413d237ad1"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a76b3dff7b13e85766819c3413d237ad1">operations_research::sat::CpModelBuilder::Proto</a></div><divclass="ttdeci">const CpModelProto & Proto() const</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00860">cp_model.h:860</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a3499b9ae26db7dcea22e375a09524ca5"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a3499b9ae26db7dcea22e375a09524ca5">operations_research::sat::CpModelBuilder::AddMultipleCircuitConstraint</a></div><divclass="ttdeci">MultipleCircuitConstraint AddMultipleCircuitConstraint()</div><divclass="ttdoc">Adds a multiple circuit constraint, aka the "VRP" (Vehicle Routing Problem) constraint.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_ab3208590bc0182ec5d6acffd6347503c"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#ab3208590bc0182ec5d6acffd6347503c">operations_research::sat::IntervalVar::Proto</a></div><divclass="ttdeci">const IntervalConstraintProto & Proto() const</div><divclass="ttdoc">Returns the underlying protobuf object (useful for testing).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00361">cp_model.h:361</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1Constraint_html_a18bb41d87c6d089385c392476adb6465"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1Constraint.html#a18bb41d87c6d089385c392476adb6465">operations_research::sat::Constraint::WithName</a></div><divclass="ttdeci">Constraint WithName(const std::string &name)</div><divclass="ttdoc">Sets the name of the constraint.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html">operations_research::sat::IntervalVar</a></div><divclass="ttdoc">Represents a Interval variable.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00320">cp_model.h:320</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_ae7be47301fa8fdc0f4944877cd2fe7ba"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#ae7be47301fa8fdc0f4944877cd2fe7ba">operations_research::sat::IntVar::Proto</a></div><divclass="ttdeci">const IntegerVariableProto & Proto() const</div><divclass="ttdoc">Returns the underlying protobuf object (useful for testing).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00176">cp_model.h:176</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a8098e37a46ec252d36fe0757887f1337"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a8098e37a46ec252d36fe0757887f1337">operations_research::sat::IntVar::WithName</a></div><divclass="ttdeci">IntVar WithName(const std::string &name)</div><divclass="ttdoc">Sets the name of the variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_aea10fa3042dfc4f8c5e0db27cb106e01"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#aea10fa3042dfc4f8c5e0db27cb106e01">operations_research::sat::CpModelBuilder::AddAllDifferent</a></div><divclass="ttdeci">Constraint AddAllDifferent(absl::Span< const IntVar > vars)</div><divclass="ttdoc">this constraint forces all variables to have different values.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_ab0da51955684003ebd40b203c9515538"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#ab0da51955684003ebd40b203c9515538">operations_research::sat::CpModelBuilder::AddNoOverlap2D</a></div><divclass="ttdeci">NoOverlap2DConstraint AddNoOverlap2D()</div><divclass="ttdoc">The no_overlap_2d constraint prevents a set of boxes from overlapping.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a8b419aa8e100f7d6dc404b1e591443ce"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a8b419aa8e100f7d6dc404b1e591443ce">operations_research::sat::IntervalVar::WithName</a></div><divclass="ttdeci">IntervalVar WithName(const std::string &name)</div><divclass="ttdoc">Sets the name of the variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a08bd8b53ab836f5c1e16f360afcf2818"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a08bd8b53ab836f5c1e16f360afcf2818">operations_research::sat::CpModelBuilder::NewConstant</a></div><divclass="ttdeci">IntVar NewConstant(int64 value)</div><divclass="ttdoc">Creates a constant variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1BoolVar_html_a02b89136ac6040e03a762f9588bbb38f"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1BoolVar.html#a02b89136ac6040e03a762f9588bbb38f">operations_research::sat::BoolVar::MutableProto</a></div><divclass="ttdeci">IntegerVariableProto * MutableProto() const</div><divclass="ttdoc">Returns the mutable underlying protobuf object (useful for model edition).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00098">cp_model.h:98</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_aeabe14db3b80e3fb94c6d2b3ad90e8f8"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#aeabe14db3b80e3fb94c6d2b3ad90e8f8">operations_research::sat::CpModelBuilder::AddAllowedAssignments</a></div><divclass="ttdeci">TableConstraint AddAllowedAssignments(absl::Span< const IntVar > vars)</div><divclass="ttdoc">Adds an allowed assignments constraint.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1TableConstraint_html_a5a4a22c7e11aa5064b3de8668497b650"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1TableConstraint.html#a5a4a22c7e11aa5064b3de8668497b650">operations_research::sat::TableConstraint::AddTuple</a></div><divclass="ttdeci">void AddTuple(absl::Span< const int64 > tuple)</div><divclass="ttdoc">Adds a tuple of possible values to the constraint.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html">operations_research::sat::LinearExpr</a></div><divclass="ttdoc">A dedicated container for linear expressions.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00242">cp_model.h:242</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a7555c0d6582783a6778bf209acc737e9"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a7555c0d6582783a6778bf209acc737e9">operations_research::sat::CpModelBuilder::ScaleObjectiveBy</a></div><divclass="ttdeci">void ScaleObjectiveBy(double scaling)</div><divclass="ttdoc">Sets scaling of the objective.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_acb6bbd3a68fe3281780b6bc74dcb3716"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#acb6bbd3a68fe3281780b6bc74dcb3716">operations_research::sat::LinearExpr::AddVar</a></div><divclass="ttdeci">void AddVar(IntVar var)</div><divclass="ttdoc">Adds a single integer variable to the linear expression.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_ae17bac92c54a4eabc1ddaa875d32cdd2"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#ae17bac92c54a4eabc1ddaa875d32cdd2">operations_research::sat::CpModelBuilder::AddNotEqual</a></div><divclass="ttdeci">Constraint AddNotEqual(const LinearExpr &left, const LinearExpr &right)</div><divclass="ttdoc">Adds left != right.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a38d802efced63979cac9c029f748b2df"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a38d802efced63979cac9c029f748b2df">operations_research::sat::CpModelBuilder::TrueVar</a></div><divclass="ttdeci">BoolVar TrueVar()</div><divclass="ttdoc">Creates an always true Boolean variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_ab00374af3fbd853d2d5f04a5ca608ec2"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#ab00374af3fbd853d2d5f04a5ca608ec2">operations_research::sat::LinearExpr::AddTerm</a></div><divclass="ttdeci">void AddTerm(IntVar var, int64 coeff)</div><divclass="ttdoc">Adds a term (var * coeff) to the linear expression.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_afeafd91b6c39ca5733228cd0e3a78cab"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#afeafd91b6c39ca5733228cd0e3a78cab">operations_research::sat::IntervalVar::StartVar</a></div><divclass="ttdeci">IntVar StartVar() const</div><divclass="ttdoc">Returns the start variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_a86bf77bbf334c2b017bf92cc10d82c0b"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#a86bf77bbf334c2b017bf92cc10d82c0b">operations_research::sat::IntervalVar::operator==</a></div><divclass="ttdeci">bool operator==(const IntervalVar &other) const</div><divclass="ttdoc">Equality test with another interval variable.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00348">cp_model.h:348</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a5eacbc3ce694a75ad57598990c511635"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a5eacbc3ce694a75ad57598990c511635">operations_research::sat::IntVar::operator==</a></div><divclass="ttdeci">bool operator==(const IntVar &other) const</div><divclass="ttdoc">Equality test with another IntVar.</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00163">cp_model.h:163</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a7671d69e0d2ee5470b338710c9d13f80"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a7671d69e0d2ee5470b338710c9d13f80">operations_research::sat::CpModelBuilder::AddVariableElement</a></div><divclass="ttdeci">Constraint AddVariableElement(IntVar index, absl::Span< const IntVar > variables, IntVar target)</div><divclass="ttdoc">Adds the element constraint: variables[index] == target.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a39205137bf1d725eeb83298fed27a320"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a39205137bf1d725eeb83298fed27a320">operations_research::sat::CpModelBuilder::NewIntVar</a></div><divclass="ttdeci">IntVar NewIntVar(const Domain &domain)</div><divclass="ttdoc">Creates an integer variable with the given domain.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntervalVar_html_abc2055b6d2662a7570f6c975a3226aef"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntervalVar.html#abc2055b6d2662a7570f6c975a3226aef">operations_research::sat::IntervalVar::MutableProto</a></div><divclass="ttdeci">IntervalConstraintProto * MutableProto() const</div><divclass="ttdoc">Returns the mutable underlying protobuf object (useful for model edition).</div><divclass="ttdef"><b>Definition:</b><ahref="cp__model_8h_source.html#l00366">cp_model.h:366</a></div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_a899dd96359ab1e4f8a0589439db9c619"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#a899dd96359ab1e4f8a0589439db9c619">operations_research::sat::LinearExpr::Sum</a></div><divclass="ttdeci">static LinearExpr Sum(absl::Span< const IntVar > vars)</div><divclass="ttdoc">Constructs the sum of a list of variables.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_aac1d593654ac2c9e311b7337b702216b"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#aac1d593654ac2c9e311b7337b702216b">operations_research::sat::CpModelBuilder::AddEquality</a></div><divclass="ttdeci">Constraint AddEquality(const LinearExpr &left, const LinearExpr &right)</div><divclass="ttdoc">Adds left == right.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_af4231766a67a055d14cd7d41b747c05d"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#af4231766a67a055d14cd7d41b747c05d">operations_research::sat::CpModelBuilder::NewIntervalVar</a></div><divclass="ttdeci">IntervalVar NewIntervalVar(IntVar start, IntVar size, IntVar end)</div><divclass="ttdoc">Creates an interval variable.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1LinearExpr_html_aa87921d8ff0a1fe8f40b50900433997a"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1LinearExpr.html#aa87921d8ff0a1fe8f40b50900433997a">operations_research::sat::LinearExpr::BooleanSum</a></div><divclass="ttdeci">static LinearExpr BooleanSum(absl::Span< const BoolVar > vars)</div><divclass="ttdoc">Constructs the sum of a list of Booleans.</div></div>
<divclass="ttc"id="anamespaceoperations__research_1_1sat_html_a8ec893fa736de5b95135ecb9314ee6d8"><divclass="ttname"><ahref="namespaceoperations__research_1_1sat.html#a8ec893fa736de5b95135ecb9314ee6d8">operations_research::sat::SolutionIntegerMax</a></div><divclass="ttdeci">int64 SolutionIntegerMax(const CpSolverResponse &r, IntVar x)</div><divclass="ttdoc">Returns the max of an integer variable in a solution.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1IntVar_html_a8ec929aea42c9e50e2f1daf56525e379"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1IntVar.html#a8ec929aea42c9e50e2f1daf56525e379">operations_research::sat::IntVar::SolutionIntegerMin</a></div><divclass="ttdeci">friend int64 SolutionIntegerMin(const CpSolverResponse &r, IntVar x)</div><divclass="ttdoc">Returns the min of an integer variable in a solution.</div></div>
<divclass="ttc"id="aclassoperations__research_1_1sat_1_1CpModelBuilder_html_a18f5b0a54e5d977cbc51978dbb58a083"><divclass="ttname"><ahref="classoperations__research_1_1sat_1_1CpModelBuilder.html#a18f5b0a54e5d977cbc51978dbb58a083">operations_research::sat::CpModelBuilder::AddLinearConstraint</a></div><divclass="ttdeci">Constraint AddLinearConstraint(const LinearExpr &expr, const Domain &domain)</div><divclass="ttdoc">Adds expr in domain.</div></div>