<ahref="constraints_8cc.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2010-2021 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">#include <string.h></span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> </div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include <algorithm></span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#include <cstdint></span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#include <limits></span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor">#include <memory></span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#include <string></span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor">#include <utility></span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#include <vector></span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> </div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#include "absl/strings/str_cat.h"</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor">#include "absl/strings/str_format.h"</span></div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="preprocessor">#include "<aclass="code"href="integral__types_8h.html">ortools/base/integral_types.h</a>"</span></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="preprocessor">#include &qu
<divclass="ttc"id="classoperations__research_1_1_solver_html_a19542a9cd12586e432cf9ef6d9b07c31"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#a19542a9cd12586e432cf9ef6d9b07c31">operations_research::Solver::MakeMapDomain</a></div><divclass="ttdeci">Constraint * MakeMapDomain(IntVar *const var, const std::vector< IntVar * >&actives)</div><divclass="ttdoc">This constraint maps the domain of 'var' onto the array of variables 'actives'.</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00538">constraints.cc:538</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_ac46ae3a82d68424788c0eabc3d4b838c"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#ac46ae3a82d68424788c0eabc3d4b838c">operations_research::Solver::MakeDelayedConstraintInitialPropagateCallback</a></div><divclass="ttdeci">Demon * MakeDelayedConstraintInitialPropagateCallback(Constraint *const ct)</div><divclass="ttdoc">This method is a specialized case of the MakeConstraintDemon method to call the InitiatePropagate of ...</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00040">constraints.cc:40</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_constraint_html_a9100fab5545234f60a4ce442dbb45630"><divclass="ttname"><ahref="classoperations__research_1_1_constraint.html#a9100fab5545234f60a4ce442dbb45630">operations_research::Constraint::InitialPropagate</a></div><divclass="ttdeci">virtual void InitialPropagate()=0</div><divclass="ttdoc">This method performs the initial propagation of the constraint.</div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_abc32f3a80394fd12e8fc7f22e20c34ca"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#abc32f3a80394fd12e8fc7f22e20c34ca">operations_research::Solver::MakeInversePermutationConstraint</a></div><divclass="ttdeci">Constraint * MakeInversePermutationConstraint(const std::vector< IntVar * >&left, const std::vector< IntVar * >&right)</div><divclass="ttdoc">Creates a constraint that enforces that 'left' and 'right' both represent permutations of [0....</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00553">constraints.cc:553</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_demon_html"><divclass="ttname"><ahref="classoperations__research_1_1_demon.html">operations_research::Demon</a></div><divclass="ttdoc">A Demon is the base element of a propagation queue.</div><divclass="ttdef"><b>Definition:</b><ahref="constraint__solver_8h_source.html#l03342">constraint_solver.h:3342</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_constraint_html"><divclass="ttname"><ahref="classoperations__research_1_1_constraint.html">operations_research::Constraint</a></div><divclass="ttdoc">A constraint is the main modeling object.</div><divclass="ttdef"><b>Definition:</b><ahref="constraint__solver_8h_source.html#l03626">constraint_solver.h:3626</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_rev_html_affc0b3b0a5efa3efc9d0d86344d4a29f"><divclass="ttname"><ahref="classoperations__research_1_1_rev.html#affc0b3b0a5efa3efc9d0d86344d4a29f">operations_research::Rev::Value</a></div><divclass="ttdeci">const T & Value() const</div><divclass="ttdef"><b>Definition:</b><ahref="constraint__solver_8h_source.html#l03781">constraint_solver.h:3781</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_int_expr_html_a07173db6ca3b22fdb35ad963831a962b"><divclass="ttname"><ahref="classoperations__research_1_1_int_expr.html#a07173db6ca3b22fdb35ad963831a962b">operations_research::IntExpr::Var</a></div><divclass="ttdeci">virtual IntVar * Var()=0</div><divclass="ttdoc">Creates a variable from the expression.</div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_a757134fa69300766dced7f3ed9cd1810"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#a757134fa69300766dced7f3ed9cd1810">operations_research::Solver::MakeConstraintInitialPropagateCallback</a></div><divclass="ttdeci">Demon * MakeConstraintInitialPropagateCallback(Constraint *const ct)</div><divclass="ttdoc">This method is a specialized case of the MakeConstraintDemon method to call the InitiatePropagate of ...</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00035">constraints.cc:35</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_a8acdedd57a41a9cf6e607bdd8e20f02b"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#a8acdedd57a41a9cf6e607bdd8e20f02b">operations_research::Solver::MakeLexicalLessOrEqual</a></div><divclass="ttdeci">Constraint * MakeLexicalLessOrEqual(const std::vector< IntVar * >&left, const std::vector< IntVar * >&right)</div><divclass="ttdoc">Creates a constraint that enforces that left is lexicographically less than or equal to right.</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00548">constraints.cc:548</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_add19a54159cf1d9d075474b977a8788f"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#add19a54159cf1d9d075474b977a8788f">operations_research::Solver::MakeIndexOfFirstMaxValueConstraint</a></div><divclass="ttdeci">Constraint * MakeIndexOfFirstMaxValueConstraint(IntVar *index, const std::vector< IntVar * >&vars)</div><divclass="ttdoc">Creates a constraint that binds the index variable to the index of the first variable with the maximu...</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00558">constraints.cc:558</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_int_var_html"><divclass="ttname"><ahref="classoperations__research_1_1_int_var.html">operations_research::IntVar</a></div><divclass="ttdoc">The class IntVar is a subset of IntExpr.</div><divclass="ttdef"><b>Definition:</b><ahref="constraint__solver_8h_source.html#l04040">constraint_solver.h:4040</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_a2b761ab631609dadf6e6d06432853051"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#a2b761ab631609dadf6e6d06432853051">operations_research::Solver::MakeIndexOfFirstMinValueConstraint</a></div><divclass="ttdeci">Constraint * MakeIndexOfFirstMinValueConstraint(IntVar *index, const std::vector< IntVar * >&vars)</div><divclass="ttdoc">Creates a constraint that binds the index variable to the index of the first variable with the minimu...</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00563">constraints.cc:563</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_ab741cb25dd32d1cbe02fbfb36337d9bb"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#ab741cb25dd32d1cbe02fbfb36337d9bb">operations_research::Solver::RevAlloc</a></div><divclass="ttdeci">T * RevAlloc(T *object)</div><divclass="ttdoc">Registers the given object as being reversible.</div><divclass="ttdef"><b>Definition:</b><ahref="constraint__solver_8h_source.html#l00791">constraint_solver.h:791</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_a41bc583e647b18a0b71d07859581e640"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#a41bc583e647b18a0b71d07859581e640">operations_research::Solver::MakeLexicalLess</a></div><divclass="ttdeci">Constraint * MakeLexicalLess(const std::vector< IntVar * >&left, const std::vector< IntVar * >&right)</div><divclass="ttdoc">Creates a constraint that enforces that left is lexicographically less than right.</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00543">constraints.cc:543</a></div></div>
<divclass="ttc"id="namespaceoperations__research_html"><divclass="ttname"><ahref="namespaceoperations__research.html">operations_research</a></div><divclass="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><divclass="ttdef"><b>Definition:</b><ahref="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
<divclass="ttc"id="classoperations__research_1_1_solver_html_a3f0e3322d5ae085dc9958c4fd5329918"><divclass="ttname"><ahref="classoperations__research_1_1_solver.html#a3f0e3322d5ae085dc9958c4fd5329918">operations_research::Solver::MakeActionDemon</a></div><divclass="ttdeci">Demon * MakeActionDemon(Action action)</div><divclass="ttdoc">Creates a demon from a callback.</div><divclass="ttdef"><b>Definition:</b><ahref="constraints_8cc_source.html#l00510">constraints.cc:510</a></div></div>