Files
ortools-clone/docs/cpp/bop__base_8h_source.html
Laurent Perron 5615fe9c61 regenerate docs
2022-01-17 21:42:14 +01:00

476 lines
100 KiB
HTML

<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: bop_base.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
&#160;<span id="projectnumber">9.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('bop__base_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle"><div class="title">bop_base.h</div></div>
</div><!--header-->
<div class="contents">
<a href="bop__base_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2010-2021 Google LLC</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">//</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// limitations under the License.</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#ifndef OR_TOOLS_BOP_BOP_BASE_H_</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#define OR_TOOLS_BOP_BOP_BASE_H_</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;limits&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &quot;absl/synchronization/mutex.h&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &quot;<a class="code" href="basictypes_8h.html">ortools/base/basictypes.h</a>&quot;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &quot;<a class="code" href="strong__vector_8h.html">ortools/base/strong_vector.h</a>&quot;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &quot;<a class="code" href="bop__parameters_8pb_8h.html">ortools/bop/bop_parameters.pb.h</a>&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &quot;<a class="code" href="bop__solution_8h.html">ortools/bop/bop_solution.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &quot;<a class="code" href="lp__types_8h.html">ortools/lp_data/lp_types.h</a>&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &quot;<a class="code" href="boolean__problem_8pb_8h.html">ortools/sat/boolean_problem.pb.h</a>&quot;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &quot;<a class="code" href="clause_8h.html">ortools/sat/clause.h</a>&quot;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &quot;<a class="code" href="sat__base_8h.html">ortools/sat/sat_base.h</a>&quot;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &quot;<a class="code" href="stats_8h.html">ortools/util/stats.h</a>&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &quot;<a class="code" href="time__limit_8h.html">ortools/util/time_limit.h</a>&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">namespace </span>bop {</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="comment">// Forward declaration.</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">struct </span>LearnedInfo;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">class </span>ProblemState;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="comment">// Base class used to optimize a ProblemState.</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="comment">// Optimizers implementing this class are used in a sort of portfolio and</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="comment">// are run sequentially or concurrently. See for instance BopRandomLNSOptimizer.</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html"> 43</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html">BopOptimizerBase</a> {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">explicit</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#ad04aac22ccceca7709adc110eda9a7c5">BopOptimizerBase</a>(<span class="keyword">const</span> std::string&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a24dcbf29c0d6cd766009a182a6484e3b">name</a>);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">virtual</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a9f74c41926e861d667e124362fdab85a">~BopOptimizerBase</a>();</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// Returns the name given at construction.</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a24dcbf29c0d6cd766009a182a6484e3b"> 49</a></span> <span class="keyword">const</span> std::string&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a24dcbf29c0d6cd766009a182a6484e3b">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a723d30392e2c4f36252de0528a1b246d">name_</a>; }</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// Returns true if this optimizer should be run on the given problem state.</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// Some optimizer requires a feasible solution to run for instance.</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="comment">//</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="comment">// Note that a similar effect can be achieved if Optimize() returns ABORT</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// right away. However, doing the later will lower the chance of this</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// optimizer to be called again since it will count as a failure to improve</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// the current state.</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#aaeeb19933553a65ac631b81cd00e7035"> 58</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#aaeeb19933553a65ac631b81cd00e7035">ShouldBeRun</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_problem_state.html">ProblemState</a>&amp; problem_state) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// Return status of the Optimize() function below.</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="comment">//</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// TODO(user): To redesign, some are not needed anymore thanks to the</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// problem state, e.g. IsOptimal().</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b"> 64</a></span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> {</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2"> 65</a></span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2">OPTIMAL_SOLUTION_FOUND</a>,</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b"> 66</a></span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b">SOLUTION_FOUND</a>,</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483"> 67</a></span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483">INFEASIBLE</a>,</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba72c2402449caa8f3edc8aa0a3816baed"> 68</a></span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba72c2402449caa8f3edc8aa0a3816baed">LIMIT_REACHED</a>,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// Some information was learned and the problem state will need to be</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// updated. This will trigger a new optimization round.</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="comment">//</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="comment">// TODO(user): replace by learned_info-&gt;IsEmpty()? but we will need to clear</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="comment">// the BopSolution there first.</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba896e21bf00faf87ec96b7d126be0641b"> 75</a></span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba896e21bf00faf87ec96b7d126be0641b">INFORMATION_FOUND</a>,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// This optimizer didn&#39;t learn any information yet but can be called again</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// on the same problem state to resume its work.</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374"> 79</a></span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374">CONTINUE</a>,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="comment">// There is no need to call this optimizer again on the same problem state.</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096">ABORT</a></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096"> 83</a></span> };</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// Tries to infer more information about the problem state, i.e. reduces the</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="comment">// gap by increasing the lower bound or finding a better solution.</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="comment">// Returns SOLUTION_FOUND when a new solution with a better objective cost is</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="comment">// found before a time limit.</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// The learned information is cleared and the filled with any new information</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="comment">// about the problem, e.g. a new lower bound.</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="comment">//</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// Preconditions: ShouldBeRun() must returns true.</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a493b6c254ace6a3309a0f84629085381"> 93</a></span> <span class="keyword">virtual</span> <a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a493b6c254ace6a3309a0f84629085381">Optimize</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_parameters.html">BopParameters</a>&amp; <a class="code hl_variable" href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a>,</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_problem_state.html">ProblemState</a>&amp; problem_state,</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a>* learned_info, <a class="code hl_class" href="classoperations__research_1_1_time_limit.html">TimeLimit</a>* <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>) = 0;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// Returns a string describing the status.</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">static</span> std::string <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a251e0a163e38833f5ac06582342143bd">GetStatusString</a>(<a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a723d30392e2c4f36252de0528a1b246d"> 101</a></span> <span class="keyword">const</span> std::string <a class="code hl_variable" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a723d30392e2c4f36252de0528a1b246d">name_</a>;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a7c6fc06ca542eed0ff0b6ed4b1ecbcda"> 103</a></span> <span class="keyword">mutable</span> <a class="code hl_class" href="classoperations__research_1_1_stats_group.html">StatsGroup</a> <a class="code hl_variable" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a7c6fc06ca542eed0ff0b6ed4b1ecbcda">stats_</a>;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span>};</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1bop.html#a5842cf5724426c4f547842ce54d6e3a4"> 106</a></span><span class="keyword">inline</span> std::ostream&amp; <a class="code hl_function" href="namespaceoperations__research_1_1bop.html#a5842cf5724426c4f547842ce54d6e3a4">operator&lt;&lt;</a>(std::ostream&amp; os,</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">BopOptimizerBase::Status</a> <a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>) {</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> os &lt;&lt; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a251e0a163e38833f5ac06582342143bd">BopOptimizerBase::GetStatusString</a>(<a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>);</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">return</span> os;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span>}</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span><span class="comment">// This class represents the current state of the problem with all the</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span><span class="comment">// information that the solver learned about it at a given time.</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html"> 114</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1bop_1_1_problem_state.html">ProblemState</a> {</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">explicit</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#abcc8b7012186473601417334f669b0ae">ProblemState</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html">sat::LinearBooleanProblem</a>&amp; problem);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="comment">// Sets parameters, used for instance to get the tolerance, the gap limit...</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#aaeb385f7357113eef7a09c72b76bfdde"> 119</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#aaeb385f7357113eef7a09c72b76bfdde">SetParameters</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_parameters.html">BopParameters</a>&amp; <a class="code hl_variable" href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a>) {</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> parameters_ = <a class="code hl_variable" href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> }</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#ae4f24c7b61b473847e51049b06d85003"> 123</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_parameters.html">BopParameters</a>&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ae4f24c7b61b473847e51049b06d85003">GetParameters</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> parameters_; }</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="comment">// Sets an assignment preference for each variable.</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="comment">// This is only used for warm start.</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#adfb842375135476d0b0117a3f6c209a3"> 127</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adfb842375135476d0b0117a3f6c209a3">set_assignment_preference</a>(<span class="keyword">const</span> std::vector&lt;bool&gt;&amp; <a class="code hl_variable" href="constraint__solver_2table_8cc.html#acb18315d548212835cd8ed4287e6c0b6">a</a>) {</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> assignment_preference_ = <a class="code hl_variable" href="constraint__solver_2table_8cc.html#acb18315d548212835cd8ed4287e6c0b6">a</a>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> }</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a7a5110e0dc1017a81058fbfce4407292"> 130</a></span> <span class="keyword">const</span> std::vector&lt;bool&gt; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a7a5110e0dc1017a81058fbfce4407292">assignment_preference</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">return</span> assignment_preference_;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> }</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="comment">// Merges the learned information with the current problem state. For</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="comment">// instance, if variables x, and y are fixed in the current state, and z is</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="comment">// learned to be fixed, the result of the merge will be x, y, and z being</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="comment">// fixed in the problem state.</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="comment">// Note that the LP values contained in the learned information (if any)</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="comment">// will replace the LP values of the problem state, whatever the cost is.</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="comment">// Returns true when the merge has changed the problem state.</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada">MergeLearnedInfo</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a>&amp; learned_info,</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">BopOptimizerBase::Status</a> optimization_status);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// Returns all the information learned so far.</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// TODO(user): In the current implementation the learned information only</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="comment">// contains binary clauses added since the last call to</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="comment">// SynchronizationDone().</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="comment">// Add an iterator on the sat::BinaryClauseManager.</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a529183bc82496d0c83c76d9438999acd">GetLearnedInfo</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// The stamp represents an upper bound on the number of times the problem</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="comment">// state has been updated. If the stamp changed since last time one has</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="comment">// checked the state, it&#39;s worth trying again as it might have changed</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="comment">// (no guarantee).</span></div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a875589eca4ea515dd6e9e51bd2b9cb53"> 155</a></span> <span class="keyword">static</span> <span class="keyword">const</span> int64_t <a class="code hl_variable" href="classoperations__research_1_1bop_1_1_problem_state.html#a875589eca4ea515dd6e9e51bd2b9cb53">kInitialStampValue</a>;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#ac3f005f004bb2c049e3ee884c16dfeac"> 156</a></span> int64_t <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ac3f005f004bb2c049e3ee884c16dfeac">update_stamp</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> update_stamp_; }</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// Marks the problem state as optimal.</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a3efa71f535fb21ac2a5ad48427d9598b">MarkAsOptimal</a>();</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="comment">// Marks the problem state as infeasible.</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a49778557d9d936862216e244b7b1d9cf">MarkAsInfeasible</a>();</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// Returns true when the current state is proved to be optimal. In such a case</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="comment">// solution() returns the optimal solution.</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a3349a9854b8b5e6e7f3807e293354ad5"> 166</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a3349a9854b8b5e6e7f3807e293354ad5">IsOptimal</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordflow">return</span> solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>() &amp;&amp; solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a9f0494e519e93f67f62ba4b76fde1c56">GetCost</a>() == <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">lower_bound</a>();</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> }</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="comment">// Returns true when the problem is proved to be infeasible.</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#afa100093981de3b019a7d5d6c7533a5a"> 171</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#afa100093981de3b019a7d5d6c7533a5a">IsInfeasible</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">lower_bound</a>() &gt; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</a>(); }</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="comment">// Returns true when the variable var is fixed in the current problem state.</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="comment">// The value of the fixed variable is returned by GetVariableFixedValue(var).</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a64ae791bca42eca0e2155e81c36420c1"> 175</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a64ae791bca42eca0e2155e81c36420c1">IsVariableFixed</a>(VariableIndex <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> is_fixed_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]; }</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#ab6ce57c9f5711fa2cf5155b468c333ac"> 176</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classabsl_1_1_strong_vector.html">absl::StrongVector&lt;VariableIndex, bool&gt;</a>&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ab6ce57c9f5711fa2cf5155b468c333ac">is_fixed</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keywordflow">return</span> is_fixed_;</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> }</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="comment">// Returns the value of the fixed variable var. Should be only called on fixed</span></div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="comment">// variables (CHECKed).</span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#aa27fa90c75da28fa722a8390d031a604"> 182</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#aa27fa90c75da28fa722a8390d031a604">GetVariableFixedValue</a>(VariableIndex <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow">return</span> fixed_values_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>];</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> }</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#aa839b1c13af0690f568c2830bbbdb295"> 185</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classabsl_1_1_strong_vector.html">absl::StrongVector&lt;VariableIndex, bool&gt;</a>&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#aa839b1c13af0690f568c2830bbbdb295">fixed_values</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">return</span> fixed_values_;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> }</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="comment">// Returns the values of the LP relaxation of the problem. Returns an empty</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="comment">// vector when the LP has not been populated.</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a5da5f1f7172bc738a52187f7b8d06af9"> 191</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">glop::DenseRow</a>&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a5da5f1f7172bc738a52187f7b8d06af9">lp_values</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lp_values_; }</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="comment">// Returns the solution to the current state problem.</span></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="comment">// Note that the solution might not be feasible because until we find one, it</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="comment">// will just be the all-false assignment.</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27"> 196</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_solution.html">BopSolution</a>&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> solution_; }</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="comment">// Returns the original problem. Note that the current problem might be</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="comment">// different, e.g. fixed variables, but equivalent, i.e. a solution to one</span></div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="comment">// should be a solution to the other too.</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a831918c2aa4802563301addc46efd0eb"> 201</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html">sat::LinearBooleanProblem</a>&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a831918c2aa4802563301addc46efd0eb">original_problem</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">return</span> original_problem_;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> }</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="comment">// Returns the current lower (resp. upper) bound of the objective cost.</span></div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="comment">// For internal use only: this is the unscaled version of the lower (resp.</span></div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="comment">// upper) bound, and so should be compared only to the unscaled cost given by</span></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="comment">// solution.GetCost().</span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f"> 209</a></span> int64_t <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">lower_bound</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> lower_bound_; }</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b"> 210</a></span> int64_t <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> upper_bound_; }</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="comment">// Returns the scaled lower bound of the original problem.</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#afe39cb8a51ec2fc5508dc160f7e594a2"> 213</a></span> <span class="keywordtype">double</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#afe39cb8a51ec2fc5508dc160f7e594a2">GetScaledLowerBound</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">return</span> (<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">lower_bound</a>() + original_problem_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html#a9fd8f81a798fd34a843b007c10e40d6b">objective</a>().<a class="code hl_function" href="classoperations__research_1_1sat_1_1_linear_objective.html#a96ffc785b7b2135c7980c985883ffdd3">offset</a>()) *</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> original_problem_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html#a9fd8f81a798fd34a843b007c10e40d6b">objective</a>().<a class="code hl_function" href="classoperations__research_1_1sat_1_1_linear_objective.html#a9e32504c3f1bddb0f25f1386ecf7987b">scaling_factor</a>();</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> }</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="comment">// Returns the newly added binary clause since the last SynchronizationDone().</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keyword">const</span> std::vector&lt;sat::BinaryClause&gt;&amp; <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a502bf851b64f372f3388d57abbb2fee4">NewlyAddedBinaryClauses</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="comment">// Resets what is considered &quot;new&quot; information. This is meant to be called</span></div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <span class="comment">// once all the optimize have been synchronized.</span></div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ad4d586087a3c750cd7dde62209cbbe07">SynchronizationDone</a>();</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html">sat::LinearBooleanProblem</a>&amp; original_problem_;</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_parameters.html">BopParameters</a> parameters_;</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> int64_t update_stamp_;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_class" href="classabsl_1_1_strong_vector.html">absl::StrongVector&lt;VariableIndex, bool&gt;</a> is_fixed_;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <a class="code hl_class" href="classabsl_1_1_strong_vector.html">absl::StrongVector&lt;VariableIndex, bool&gt;</a> fixed_values_;</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">glop::DenseRow</a> lp_values_;</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_solution.html">BopSolution</a> solution_;</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> std::vector&lt;bool&gt; assignment_preference_;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> </div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> int64_t lower_bound_;</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> int64_t upper_bound_;</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> </div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="comment">// Manage the set of the problem binary clauses (including the learned ones).</span></div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html">sat::BinaryClauseManager</a> binary_clause_manager_;</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> DISALLOW_COPY_AND_ASSIGN(<a class="code hl_class" href="classoperations__research_1_1bop_1_1_problem_state.html">ProblemState</a>);</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span>};</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> </div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span><span class="comment">// This struct represents what has been learned on the problem state by</span></div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span><span class="comment">// running an optimizer. The goal is then to merge the learned information</span></div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span><span class="comment">// with the problem state in order to get a more constrained problem to be used</span></div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span><span class="comment">// by the next called optimizer.</span></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html"> 248</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a> {</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#ada1b9c54834146dbeafe85f567040d2b"> 249</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structoperations__research_1_1bop_1_1_learned_info.html#ada1b9c54834146dbeafe85f567040d2b">LearnedInfo</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html">sat::LinearBooleanProblem</a>&amp; problem)</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> : <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05">fixed_literals</a>(),</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">solution</a>(problem, <span class="stringliteral">&quot;AllZero&quot;</span>),</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f">lower_bound</a>(<a class="code hl_namespace" href="namespacestd.html">std</a>::numeric_limits&lt;int64_t&gt;::<a class="code hl_variable" href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">min</a>()),</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a92c51be8c0b7ed3142c363875d361967">lp_values</a>(),</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">binary_clauses</a>() {}</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="comment">// Clears all just as if the object were a brand new one. This can be used</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="comment">// to reduce the number of creation / deletion of objects.</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#aa71d36872f416feaa853788a7a7a7ef8"> 258</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="structoperations__research_1_1bop_1_1_learned_info.html#aa71d36872f416feaa853788a7a7a7ef8">Clear</a>() {</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05">fixed_literals</a>.clear();</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f">lower_bound</a> = <a class="code hl_variable" href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">std::numeric_limits&lt;int64_t&gt;::min</a>();</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a92c51be8c0b7ed3142c363875d361967">lp_values</a>.<a class="code hl_function" href="classabsl_1_1_strong_vector.html#ac8bb3912a3ce86b15842e79d0b421204">clear</a>();</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">binary_clauses</a>.clear();</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> }</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="comment">// Vector of all literals that have been fixed.</span></div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05"> 266</a></span> std::vector&lt;sat::Literal&gt; <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05">fixed_literals</a>;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="comment">// New solution. Note that the solution might be infeasible.</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f"> 269</a></span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_solution.html">BopSolution</a> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">solution</a>;</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> <span class="comment">// A lower bound (for multi-threading purpose).</span></div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f"> 272</a></span> int64_t <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f">lower_bound</a>;</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="comment">// An assignment for the relaxed linear programming problem (can be empty).</span></div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="comment">// This is meant to be the optimal LP solution, but can just be a feasible</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="comment">// solution or any floating point assignment if the LP solver didn&#39;t solve</span></div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="comment">// the relaxed problem optimally.</span></div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#a92c51be8c0b7ed3142c363875d361967"> 278</a></span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">glop::DenseRow</a> <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a92c51be8c0b7ed3142c363875d361967">lp_values</a>;</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> </div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="comment">// New binary clauses.</span></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"><a class="line" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9"> 281</a></span> std::vector&lt;sat::BinaryClause&gt; <a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">binary_clauses</a>;</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span>};</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> </div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span>} <span class="comment">// namespace bop</span></div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span>} <span class="comment">// namespace operations_research</span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span><span class="preprocessor">#endif </span><span class="comment">// OR_TOOLS_BOP_BOP_BASE_H_</span></div>
<div class="ttc" id="aalldiff__cst_8cc_html_ad10edae0a852d72fb76afb1c77735045"><div class="ttname"><a href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">min</a></div><div class="ttdeci">int64_t min</div><div class="ttdef"><b>Definition:</b> <a href="alldiff__cst_8cc_source.html#l00139">alldiff_cst.cc:139</a></div></div>
<div class="ttc" id="abasictypes_8h_html"><div class="ttname"><a href="basictypes_8h.html">basictypes.h</a></div></div>
<div class="ttc" id="aboolean__problem_8pb_8h_html"><div class="ttname"><a href="boolean__problem_8pb_8h.html">boolean_problem.pb.h</a></div></div>
<div class="ttc" id="abop__parameters_8pb_8h_html"><div class="ttname"><a href="bop__parameters_8pb_8h.html">bop_parameters.pb.h</a></div></div>
<div class="ttc" id="abop__solution_8h_html"><div class="ttname"><a href="bop__solution_8h.html">bop_solution.h</a></div></div>
<div class="ttc" id="aclassabsl_1_1_strong_vector_html"><div class="ttname"><a href="classabsl_1_1_strong_vector.html">absl::StrongVector&lt; VariableIndex, bool &gt;</a></div></div>
<div class="ttc" id="aclassabsl_1_1_strong_vector_html_ac8bb3912a3ce86b15842e79d0b421204"><div class="ttname"><a href="classabsl_1_1_strong_vector.html#ac8bb3912a3ce86b15842e79d0b421204">absl::StrongVector::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="strong__vector_8h_source.html#l00170">strong_vector.h:170</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1_stats_group_html"><div class="ttname"><a href="classoperations__research_1_1_stats_group.html">operations_research::StatsGroup</a></div><div class="ttdef"><b>Definition:</b> <a href="stats_8h_source.html#l00131">stats.h:131</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1_time_limit_html"><div class="ttname"><a href="classoperations__research_1_1_time_limit.html">operations_research::TimeLimit</a></div><div class="ttdoc">A simple class to enforce both an elapsed time limit and a deterministic time limit in the same threa...</div><div class="ttdef"><b>Definition:</b> <a href="time__limit_8h_source.html#l00106">time_limit.h:106</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html">operations_research::bop::BopOptimizerBase</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00043">bop_base.h:43</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a24dcbf29c0d6cd766009a182a6484e3b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a24dcbf29c0d6cd766009a182a6484e3b">operations_research::bop::BopOptimizerBase::name</a></div><div class="ttdeci">const std::string &amp; name() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00049">bop_base.h:49</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a251e0a163e38833f5ac06582342143bd"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a251e0a163e38833f5ac06582342143bd">operations_research::bop::BopOptimizerBase::GetStatusString</a></div><div class="ttdeci">static std::string GetStatusString(Status status)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00039">bop_base.cc:39</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a493b6c254ace6a3309a0f84629085381"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a493b6c254ace6a3309a0f84629085381">operations_research::bop::BopOptimizerBase::Optimize</a></div><div class="ttdeci">virtual Status Optimize(const BopParameters &amp;parameters, const ProblemState &amp;problem_state, LearnedInfo *learned_info, TimeLimit *time_limit)=0</div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">operations_research::bop::BopOptimizerBase::Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00064">bop_base.h:64</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b">operations_research::bop::BopOptimizerBase::SOLUTION_FOUND</a></div><div class="ttdeci">@ SOLUTION_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00066">bop_base.h:66</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483">operations_research::bop::BopOptimizerBase::INFEASIBLE</a></div><div class="ttdeci">@ INFEASIBLE</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00067">bop_base.h:67</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374">operations_research::bop::BopOptimizerBase::CONTINUE</a></div><div class="ttdeci">@ CONTINUE</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00079">bop_base.h:79</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba72c2402449caa8f3edc8aa0a3816baed"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba72c2402449caa8f3edc8aa0a3816baed">operations_research::bop::BopOptimizerBase::LIMIT_REACHED</a></div><div class="ttdeci">@ LIMIT_REACHED</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00068">bop_base.h:68</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096">operations_research::bop::BopOptimizerBase::ABORT</a></div><div class="ttdeci">@ ABORT</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00083">bop_base.h:82</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba896e21bf00faf87ec96b7d126be0641b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba896e21bf00faf87ec96b7d126be0641b">operations_research::bop::BopOptimizerBase::INFORMATION_FOUND</a></div><div class="ttdeci">@ INFORMATION_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00075">bop_base.h:75</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2">operations_research::bop::BopOptimizerBase::OPTIMAL_SOLUTION_FOUND</a></div><div class="ttdeci">@ OPTIMAL_SOLUTION_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00065">bop_base.h:65</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a723d30392e2c4f36252de0528a1b246d"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a723d30392e2c4f36252de0528a1b246d">operations_research::bop::BopOptimizerBase::name_</a></div><div class="ttdeci">const std::string name_</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00101">bop_base.h:101</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a7c6fc06ca542eed0ff0b6ed4b1ecbcda"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a7c6fc06ca542eed0ff0b6ed4b1ecbcda">operations_research::bop::BopOptimizerBase::stats_</a></div><div class="ttdeci">StatsGroup stats_</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00103">bop_base.h:103</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a9f74c41926e861d667e124362fdab85a"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a9f74c41926e861d667e124362fdab85a">operations_research::bop::BopOptimizerBase::~BopOptimizerBase</a></div><div class="ttdeci">virtual ~BopOptimizerBase()</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00035">bop_base.cc:35</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_aaeeb19933553a65ac631b81cd00e7035"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#aaeeb19933553a65ac631b81cd00e7035">operations_research::bop::BopOptimizerBase::ShouldBeRun</a></div><div class="ttdeci">virtual bool ShouldBeRun(const ProblemState &amp;problem_state) const =0</div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_ad04aac22ccceca7709adc110eda9a7c5"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#ad04aac22ccceca7709adc110eda9a7c5">operations_research::bop::BopOptimizerBase::BopOptimizerBase</a></div><div class="ttdeci">BopOptimizerBase(const std::string &amp;name)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00030">bop_base.cc:30</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_parameters_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_parameters.html">operations_research::bop::BopParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__parameters_8pb_8h_source.html#l00516">bop_parameters.pb.h:517</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html">operations_research::bop::BopSolution</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00034">bop_solution.h:34</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a894d87c5fddfc463c3ca3c779ba7f997"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">operations_research::bop::BopSolution::IsFeasible</a></div><div class="ttdeci">bool IsFeasible() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00072">bop_solution.h:72</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a9f0494e519e93f67f62ba4b76fde1c56"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a9f0494e519e93f67f62ba4b76fde1c56">operations_research::bop::BopSolution::GetCost</a></div><div class="ttdeci">int64_t GetCost() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00053">bop_solution.h:53</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html">operations_research::bop::ProblemState</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00114">bop_base.h:114</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a1dfd4f5167c21a9a872f09f566817f27"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">operations_research::bop::ProblemState::solution</a></div><div class="ttdeci">const BopSolution &amp; solution() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00196">bop_base.h:196</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a1edcde41f3dff977bb6db2223f1e124f"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">operations_research::bop::ProblemState::lower_bound</a></div><div class="ttdeci">int64_t lower_bound() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00209">bop_base.h:209</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a3349a9854b8b5e6e7f3807e293354ad5"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a3349a9854b8b5e6e7f3807e293354ad5">operations_research::bop::ProblemState::IsOptimal</a></div><div class="ttdeci">bool IsOptimal() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00166">bop_base.h:166</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a3efa71f535fb21ac2a5ad48427d9598b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a3efa71f535fb21ac2a5ad48427d9598b">operations_research::bop::ProblemState::MarkAsOptimal</a></div><div class="ttdeci">void MarkAsOptimal()</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00231">bop_base.cc:231</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a41c053fa0d0b27531bcb9977bded0ada"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada">operations_research::bop::ProblemState::MergeLearnedInfo</a></div><div class="ttdeci">bool MergeLearnedInfo(const LearnedInfo &amp;learned_info, BopOptimizerBase::Status optimization_status)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00092">bop_base.cc:92</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a49778557d9d936862216e244b7b1d9cf"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a49778557d9d936862216e244b7b1d9cf">operations_research::bop::ProblemState::MarkAsInfeasible</a></div><div class="ttdeci">void MarkAsInfeasible()</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00237">bop_base.cc:237</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a502bf851b64f372f3388d57abbb2fee4"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a502bf851b64f372f3388d57abbb2fee4">operations_research::bop::ProblemState::NewlyAddedBinaryClauses</a></div><div class="ttdeci">const std::vector&lt; sat::BinaryClause &gt; &amp; NewlyAddedBinaryClauses() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00249">bop_base.cc:249</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a529183bc82496d0c83c76d9438999acd"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a529183bc82496d0c83c76d9438999acd">operations_research::bop::ProblemState::GetLearnedInfo</a></div><div class="ttdeci">LearnedInfo GetLearnedInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00215">bop_base.cc:215</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a5da5f1f7172bc738a52187f7b8d06af9"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a5da5f1f7172bc738a52187f7b8d06af9">operations_research::bop::ProblemState::lp_values</a></div><div class="ttdeci">const glop::DenseRow &amp; lp_values() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00191">bop_base.h:191</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a64ae791bca42eca0e2155e81c36420c1"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a64ae791bca42eca0e2155e81c36420c1">operations_research::bop::ProblemState::IsVariableFixed</a></div><div class="ttdeci">bool IsVariableFixed(VariableIndex var) const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00175">bop_base.h:175</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a7a5110e0dc1017a81058fbfce4407292"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a7a5110e0dc1017a81058fbfce4407292">operations_research::bop::ProblemState::assignment_preference</a></div><div class="ttdeci">const std::vector&lt; bool &gt; assignment_preference() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00130">bop_base.h:130</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a831918c2aa4802563301addc46efd0eb"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a831918c2aa4802563301addc46efd0eb">operations_research::bop::ProblemState::original_problem</a></div><div class="ttdeci">const sat::LinearBooleanProblem &amp; original_problem() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00201">bop_base.h:201</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a875589eca4ea515dd6e9e51bd2b9cb53"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a875589eca4ea515dd6e9e51bd2b9cb53">operations_research::bop::ProblemState::kInitialStampValue</a></div><div class="ttdeci">static const int64_t kInitialStampValue</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00155">bop_base.h:155</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_aa27fa90c75da28fa722a8390d031a604"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#aa27fa90c75da28fa722a8390d031a604">operations_research::bop::ProblemState::GetVariableFixedValue</a></div><div class="ttdeci">bool GetVariableFixedValue(VariableIndex var) const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00182">bop_base.h:182</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_aa839b1c13af0690f568c2830bbbdb295"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#aa839b1c13af0690f568c2830bbbdb295">operations_research::bop::ProblemState::fixed_values</a></div><div class="ttdeci">const absl::StrongVector&lt; VariableIndex, bool &gt; &amp; fixed_values() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00185">bop_base.h:185</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_aaeb385f7357113eef7a09c72b76bfdde"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#aaeb385f7357113eef7a09c72b76bfdde">operations_research::bop::ProblemState::SetParameters</a></div><div class="ttdeci">void SetParameters(const BopParameters &amp;parameters)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00119">bop_base.h:119</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_ab6ce57c9f5711fa2cf5155b468c333ac"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#ab6ce57c9f5711fa2cf5155b468c333ac">operations_research::bop::ProblemState::is_fixed</a></div><div class="ttdeci">const absl::StrongVector&lt; VariableIndex, bool &gt; &amp; is_fixed() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00176">bop_base.h:176</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_abcc8b7012186473601417334f669b0ae"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#abcc8b7012186473601417334f669b0ae">operations_research::bop::ProblemState::ProblemState</a></div><div class="ttdeci">ProblemState(const sat::LinearBooleanProblem &amp;problem)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00067">bop_base.cc:67</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_ac3f005f004bb2c049e3ee884c16dfeac"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#ac3f005f004bb2c049e3ee884c16dfeac">operations_research::bop::ProblemState::update_stamp</a></div><div class="ttdeci">int64_t update_stamp() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00156">bop_base.h:156</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_ad4d586087a3c750cd7dde62209cbbe07"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#ad4d586087a3c750cd7dde62209cbbe07">operations_research::bop::ProblemState::SynchronizationDone</a></div><div class="ttdeci">void SynchronizationDone()</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00254">bop_base.cc:254</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_adb0496e18c263c65d88c43830b8b205b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">operations_research::bop::ProblemState::upper_bound</a></div><div class="ttdeci">int64_t upper_bound() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00210">bop_base.h:210</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_adfb842375135476d0b0117a3f6c209a3"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#adfb842375135476d0b0117a3f6c209a3">operations_research::bop::ProblemState::set_assignment_preference</a></div><div class="ttdeci">void set_assignment_preference(const std::vector&lt; bool &gt; &amp;a)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00127">bop_base.h:127</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_ae4f24c7b61b473847e51049b06d85003"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#ae4f24c7b61b473847e51049b06d85003">operations_research::bop::ProblemState::GetParameters</a></div><div class="ttdeci">const BopParameters &amp; GetParameters() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00123">bop_base.h:123</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_afa100093981de3b019a7d5d6c7533a5a"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#afa100093981de3b019a7d5d6c7533a5a">operations_research::bop::ProblemState::IsInfeasible</a></div><div class="ttdeci">bool IsInfeasible() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00171">bop_base.h:171</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_afe39cb8a51ec2fc5508dc160f7e594a2"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#afe39cb8a51ec2fc5508dc160f7e594a2">operations_research::bop::ProblemState::GetScaledLowerBound</a></div><div class="ttdeci">double GetScaledLowerBound() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00213">bop_base.h:213</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_strict_i_t_i_vector_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">operations_research::glop::StrictITIVector&lt; ColIndex, Fractional &gt;</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_binary_clause_manager_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_binary_clause_manager.html">operations_research::sat::BinaryClauseManager</a></div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00385">clause.h:385</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_linear_boolean_problem_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html">operations_research::sat::LinearBooleanProblem</a></div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8pb_8h_source.html#l00711">boolean_problem.pb.h:712</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_linear_boolean_problem_html_a9fd8f81a798fd34a843b007c10e40d6b"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html#a9fd8f81a798fd34a843b007c10e40d6b">operations_research::sat::LinearBooleanProblem::objective</a></div><div class="ttdeci">const ::operations_research::sat::LinearObjective &amp; objective() const</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8pb_8h_source.html#l01582">boolean_problem.pb.h:1582</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_linear_objective_html_a96ffc785b7b2135c7980c985883ffdd3"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_linear_objective.html#a96ffc785b7b2135c7980c985883ffdd3">operations_research::sat::LinearObjective::offset</a></div><div class="ttdeci">double offset() const</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8pb_8h_source.html#l01331">boolean_problem.pb.h:1331</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_linear_objective_html_a9e32504c3f1bddb0f25f1386ecf7987b"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_linear_objective.html#a9e32504c3f1bddb0f25f1386ecf7987b">operations_research::sat::LinearObjective::scaling_factor</a></div><div class="ttdeci">double scaling_factor() const</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8pb_8h_source.html#l01359">boolean_problem.pb.h:1359</a></div></div>
<div class="ttc" id="aclause_8h_html"><div class="ttname"><a href="clause_8h.html">clause.h</a></div></div>
<div class="ttc" id="aconstraint__solver_2table_8cc_html_acb18315d548212835cd8ed4287e6c0b6"><div class="ttname"><a href="constraint__solver_2table_8cc.html#acb18315d548212835cd8ed4287e6c0b6">a</a></div><div class="ttdeci">int64_t a</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_2table_8cc_source.html#l00046">constraint_solver/table.cc:46</a></div></div>
<div class="ttc" id="acp__model__fz__solver_8cc_html_a10a1eab179b472c030bdc2a2efef7219"><div class="ttname"><a href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a></div><div class="ttdeci">SatParameters parameters</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__fz__solver_8cc_source.html#l00120">cp_model_fz_solver.cc:120</a></div></div>
<div class="ttc" id="acp__model__solver_8cc_html_aec8af5c1be4e1b6d4330e1161028de21"><div class="ttname"><a href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a></div><div class="ttdeci">ModelSharedTimeLimit * time_limit</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__solver_8cc_source.html#l01951">cp_model_solver.cc:1951</a></div></div>
<div class="ttc" id="aexpr__array_8cc_html_a472a99923cbe11ae7b5a5d157d9ad465"><div class="ttname"><a href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a></div><div class="ttdeci">IntVar * var</div><div class="ttdef"><b>Definition:</b> <a href="expr__array_8cc_source.html#l01874">expr_array.cc:1874</a></div></div>
<div class="ttc" id="ag__gurobi_8cc_html_a2237393c7ae7ad7344c9885066d5ab6d"><div class="ttname"><a href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a></div><div class="ttdeci">absl::Status status</div><div class="ttdef"><b>Definition:</b> <a href="g__gurobi_8cc_source.html#l00035">g_gurobi.cc:35</a></div></div>
<div class="ttc" id="alp__types_8h_html"><div class="ttname"><a href="lp__types_8h.html">lp_types.h</a></div></div>
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a5842cf5724426c4f547842ce54d6e3a4"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a5842cf5724426c4f547842ce54d6e3a4">operations_research::bop::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, BopOptimizerBase::Status status)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00106">bop_base.h:106</a></div></div>
<div class="ttc" id="anamespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="asat__base_8h_html"><div class="ttname"><a href="sat__base_8h.html">sat_base.h</a></div></div>
<div class="ttc" id="astats_8h_html"><div class="ttname"><a href="stats_8h.html">stats.h</a></div></div>
<div class="ttc" id="astrong__vector_8h_html"><div class="ttname"><a href="strong__vector_8h.html">strong_vector.h</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html">operations_research::bop::LearnedInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00248">bop_base.h:248</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_a39891d16cd1cc89fb901e126ea4dcf05"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05">operations_research::bop::LearnedInfo::fixed_literals</a></div><div class="ttdeci">std::vector&lt; sat::Literal &gt; fixed_literals</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00266">bop_base.h:266</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_a8e4368b4553131cf24b49b9de6e6189f"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f">operations_research::bop::LearnedInfo::lower_bound</a></div><div class="ttdeci">int64_t lower_bound</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00272">bop_base.h:272</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_a92c51be8c0b7ed3142c363875d361967"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#a92c51be8c0b7ed3142c363875d361967">operations_research::bop::LearnedInfo::lp_values</a></div><div class="ttdeci">glop::DenseRow lp_values</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00278">bop_base.h:278</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_aa055411f4c53125132922079d33e535f"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">operations_research::bop::LearnedInfo::solution</a></div><div class="ttdeci">BopSolution solution</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00269">bop_base.h:269</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_aa71d36872f416feaa853788a7a7a7ef8"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#aa71d36872f416feaa853788a7a7a7ef8">operations_research::bop::LearnedInfo::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00258">bop_base.h:258</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_ada1b9c54834146dbeafe85f567040d2b"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#ada1b9c54834146dbeafe85f567040d2b">operations_research::bop::LearnedInfo::LearnedInfo</a></div><div class="ttdeci">LearnedInfo(const sat::LinearBooleanProblem &amp;problem)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00249">bop_base.h:249</a></div></div>
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_adb313aa020fc4cd7fdf4504c6d0f51c9"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">operations_research::bop::LearnedInfo::binary_clauses</a></div><div class="ttdeci">std::vector&lt; sat::BinaryClause &gt; binary_clauses</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00281">bop_base.h:281</a></div></div>
<div class="ttc" id="atime__limit_8h_html"><div class="ttname"><a href="time__limit_8h.html">time_limit.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_749f8352630e023f1ab8040461e5d795.html">bop</a></li><li class="navelem"><a class="el" href="bop__base_8h.html">bop_base.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
</html>