Files
ortools-clone/docs/cpp_routing/classoperations__research_1_1BaseIntExpr.html
Laurent Perron 6230c8e7a4 polish cpp doc
2019-07-12 13:25:23 -07:00

1132 lines
61 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&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classoperations__research_1_1BaseIntExpr.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classoperations__research_1_1BaseIntExpr-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">operations_research::BaseIntExpr Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This is the base class for all expressions that are not variables. </p>
<p>It provides a basic '<a class="el" href="classoperations__research_1_1BaseIntExpr.html#ac03c6f867b7e567f25a14a9e0c49a04b">CastToVar()</a>' implementation.</p>
<p>The class of expressions represent two types of objects: variables and subclasses of <a class="el" href="classoperations__research_1_1BaseIntExpr.html" title="This is the base class for all expressions that are not variables.">BaseIntExpr</a>. Variables are stateful objects that provide a rich API (remove values, WhenBound...). On the other hand, subclasses of <a class="el" href="classoperations__research_1_1BaseIntExpr.html" title="This is the base class for all expressions that are not variables.">BaseIntExpr</a> represent range-only stateless objects. That is, min(A + B) is recomputed each time as min(A) + min(B).</p>
<p>Furthermore, sometimes, the propagation on an expression is not complete, and <a class="el" href="classoperations__research_1_1IntExpr.html#a58d589131cbea30d4826248a2fa06aba">Min()</a>, <a class="el" href="classoperations__research_1_1IntExpr.html#a1fb9e08cff06a9a5b5739de4acba587c">Max()</a> are not monotonic with respect to <a class="el" href="classoperations__research_1_1IntExpr.html#afec5a6eea8ee64fbc7fa34d7d28f8d8f">SetMin()</a> and <a class="el" href="classoperations__research_1_1IntExpr.html#adee9a082160df545671781df47f2b985">SetMax()</a>. For instance, if A is a var with domain [0 .. 5], and B another variable with domain [0 .. 5], then Plus(A, B) has domain [0, 10].</p>
<p>If we apply SetMax(Plus(A, B), 4)), we will deduce that both A and B have domain [0 .. 4]. In that case, Max(Plus(A, B)) is 8 and not 4. To get back monotonicity, we 'cast' the expression into a variable using the <a class="el" href="classoperations__research_1_1BaseIntExpr.html#a1482a8f4291d806dc98deaf586777f0a" title="Creates a variable from the expression.">Var()</a> method (that will call <a class="el" href="classoperations__research_1_1BaseIntExpr.html#ac03c6f867b7e567f25a14a9e0c49a04b">CastToVar()</a> internally). The resulting variable will be stateful and monotonic.</p>
<p>Finally, one should never store a pointer to a <a class="el" href="classoperations__research_1_1IntExpr.html" title="The class IntExpr is the base of all integer expressions in constraint programming.">IntExpr</a>, or <a class="el" href="classoperations__research_1_1BaseIntExpr.html" title="This is the base class for all expressions that are not variables.">BaseIntExpr</a> in the code. The safe code should always call <a class="el" href="classoperations__research_1_1BaseIntExpr.html#a1482a8f4291d806dc98deaf586777f0a" title="Creates a variable from the expression.">Var()</a> on an expression built by the solver, and store the object as an IntVar*. This is a consequence of the stateless nature of the expressions that makes the code error-prone. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solveri_8h_source.html#l00109">109</a> of file <a class="el" href="constraint__solveri_8h_source.html">constraint_solveri.h</a>.</p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad7d12cdfcb4b9340db0ea792b5545419"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1BaseIntExpr.html#ad7d12cdfcb4b9340db0ea792b5545419">BaseIntExpr</a> (<a class="el" href="classoperations__research_1_1Solver.html">Solver</a> *const s)</td></tr>
<tr class="separator:ad7d12cdfcb4b9340db0ea792b5545419"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92036e166d6a3a89c23d7f77840f7f5c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1BaseIntExpr.html#a92036e166d6a3a89c23d7f77840f7f5c">~BaseIntExpr</a> () override</td></tr>
<tr class="separator:a92036e166d6a3a89c23d7f77840f7f5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1482a8f4291d806dc98deaf586777f0a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1BaseIntExpr.html#a1482a8f4291d806dc98deaf586777f0a">Var</a> () override</td></tr>
<tr class="memdesc:a1482a8f4291d806dc98deaf586777f0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a variable from the expression. <a href="#a1482a8f4291d806dc98deaf586777f0a">More...</a><br /></td></tr>
<tr class="separator:a1482a8f4291d806dc98deaf586777f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac03c6f867b7e567f25a14a9e0c49a04b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1BaseIntExpr.html#ac03c6f867b7e567f25a14a9e0c49a04b">CastToVar</a> ()</td></tr>
<tr class="separator:ac03c6f867b7e567f25a14a9e0c49a04b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58d589131cbea30d4826248a2fa06aba"><td class="memItemLeft" align="right" valign="top">virtual int64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a58d589131cbea30d4826248a2fa06aba">Min</a> () const =0</td></tr>
<tr class="separator:a58d589131cbea30d4826248a2fa06aba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afec5a6eea8ee64fbc7fa34d7d28f8d8f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#afec5a6eea8ee64fbc7fa34d7d28f8d8f">SetMin</a> (int64 m)=0</td></tr>
<tr class="separator:afec5a6eea8ee64fbc7fa34d7d28f8d8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fb9e08cff06a9a5b5739de4acba587c"><td class="memItemLeft" align="right" valign="top">virtual int64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a1fb9e08cff06a9a5b5739de4acba587c">Max</a> () const =0</td></tr>
<tr class="separator:a1fb9e08cff06a9a5b5739de4acba587c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adee9a082160df545671781df47f2b985"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#adee9a082160df545671781df47f2b985">SetMax</a> (int64 m)=0</td></tr>
<tr class="separator:adee9a082160df545671781df47f2b985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07b522d73ebcc17ebc1b480d181627f1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a07b522d73ebcc17ebc1b480d181627f1">Range</a> (int64 *l, int64 *u)</td></tr>
<tr class="memdesc:a07b522d73ebcc17ebc1b480d181627f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">By default calls <a class="el" href="classoperations__research_1_1IntExpr.html#a58d589131cbea30d4826248a2fa06aba">Min()</a> and <a class="el" href="classoperations__research_1_1IntExpr.html#a1fb9e08cff06a9a5b5739de4acba587c">Max()</a>, but can be redefined when Min and Max code can be factorized. <a href="#a07b522d73ebcc17ebc1b480d181627f1">More...</a><br /></td></tr>
<tr class="separator:a07b522d73ebcc17ebc1b480d181627f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a153843dc05670b540a8e83dba2043eb0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a153843dc05670b540a8e83dba2043eb0">SetRange</a> (int64 l, int64 u)</td></tr>
<tr class="memdesc:a153843dc05670b540a8e83dba2043eb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method sets both the min and the max of the expression. <a href="#a153843dc05670b540a8e83dba2043eb0">More...</a><br /></td></tr>
<tr class="separator:a153843dc05670b540a8e83dba2043eb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8889930ed76665b0f24f12df2ed4e05c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a8889930ed76665b0f24f12df2ed4e05c">SetValue</a> (int64 v)</td></tr>
<tr class="memdesc:a8889930ed76665b0f24f12df2ed4e05c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method sets the value of the expression. <a href="#a8889930ed76665b0f24f12df2ed4e05c">More...</a><br /></td></tr>
<tr class="separator:a8889930ed76665b0f24f12df2ed4e05c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13e126985026936fe8da212d2e377236"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a13e126985026936fe8da212d2e377236">Bound</a> () const</td></tr>
<tr class="memdesc:a13e126985026936fe8da212d2e377236"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the min and the max of the expression are equal. <a href="#a13e126985026936fe8da212d2e377236">More...</a><br /></td></tr>
<tr class="separator:a13e126985026936fe8da212d2e377236"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb288e8b397020398b1184047587f01"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a4bb288e8b397020398b1184047587f01">IsVar</a> () const</td></tr>
<tr class="memdesc:a4bb288e8b397020398b1184047587f01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the expression is indeed a variable. <a href="#a4bb288e8b397020398b1184047587f01">More...</a><br /></td></tr>
<tr class="separator:a4bb288e8b397020398b1184047587f01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1de04a321f16e9cdc50bbec78e1adbf7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a1de04a321f16e9cdc50bbec78e1adbf7">VarWithName</a> (const std::string &amp;<a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a8be8b75223b76744791e48747677cdb6">name</a>)</td></tr>
<tr class="memdesc:a1de04a321f16e9cdc50bbec78e1adbf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a variable from the expression and set the name of the resulting var. <a href="#a1de04a321f16e9cdc50bbec78e1adbf7">More...</a><br /></td></tr>
<tr class="separator:a1de04a321f16e9cdc50bbec78e1adbf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a845a3c3c71323504f6b59f9c0ea46b08"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a845a3c3c71323504f6b59f9c0ea46b08">WhenRange</a> (<a class="el" href="classoperations__research_1_1Demon.html">Demon</a> *d)=0</td></tr>
<tr class="memdesc:a845a3c3c71323504f6b59f9c0ea46b08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attach a demon that will watch the min or the max of the expression. <a href="#a845a3c3c71323504f6b59f9c0ea46b08">More...</a><br /></td></tr>
<tr class="separator:a845a3c3c71323504f6b59f9c0ea46b08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b35ce14dbdbd3df0d20af5b708288f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a4b35ce14dbdbd3df0d20af5b708288f8">WhenRange</a> (<a class="el" href="classoperations__research_1_1Solver.html#aab58d22b2215e79f8e3a9424fe186239">Solver::Closure</a> closure)</td></tr>
<tr class="memdesc:a4b35ce14dbdbd3df0d20af5b708288f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attach a demon that will watch the min or the max of the expression. <a href="#a4b35ce14dbdbd3df0d20af5b708288f8">More...</a><br /></td></tr>
<tr class="separator:a4b35ce14dbdbd3df0d20af5b708288f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d21b7e60b50a18a1591de348da6563e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#a6d21b7e60b50a18a1591de348da6563e">WhenRange</a> (<a class="el" href="classoperations__research_1_1Solver.html#a87ca0b6abf9c8724900387f5aa557c04">Solver::Action</a> action)</td></tr>
<tr class="memdesc:a6d21b7e60b50a18a1591de348da6563e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attach a demon that will watch the min or the max of the expression. <a href="#a6d21b7e60b50a18a1591de348da6563e">More...</a><br /></td></tr>
<tr class="separator:a6d21b7e60b50a18a1591de348da6563e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa573e0d34def6539f939b4b81d506164"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1IntExpr.html#aa573e0d34def6539f939b4b81d506164">Accept</a> (<a class="el" href="classoperations__research_1_1ModelVisitor.html">ModelVisitor</a> *const visitor) const</td></tr>
<tr class="memdesc:aa573e0d34def6539f939b4b81d506164"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accepts the given visitor. <a href="#aa573e0d34def6539f939b4b81d506164">More...</a><br /></td></tr>
<tr class="separator:aa573e0d34def6539f939b4b81d506164"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5b6f8cb73c1b76da152ad612f91c4ce"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#ae5b6f8cb73c1b76da152ad612f91c4ce">DebugString</a> () const override</td></tr>
<tr class="separator:ae5b6f8cb73c1b76da152ad612f91c4ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3aa61657c74294f198a16d1dbc52580"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Solver.html">Solver</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#ab3aa61657c74294f198a16d1dbc52580">solver</a> () const</td></tr>
<tr class="separator:ab3aa61657c74294f198a16d1dbc52580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78b16596f589dd63573a1586f61c2dbd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a78b16596f589dd63573a1586f61c2dbd">FreezeQueue</a> ()</td></tr>
<tr class="memdesc:a78b16596f589dd63573a1586f61c2dbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method freezes the propagation queue. <a href="#a78b16596f589dd63573a1586f61c2dbd">More...</a><br /></td></tr>
<tr class="separator:a78b16596f589dd63573a1586f61c2dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97782b79fbcf8043201fefaa7729dcf1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a97782b79fbcf8043201fefaa7729dcf1">UnfreezeQueue</a> ()</td></tr>
<tr class="memdesc:a97782b79fbcf8043201fefaa7729dcf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method unfreezes the propagation queue. <a href="#a97782b79fbcf8043201fefaa7729dcf1">More...</a><br /></td></tr>
<tr class="separator:a97782b79fbcf8043201fefaa7729dcf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dd87cd906d80738f8727fda04bc5ace"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a5dd87cd906d80738f8727fda04bc5ace">EnqueueDelayedDemon</a> (<a class="el" href="classoperations__research_1_1Demon.html">Demon</a> *const d)</td></tr>
<tr class="memdesc:a5dd87cd906d80738f8727fda04bc5ace"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method pushes the demon onto the propagation queue. <a href="#a5dd87cd906d80738f8727fda04bc5ace">More...</a><br /></td></tr>
<tr class="separator:a5dd87cd906d80738f8727fda04bc5ace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fe6115081d583d57b6cd8b0dd1783d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a3fe6115081d583d57b6cd8b0dd1783d7">EnqueueVar</a> (<a class="el" href="classoperations__research_1_1Demon.html">Demon</a> *const d)</td></tr>
<tr class="separator:a3fe6115081d583d57b6cd8b0dd1783d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a7285479f5e0fa7663c043cdfc7dd61"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a4a7285479f5e0fa7663c043cdfc7dd61">ExecuteAll</a> (const <a class="el" href="classoperations__research_1_1SimpleRevFIFO.html">SimpleRevFIFO</a>&lt; <a class="el" href="classoperations__research_1_1Demon.html">Demon</a> * &gt; &amp;demons)</td></tr>
<tr class="separator:a4a7285479f5e0fa7663c043cdfc7dd61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5975e144479d99ceae4f009472ca5e92"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a5975e144479d99ceae4f009472ca5e92">EnqueueAll</a> (const <a class="el" href="classoperations__research_1_1SimpleRevFIFO.html">SimpleRevFIFO</a>&lt; <a class="el" href="classoperations__research_1_1Demon.html">Demon</a> * &gt; &amp;demons)</td></tr>
<tr class="separator:a5975e144479d99ceae4f009472ca5e92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c6bf90bb0b099a2c8f81aaefdfdd46c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a5c6bf90bb0b099a2c8f81aaefdfdd46c">set_action_on_fail</a> (<a class="el" href="classoperations__research_1_1Solver.html#a87ca0b6abf9c8724900387f5aa557c04">Solver::Action</a> a)</td></tr>
<tr class="separator:a5c6bf90bb0b099a2c8f81aaefdfdd46c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad07aa613bcc8d3896dff3f33520b061c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#ad07aa613bcc8d3896dff3f33520b061c">reset_action_on_fail</a> ()</td></tr>
<tr class="memdesc:ad07aa613bcc8d3896dff3f33520b061c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method clears the failure callback. <a href="#ad07aa613bcc8d3896dff3f33520b061c">More...</a><br /></td></tr>
<tr class="separator:ad07aa613bcc8d3896dff3f33520b061c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d2ccb8a806df14394b3271791c81e61"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a4d2ccb8a806df14394b3271791c81e61">set_variable_to_clean_on_fail</a> (<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *v)</td></tr>
<tr class="memdesc:a4d2ccb8a806df14394b3271791c81e61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shortcut for variable cleaner. <a href="#a4d2ccb8a806df14394b3271791c81e61">More...</a><br /></td></tr>
<tr class="separator:a4d2ccb8a806df14394b3271791c81e61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8be8b75223b76744791e48747677cdb6"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a8be8b75223b76744791e48747677cdb6">name</a> () const</td></tr>
<tr class="memdesc:a8be8b75223b76744791e48747677cdb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Object naming. <a href="#a8be8b75223b76744791e48747677cdb6">More...</a><br /></td></tr>
<tr class="separator:a8be8b75223b76744791e48747677cdb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d4a4cf402b353ba2908836656cf0c62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a5d4a4cf402b353ba2908836656cf0c62">set_name</a> (const std::string &amp;<a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a8be8b75223b76744791e48747677cdb6">name</a>)</td></tr>
<tr class="separator:a5d4a4cf402b353ba2908836656cf0c62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6e627822f954d6072125c1d152c30f8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#af6e627822f954d6072125c1d152c30f8">HasName</a> () const</td></tr>
<tr class="memdesc:af6e627822f954d6072125c1d152c30f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the object has been named or not. <a href="#af6e627822f954d6072125c1d152c30f8">More...</a><br /></td></tr>
<tr class="separator:af6e627822f954d6072125c1d152c30f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab34671f68433c582260a443f3d15bfae"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1PropagationBaseObject.html#ab34671f68433c582260a443f3d15bfae">BaseName</a> () const</td></tr>
<tr class="memdesc:ab34671f68433c582260a443f3d15bfae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a base name for automatic naming. <a href="#ab34671f68433c582260a443f3d15bfae">More...</a><br /></td></tr>
<tr class="separator:ab34671f68433c582260a443f3d15bfae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad7d12cdfcb4b9340db0ea792b5545419"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7d12cdfcb4b9340db0ea792b5545419">&#9670;&nbsp;</a></span>BaseIntExpr()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">operations_research::BaseIntExpr::BaseIntExpr </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Solver.html">Solver</a> *const&#160;</td>
<td class="paramname"><em>s</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="constraint__solveri_8h_source.html#l00111">111</a> of file <a class="el" href="constraint__solveri_8h_source.html">constraint_solveri.h</a>.</p>
</div>
</div>
<a id="a92036e166d6a3a89c23d7f77840f7f5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92036e166d6a3a89c23d7f77840f7f5c">&#9670;&nbsp;</a></span>~BaseIntExpr()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">operations_research::BaseIntExpr::~BaseIntExpr </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="constraint__solveri_8h_source.html#l00112">112</a> of file <a class="el" href="constraint__solveri_8h_source.html">constraint_solveri.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa573e0d34def6539f939b4b81d506164"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa573e0d34def6539f939b4b81d506164">&#9670;&nbsp;</a></span>Accept()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::Accept </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1ModelVisitor.html">ModelVisitor</a> *const&#160;</td>
<td class="paramname"><em>visitor</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Accepts the given visitor. </p>
<p>Reimplemented in <a class="el" href="classoperations__research_1_1IntVar.html#a6d8841341ab21ef119c0b7df02785a48">operations_research::IntVar</a>.</p>
</div>
</div>
<a id="ab34671f68433c582260a443f3d15bfae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab34671f68433c582260a443f3d15bfae">&#9670;&nbsp;</a></span>BaseName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual std::string operations_research::PropagationBaseObject::BaseName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a base name for automatic naming. </p>
<p>Reimplemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#af9f1ddd2359a6d10c4003822bfc81289">operations_research::BooleanVar</a>.</p>
</div>
</div>
<a id="a13e126985026936fe8da212d2e377236"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13e126985026936fe8da212d2e377236">&#9670;&nbsp;</a></span>Bound()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool operations_research::IntExpr::Bound </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if the min and the max of the expression are equal. </p>
<p>Reimplemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#ae3a6eede92fb16e764d9ed3d41457a90">operations_research::BooleanVar</a>.</p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03799">3799</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="ac03c6f867b7e567f25a14a9e0c49a04b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac03c6f867b7e567f25a14a9e0c49a04b">&#9670;&nbsp;</a></span>CastToVar()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* operations_research::BaseIntExpr::CastToVar </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ae5b6f8cb73c1b76da152ad612f91c4ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5b6f8cb73c1b76da152ad612f91c4ce">&#9670;&nbsp;</a></span>DebugString()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string operations_research::PropagationBaseObject::DebugString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reimplemented from <a class="el" href="classoperations__research_1_1BaseObject.html#afb3b013c5063d71566d5273793c1d828">operations_research::BaseObject</a>.</p>
<p>Reimplemented in <a class="el" href="classoperations__research_1_1Pack.html#a494cf6256ff568544390e507a6943112">operations_research::Pack</a>, <a class="el" href="classoperations__research_1_1Assignment.html#a709bad20694c9c117a3abfff24a60d03">operations_research::Assignment</a>, <a class="el" href="classoperations__research_1_1SequenceVar.html#af92814129c466409ff4c004002c2034d">operations_research::SequenceVar</a>, <a class="el" href="classoperations__research_1_1Constraint.html#a443bf6da3f8db15c240cb92d20e37466">operations_research::Constraint</a>, and <a class="el" href="classoperations__research_1_1BooleanVar.html#acad14290f1f14a53adc0feb170d67f22">operations_research::BooleanVar</a>.</p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03109">3109</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a5975e144479d99ceae4f009472ca5e92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5975e144479d99ceae4f009472ca5e92">&#9670;&nbsp;</a></span>EnqueueAll()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::EnqueueAll </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1SimpleRevFIFO.html">SimpleRevFIFO</a>&lt; <a class="el" href="classoperations__research_1_1Demon.html">Demon</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>demons</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a5dd87cd906d80738f8727fda04bc5ace"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dd87cd906d80738f8727fda04bc5ace">&#9670;&nbsp;</a></span>EnqueueDelayedDemon()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::EnqueueDelayedDemon </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Demon.html">Demon</a> *const&#160;</td>
<td class="paramname"><em>d</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method pushes the demon onto the propagation queue. </p>
<p>It will be processed directly if the queue is empty. It will be enqueued according to its priority otherwise. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03129">3129</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a3fe6115081d583d57b6cd8b0dd1783d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fe6115081d583d57b6cd8b0dd1783d7">&#9670;&nbsp;</a></span>EnqueueVar()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::EnqueueVar </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Demon.html">Demon</a> *const&#160;</td>
<td class="paramname"><em>d</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03130">3130</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a4a7285479f5e0fa7663c043cdfc7dd61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a7285479f5e0fa7663c043cdfc7dd61">&#9670;&nbsp;</a></span>ExecuteAll()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::ExecuteAll </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1SimpleRevFIFO.html">SimpleRevFIFO</a>&lt; <a class="el" href="classoperations__research_1_1Demon.html">Demon</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>demons</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a78b16596f589dd63573a1586f61c2dbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78b16596f589dd63573a1586f61c2dbd">&#9670;&nbsp;</a></span>FreezeQueue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::FreezeQueue </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method freezes the propagation queue. </p>
<p>It is useful when you need to apply multiple modifications at once. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03120">3120</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="af6e627822f954d6072125c1d152c30f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6e627822f954d6072125c1d152c30f8">&#9670;&nbsp;</a></span>HasName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool operations_research::PropagationBaseObject::HasName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns whether the object has been named or not. </p>
</div>
</div>
<a id="a4bb288e8b397020398b1184047587f01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bb288e8b397020398b1184047587f01">&#9670;&nbsp;</a></span>IsVar()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool operations_research::IntExpr::IsVar </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if the expression is indeed a variable. </p>
<p>Reimplemented in <a class="el" href="classoperations__research_1_1IntVar.html#a1e8732e1343228cbe86db9c986aa48d4">operations_research::IntVar</a>.</p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03802">3802</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a1fb9e08cff06a9a5b5739de4acba587c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fb9e08cff06a9a5b5739de4acba587c">&#9670;&nbsp;</a></span>Max()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int64 operations_research::IntExpr::Max </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#a3a05915289d4c146e0a38bb316a7a47c">operations_research::BooleanVar</a>.</p>
</div>
</div>
<a id="a58d589131cbea30d4826248a2fa06aba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58d589131cbea30d4826248a2fa06aba">&#9670;&nbsp;</a></span>Min()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int64 operations_research::IntExpr::Min </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#adcdc43494bcafece6480f57f626544ce">operations_research::BooleanVar</a>.</p>
</div>
</div>
<a id="a8be8b75223b76744791e48747677cdb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8be8b75223b76744791e48747677cdb6">&#9670;&nbsp;</a></span>name()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual std::string operations_research::PropagationBaseObject::name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Object naming. </p>
</div>
</div>
<a id="a07b522d73ebcc17ebc1b480d181627f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07b522d73ebcc17ebc1b480d181627f1">&#9670;&nbsp;</a></span>Range()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::Range </td>
<td>(</td>
<td class="paramtype">int64 *&#160;</td>
<td class="paramname"><em>l</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64 *&#160;</td>
<td class="paramname"><em>u</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>By default calls <a class="el" href="classoperations__research_1_1IntExpr.html#a58d589131cbea30d4826248a2fa06aba">Min()</a> and <a class="el" href="classoperations__research_1_1IntExpr.html#a1fb9e08cff06a9a5b5739de4acba587c">Max()</a>, but can be redefined when Min and Max code can be factorized. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03785">3785</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="ad07aa613bcc8d3896dff3f33520b061c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad07aa613bcc8d3896dff3f33520b061c">&#9670;&nbsp;</a></span>reset_action_on_fail()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::reset_action_on_fail </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method clears the failure callback. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03143">3143</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a5c6bf90bb0b099a2c8f81aaefdfdd46c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c6bf90bb0b099a2c8f81aaefdfdd46c">&#9670;&nbsp;</a></span>set_action_on_fail()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::set_action_on_fail </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Solver.html#a87ca0b6abf9c8724900387f5aa557c04">Solver::Action</a>&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03137">3137</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a5d4a4cf402b353ba2908836656cf0c62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d4a4cf402b353ba2908836656cf0c62">&#9670;&nbsp;</a></span>set_name()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::set_name </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a4d2ccb8a806df14394b3271791c81e61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d2ccb8a806df14394b3271791c81e61">&#9670;&nbsp;</a></span>set_variable_to_clean_on_fail()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::set_variable_to_clean_on_fail </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *&#160;</td>
<td class="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shortcut for variable cleaner. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03146">3146</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="adee9a082160df545671781df47f2b985"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adee9a082160df545671781df47f2b985">&#9670;&nbsp;</a></span>SetMax()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::SetMax </td>
<td>(</td>
<td class="paramtype">int64&#160;</td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#a378347db1409d83313ccb4af90628da5">operations_research::BooleanVar</a>.</p>
</div>
</div>
<a id="afec5a6eea8ee64fbc7fa34d7d28f8d8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afec5a6eea8ee64fbc7fa34d7d28f8d8f">&#9670;&nbsp;</a></span>SetMin()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::SetMin </td>
<td>(</td>
<td class="paramtype">int64&#160;</td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#a6b734a5a677fb0fe2825436c6ba48a7f">operations_research::BooleanVar</a>.</p>
</div>
</div>
<a id="a153843dc05670b540a8e83dba2043eb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a153843dc05670b540a8e83dba2043eb0">&#9670;&nbsp;</a></span>SetRange()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::SetRange </td>
<td>(</td>
<td class="paramtype">int64&#160;</td>
<td class="paramname"><em>l</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64&#160;</td>
<td class="paramname"><em>u</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method sets both the min and the max of the expression. </p>
<p>Reimplemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#ae662ff228ca3c6d00bf1b5a44cde80af">operations_research::BooleanVar</a>.</p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03790">3790</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a8889930ed76665b0f24f12df2ed4e05c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8889930ed76665b0f24f12df2ed4e05c">&#9670;&nbsp;</a></span>SetValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::SetValue </td>
<td>(</td>
<td class="paramtype">int64&#160;</td>
<td class="paramname"><em>v</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method sets the value of the expression. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03796">3796</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="ab3aa61657c74294f198a16d1dbc52580"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3aa61657c74294f198a16d1dbc52580">&#9670;&nbsp;</a></span>solver()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1Solver.html">Solver</a>* operations_research::PropagationBaseObject::solver </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03116">3116</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a97782b79fbcf8043201fefaa7729dcf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97782b79fbcf8043201fefaa7729dcf1">&#9670;&nbsp;</a></span>UnfreezeQueue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::PropagationBaseObject::UnfreezeQueue </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method unfreezes the propagation queue. </p>
<p>All modifications that happened when the queue was frozen will be processed. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03124">3124</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a1482a8f4291d806dc98deaf586777f0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1482a8f4291d806dc98deaf586777f0a">&#9670;&nbsp;</a></span>Var()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* operations_research::BaseIntExpr::Var </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a variable from the expression. </p>
<p>Implements <a class="el" href="classoperations__research_1_1IntExpr.html#a751d151bfe120bc6d378c4570505cbd4">operations_research::IntExpr</a>.</p>
</div>
</div>
<a id="a1de04a321f16e9cdc50bbec78e1adbf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1de04a321f16e9cdc50bbec78e1adbf7">&#9670;&nbsp;</a></span>VarWithName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* operations_research::IntExpr::VarWithName </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a variable from the expression and set the name of the resulting var. </p>
<p>If the expression is already a variable, then it will set the name of the expression, possibly overwriting it. This is just a shortcut to <a class="el" href="classoperations__research_1_1BaseIntExpr.html#a1482a8f4291d806dc98deaf586777f0a" title="Creates a variable from the expression.">Var()</a> followed by <a class="el" href="classoperations__research_1_1PropagationBaseObject.html#a5d4a4cf402b353ba2908836656cf0c62">set_name()</a>. </p>
</div>
</div>
<a id="a845a3c3c71323504f6b59f9c0ea46b08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a845a3c3c71323504f6b59f9c0ea46b08">&#9670;&nbsp;</a></span>WhenRange() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void operations_research::IntExpr::WhenRange </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Demon.html">Demon</a> *&#160;</td>
<td class="paramname"><em>d</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Attach a demon that will watch the min or the max of the expression. </p>
<p>Implemented in <a class="el" href="classoperations__research_1_1BooleanVar.html#afe92381987bbfe57038d9505070961f1">operations_research::BooleanVar</a>.</p>
</div>
</div>
<a id="a4b35ce14dbdbd3df0d20af5b708288f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b35ce14dbdbd3df0d20af5b708288f8">&#9670;&nbsp;</a></span>WhenRange() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::IntExpr::WhenRange </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Solver.html#aab58d22b2215e79f8e3a9424fe186239">Solver::Closure</a>&#160;</td>
<td class="paramname"><em>closure</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Attach a demon that will watch the min or the max of the expression. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03816">3816</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<a id="a6d21b7e60b50a18a1591de348da6563e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d21b7e60b50a18a1591de348da6563e">&#9670;&nbsp;</a></span>WhenRange() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void operations_research::IntExpr::WhenRange </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classoperations__research_1_1Solver.html#a87ca0b6abf9c8724900387f5aa557c04">Solver::Action</a>&#160;</td>
<td class="paramname"><em>action</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Attach a demon that will watch the min or the max of the expression. </p>
<p class="definition">Definition at line <a class="el" href="constraint__solver_8h_source.html#l03822">3822</a> of file <a class="el" href="constraint__solver_8h_source.html">constraint_solver.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="constraint__solveri_8h_source.html">constraint_solveri.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>