368 lines
68 KiB
HTML
368 lines
68 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.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OR-Tools: bop_util.cc 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
|
|
 <span id="projectnumber">9.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.2 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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&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&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('bop__util_8cc_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_util.cc</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="bop__util_8cc.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 "License");</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 "AS IS" 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">#include "<a class="code" href="bop__util_8h.html">ortools/bop/bop_util.h</a>"</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <limits></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include "<a class="code" href="basictypes_8h.html">ortools/base/basictypes.h</a>"</span></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include "<a class="code" href="integral__types_8h.html">ortools/base/integral_types.h</a>"</span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include "<a class="code" href="bop__base_8h.html">ortools/bop/bop_base.h</a>"</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include "<a class="code" href="bop__solution_8h.html">ortools/bop/bop_solution.h</a>"</span></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include "<a class="code" href="boolean__problem_8h.html">ortools/sat/boolean_problem.h</a>"</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include "<a class="code" href="sat__solver_8h.html">ortools/sat/sat_solver.h</a>"</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">namespace </span>bop {</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span>{</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> kMaxLubyIndex = 30;</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> kMaxBoost = 30;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment">// Loads the problem state into the SAT solver. If the problem has already been</span></div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment">// loaded in the sat_solver, fixed variables and objective bounds are updated.</span></div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment">// Returns false when the problem is proved UNSAT.</span></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keywordtype">bool</span> InternalLoadStateProblemToSatSolver(<span class="keyword">const</span> ProblemState& problem_state,</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> sat::SatSolver* sat_solver) {</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> first_time = (sat_solver->NumVariables() == 0);</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">if</span> (first_time) {</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> sat_solver->SetNumVariables(</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> problem_state.original_problem().num_variables());</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Backtrack the solver to be able to add new constraints.</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> sat_solver->Backtrack(0);</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// Set the fixed variables first so that loading the problem will be faster.</span></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">for</span> (VariableIndex <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>(0); <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a> < problem_state.is_fixed().size(); ++<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>) {</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordflow">if</span> (problem_state.is_fixed()[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]) {</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">if</span> (!sat_solver->AddUnitClause(</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> sat::Literal(sat::BooleanVariable(<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>.value()),</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> problem_state.fixed_values()[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]))) {</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> }</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// Load the problem if not done yet.</span></div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">if</span> (first_time &&</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> !<a class="code hl_function" href="namespaceoperations__research_1_1sat.html#add13e122d8861d6cac9b9bb4a51cfcb7">LoadBooleanProblem</a>(problem_state.original_problem(), sat_solver)) {</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// Constrain the objective cost to be greater or equal to the lower bound,</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="comment">// and to be smaller than the upper bound. If enforcing the strictier upper</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="comment">// bound constraint leads to an UNSAT problem, it means the current solution</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// is proved optimal (if the solution is feasible, else the problem is proved</span></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// infeasible).</span></div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespaceoperations__research_1_1sat.html#a07c4372fa55782d13edd24b86130e3ba">AddObjectiveConstraint</a>(</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> problem_state.original_problem(),</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> problem_state.lower_bound() != <a class="code hl_variable" href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">std::numeric_limits<int64_t>::min</a>(),</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1math__opt.html#ab61209db5b13f0d424da009e414298fc">sat::Coefficient</a>(problem_state.lower_bound()),</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> problem_state.upper_bound() != <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::numeric_limits<int64_t>::max</a>(),</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1math__opt.html#ab61209db5b13f0d424da009e414298fc">sat::Coefficient</a>(problem_state.upper_bound() - 1), sat_solver)) {</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> }</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">// Adds the new binary clauses.</span></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> sat_solver->TrackBinaryClauses(<span class="keyword">true</span>);</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">if</span> (!sat_solver->AddBinaryClauses(problem_state.NewlyAddedBinaryClauses())) {</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> }</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> sat_solver->ClearNewlyAddedBinaryClauses();</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span>}</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span>} <span class="comment">// anonymous namespace</span></div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1bop.html#a2c3c1538ecc101963e5c92ff9bfb33bb"> 88</a></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_function" href="namespaceoperations__research_1_1bop.html#a2c3c1538ecc101963e5c92ff9bfb33bb">LoadStateProblemToSatSolver</a>(</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_problem_state.html">ProblemState</a>& problem_state, <a class="code hl_class" href="classoperations__research_1_1sat_1_1_sat_solver.html">sat::SatSolver</a>* sat_solver) {</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">if</span> (InternalLoadStateProblemToSatSolver(problem_state, sat_solver)) {</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374">BopOptimizerBase::CONTINUE</a>;</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordflow">return</span> problem_state.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>()</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> ? <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2">BopOptimizerBase::OPTIMAL_SOLUTION_FOUND</a></div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> : <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483">BopOptimizerBase::INFEASIBLE</a>;</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span>}</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1bop.html#a717f3da5a33db3ffe67861f8731b254a"> 99</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespaceoperations__research_1_1bop.html#a717f3da5a33db3ffe67861f8731b254a">ExtractLearnedInfoFromSatSolver</a>(<a class="code hl_class" href="classoperations__research_1_1sat_1_1_sat_solver.html">sat::SatSolver</a>* solver,</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a>* info) {</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<span class="keyword">nullptr</span> != solver);</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<span class="keyword">nullptr</span> != info);</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="comment">// This should never be called if the problem is UNSAT.</span></div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(!solver-><a class="code hl_function" href="classoperations__research_1_1sat_1_1_sat_solver.html#ad2a33e1d9335cce63548abed6b5c8aab">IsModelUnsat</a>());</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// Fixed variables.</span></div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> info-><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="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_trail.html">sat::Trail</a>& propagation_trail = solver-><a class="code hl_function" href="classoperations__research_1_1sat_1_1_sat_solver.html#a5b06f24fb581de78b321dfd793931439">LiteralTrail</a>();</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">const</span> <span class="keywordtype">int</span> root_size = solver-><a class="code hl_function" href="classoperations__research_1_1sat_1_1_sat_solver.html#ad63c4461a1384629cb99413c6df8b9ca">CurrentDecisionLevel</a>() == 0</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> ? propagation_trail.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_trail.html#a8ef12397d1682615bc3108c397734179">Index</a>()</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> : solver-><a class="code hl_function" href="classoperations__research_1_1sat_1_1_sat_solver.html#a5048581740d1affcc6168f56fe88ff58">Decisions</a>().front().trail_index;</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> trail_index = 0; trail_index < root_size; ++trail_index) {</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> info-><a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05">fixed_literals</a>.push_back(propagation_trail[trail_index]);</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// Binary clauses.</span></div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> info-><a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">binary_clauses</a> = solver-><a class="code hl_function" href="classoperations__research_1_1sat_1_1_sat_solver.html#a4e9c1f685afe26db1566eaa65724b40b">NewlyAddedBinaryClauses</a>();</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> solver-><a class="code hl_function" href="classoperations__research_1_1sat_1_1_sat_solver.html#afdb0cc1ac877cd981dcd3f0b0763e644">ClearNewlyAddedBinaryClauses</a>();</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span>}</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"><a class="line" href="namespaceoperations__research_1_1bop.html#a49c2b7c159260e338438fc2e167a0c3d"> 122</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="namespaceoperations__research_1_1bop.html#a49c2b7c159260e338438fc2e167a0c3d">SatAssignmentToBopSolution</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_variables_assignment.html">sat::VariablesAssignment</a>& assignment,</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</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="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(solution != <span class="keyword">nullptr</span>);</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="comment">// Only extract the variables of the initial problem.</span></div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <a class="code hl_define" href="base_2logging_8h.html#ae4db23f10f5d4aad6d735f5a74cd6f8c">CHECK_LE</a>(solution-><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>(), assignment.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_variables_assignment.html#ae19413c447377161d432f18d1323a037">NumberOfVariables</a>());</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">for</span> (sat::BooleanVariable <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>(0); <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a> < solution-><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>(); ++<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>) {</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(assignment.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_variables_assignment.html#a49e751eb6f0e9babd957889bb8e7472d">VariableIsAssigned</a>(<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>));</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = assignment.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_variables_assignment.html#a5300129913f51dcb0b1c531e3248490e">LiteralIsTrue</a>(<a class="code hl_class" href="classoperations__research_1_1sat_1_1_literal.html">sat::Literal</a>(<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, <span class="keyword">true</span>));</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">const</span> VariableIndex bop_var_id(<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>.value());</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> solution-><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a157d7e03cf5ef624646b9a0a80912abc">SetValue</a>(bop_var_id, <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>);</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>}</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span><span class="comment">// AdaptiveParameterValue</span></div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a5910cbe817fbb6a65be0c3ddf2534f35"> 139</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a5910cbe817fbb6a65be0c3ddf2534f35">AdaptiveParameterValue::AdaptiveParameterValue</a>(<span class="keywordtype">double</span> initial_value)</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> : value_(initial_value), num_changes_(0) {}</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4"> 142</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4">AdaptiveParameterValue::Reset</a>() { num_changes_ = 0; }</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"><a class="line" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#ab7ff2156358799e542088856d0629b4d"> 144</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#ab7ff2156358799e542088856d0629b4d">AdaptiveParameterValue::Increase</a>() {</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> ++num_changes_;</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">const</span> <span class="keywordtype">double</span> factor = 1.0 + 1.0 / (num_changes_ / 2.0 + 1);</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> value_ = <a class="code hl_variable" href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">std::min</a>(1.0 - (1.0 - value_) / factor, value_ * factor);</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span>}</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a1279941cc24e4b9a3f35ff075b7943ac"> 150</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a1279941cc24e4b9a3f35ff075b7943ac">AdaptiveParameterValue::Decrease</a>() {</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> ++num_changes_;</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">const</span> <span class="keywordtype">double</span> factor = 1.0 + 1.0 / (num_changes_ / 2.0 + 1);</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> value_ = <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::max</a>(value_ / factor, 1.0 - (1.0 - value_) * factor);</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>}</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="comment">// LubyAdaptiveParameterValue</span></div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a10c68558bcf57b104192de7b7e4bd76d"> 159</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a10c68558bcf57b104192de7b7e4bd76d">LubyAdaptiveParameterValue::LubyAdaptiveParameterValue</a>(<span class="keywordtype">double</span> initial_value)</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> : luby_id_(0),</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> luby_boost_(0),</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> luby_value_(0),</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> difficulties_(kMaxLubyIndex, <a class="code hl_class" href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html">AdaptiveParameterValue</a>(initial_value)) {</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4">Reset</a>();</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span>}</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4"> 167</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4">LubyAdaptiveParameterValue::Reset</a>() {</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> luby_id_ = 0;</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> luby_boost_ = 0;</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> luby_value_ = 0;</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < difficulties_.size(); ++i) {</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> difficulties_[i].Reset();</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> }</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span>}</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a8291583e9142df5b62f660a424daffba"> 176</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a8291583e9142df5b62f660a424daffba">LubyAdaptiveParameterValue::IncreaseParameter</a>() {</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">const</span> <span class="keywordtype">int</span> luby_msb = <a class="code hl_function" href="namespaceoperations__research.html#afa6ef9aef70f95b9d5bcee2c10937bc8">MostSignificantBitPosition64</a>(luby_value_);</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> difficulties_[luby_msb].Increase();</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> </div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#abb82bc89291c5c3ab40e5117b8a2e8ef"> 181</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#abb82bc89291c5c3ab40e5117b8a2e8ef">LubyAdaptiveParameterValue::DecreaseParameter</a>() {</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="keyword">const</span> <span class="keywordtype">int</span> luby_msb = <a class="code hl_function" href="namespaceoperations__research.html#afa6ef9aef70f95b9d5bcee2c10937bc8">MostSignificantBitPosition64</a>(luby_value_);</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> difficulties_[luby_msb].Decrease();</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"> 185</span> </div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a8143f86c8f0eab1ef9ba889d201439d8"> 186</a></span><span class="keywordtype">double</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a8143f86c8f0eab1ef9ba889d201439d8">LubyAdaptiveParameterValue::GetParameterValue</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">const</span> <span class="keywordtype">int</span> luby_msb = <a class="code hl_function" href="namespaceoperations__research.html#afa6ef9aef70f95b9d5bcee2c10937bc8">MostSignificantBitPosition64</a>(luby_value_);</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">return</span> difficulties_[luby_msb].value();</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>}</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a78c5079b85bdc9196166ff36c7761676"> 191</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a78c5079b85bdc9196166ff36c7761676">LubyAdaptiveParameterValue::BoostLuby</a>() {</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> ++luby_boost_;</div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordflow">return</span> luby_boost_ >= kMaxBoost;</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span>}</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#ac489923becd8061981981afc56893c07"> 196</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#ac489923becd8061981981afc56893c07">LubyAdaptiveParameterValue::UpdateLuby</a>() {</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> ++luby_id_;</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> luby_value_ = <a class="code hl_function" href="namespaceoperations__research_1_1sat.html#ab89c95fd9e5fe8176a7807d92872972e">sat::SUniv</a>(luby_id_) << luby_boost_;</div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span>}</div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span>} <span class="comment">// namespace bop</span></div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span>} <span class="comment">// namespace operations_research</span></div>
|
|
<div class="ttc" id="aalldiff__cst_8cc_html_a26e6db9bcc64b584051ecc28171ed11f"><div class="ttname"><a href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">max</a></div><div class="ttdeci">int64_t max</div><div class="ttdef"><b>Definition:</b> <a href="alldiff__cst_8cc_source.html#l00140">alldiff_cst.cc:140</a></div></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="abase_2logging_8h_html_a3e1cfef60e774a81f30eaddf26a3a274"><div class="ttname"><a href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a></div><div class="ttdeci">#define CHECK(condition)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00491">base/logging.h:491</a></div></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_ae4db23f10f5d4aad6d735f5a74cd6f8c"><div class="ttname"><a href="base_2logging_8h.html#ae4db23f10f5d4aad6d735f5a74cd6f8c">CHECK_LE</a></div><div class="ttdeci">#define CHECK_LE(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00700">base/logging.h:700</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_8h_html"><div class="ttname"><a href="boolean__problem_8h.html">boolean_problem.h</a></div></div>
|
|
<div class="ttc" id="abop__base_8h_html"><div class="ttname"><a href="bop__base_8h.html">bop_base.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="abop__util_8h_html"><div class="ttname"><a href="bop__util_8h.html">bop_util.h</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_adaptive_parameter_value_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html">operations_research::bop::AdaptiveParameterValue</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8h_source.html#l00049">bop_util.h:49</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_adaptive_parameter_value_html_a1279941cc24e4b9a3f35ff075b7943ac"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a1279941cc24e4b9a3f35ff075b7943ac">operations_research::bop::AdaptiveParameterValue::Decrease</a></div><div class="ttdeci">void Decrease()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00150">bop_util.cc:150</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_adaptive_parameter_value_html_a372de693ad40b3f42839c8ec6ac845f4"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4">operations_research::bop::AdaptiveParameterValue::Reset</a></div><div class="ttdeci">void Reset()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00142">bop_util.cc:142</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_adaptive_parameter_value_html_a5910cbe817fbb6a65be0c3ddf2534f35"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#a5910cbe817fbb6a65be0c3ddf2534f35">operations_research::bop::AdaptiveParameterValue::AdaptiveParameterValue</a></div><div class="ttdeci">AdaptiveParameterValue(double initial_value)</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00139">bop_util.cc:139</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_adaptive_parameter_value_html_ab7ff2156358799e542088856d0629b4d"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_adaptive_parameter_value.html#ab7ff2156358799e542088856d0629b4d">operations_research::bop::AdaptiveParameterValue::Increase</a></div><div class="ttdeci">void Increase()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00144">bop_util.cc:144</a></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_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_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_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_a157d7e03cf5ef624646b9a0a80912abc"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a157d7e03cf5ef624646b9a0a80912abc">operations_research::bop::BopSolution::SetValue</a></div><div class="ttdeci">void SetValue(VariableIndex var, bool value)</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00039">bop_solution.h:39</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a58f4b9e873b7c1c7d512bd9f7d1489d8">operations_research::bop::BopSolution::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00045">bop_solution.h:45</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_luby_adaptive_parameter_value_html_a10c68558bcf57b104192de7b7e4bd76d"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a10c68558bcf57b104192de7b7e4bd76d">operations_research::bop::LubyAdaptiveParameterValue::LubyAdaptiveParameterValue</a></div><div class="ttdeci">LubyAdaptiveParameterValue(double initial_value)</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00159">bop_util.cc:159</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_luby_adaptive_parameter_value_html_a372de693ad40b3f42839c8ec6ac845f4"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a372de693ad40b3f42839c8ec6ac845f4">operations_research::bop::LubyAdaptiveParameterValue::Reset</a></div><div class="ttdeci">void Reset()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00167">bop_util.cc:167</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_luby_adaptive_parameter_value_html_a78c5079b85bdc9196166ff36c7761676"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a78c5079b85bdc9196166ff36c7761676">operations_research::bop::LubyAdaptiveParameterValue::BoostLuby</a></div><div class="ttdeci">bool BoostLuby()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00191">bop_util.cc:191</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_luby_adaptive_parameter_value_html_a8143f86c8f0eab1ef9ba889d201439d8"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a8143f86c8f0eab1ef9ba889d201439d8">operations_research::bop::LubyAdaptiveParameterValue::GetParameterValue</a></div><div class="ttdeci">double GetParameterValue() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00186">bop_util.cc:186</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_luby_adaptive_parameter_value_html_a8291583e9142df5b62f660a424daffba"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#a8291583e9142df5b62f660a424daffba">operations_research::bop::LubyAdaptiveParameterValue::IncreaseParameter</a></div><div class="ttdeci">void IncreaseParameter()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00176">bop_util.cc:176</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_luby_adaptive_parameter_value_html_abb82bc89291c5c3ab40e5117b8a2e8ef"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#abb82bc89291c5c3ab40e5117b8a2e8ef">operations_research::bop::LubyAdaptiveParameterValue::DecreaseParameter</a></div><div class="ttdeci">void DecreaseParameter()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00181">bop_util.cc:181</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_luby_adaptive_parameter_value_html_ac489923becd8061981981afc56893c07"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_luby_adaptive_parameter_value.html#ac489923becd8061981981afc56893c07">operations_research::bop::LubyAdaptiveParameterValue::UpdateLuby</a></div><div class="ttdeci">void UpdateLuby()</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00196">bop_util.cc:196</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 & 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_1sat_1_1_literal_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_literal.html">operations_research::sat::Literal</a></div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00065">sat_base.h:65</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html">operations_research::sat::SatSolver</a></div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8h_source.html#l00058">sat_solver.h:58</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html_a4e9c1f685afe26db1566eaa65724b40b"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html#a4e9c1f685afe26db1566eaa65724b40b">operations_research::sat::SatSolver::NewlyAddedBinaryClauses</a></div><div class="ttdeci">const std::vector< BinaryClause > & NewlyAddedBinaryClauses()</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8cc_source.html#l00933">sat_solver.cc:933</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html_a5048581740d1affcc6168f56fe88ff58"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html#a5048581740d1affcc6168f56fe88ff58">operations_research::sat::SatSolver::Decisions</a></div><div class="ttdeci">const std::vector< Decision > & Decisions() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8h_source.html#l00360">sat_solver.h:360</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html_a5b06f24fb581de78b321dfd793931439"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html#a5b06f24fb581de78b321dfd793931439">operations_research::sat::SatSolver::LiteralTrail</a></div><div class="ttdeci">const Trail & LiteralTrail() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8h_source.html#l00362">sat_solver.h:362</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html_ad2a33e1d9335cce63548abed6b5c8aab"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html#ad2a33e1d9335cce63548abed6b5c8aab">operations_research::sat::SatSolver::IsModelUnsat</a></div><div class="ttdeci">bool IsModelUnsat() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8h_source.html#l00137">sat_solver.h:137</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html_ad63c4461a1384629cb99413c6df8b9ca"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html#ad63c4461a1384629cb99413c6df8b9ca">operations_research::sat::SatSolver::CurrentDecisionLevel</a></div><div class="ttdeci">int CurrentDecisionLevel() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8h_source.html#l00361">sat_solver.h:361</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_sat_solver_html_afdb0cc1ac877cd981dcd3f0b0763e644"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_sat_solver.html#afdb0cc1ac877cd981dcd3f0b0763e644">operations_research::sat::SatSolver::ClearNewlyAddedBinaryClauses</a></div><div class="ttdeci">void ClearNewlyAddedBinaryClauses()</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver_8cc_source.html#l00937">sat_solver.cc:937</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_trail_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_trail.html">operations_research::sat::Trail</a></div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00234">sat_base.h:234</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_trail_html_a8ef12397d1682615bc3108c397734179"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_trail.html#a8ef12397d1682615bc3108c397734179">operations_research::sat::Trail::Index</a></div><div class="ttdeci">int Index() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00379">sat_base.h:379</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_variables_assignment_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_variables_assignment.html">operations_research::sat::VariablesAssignment</a></div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00123">sat_base.h:123</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_variables_assignment_html_a49e751eb6f0e9babd957889bb8e7472d"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_variables_assignment.html#a49e751eb6f0e9babd957889bb8e7472d">operations_research::sat::VariablesAssignment::VariableIsAssigned</a></div><div class="ttdeci">bool VariableIsAssigned(BooleanVariable var) const</div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00159">sat_base.h:159</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_variables_assignment_html_a5300129913f51dcb0b1c531e3248490e"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_variables_assignment.html#a5300129913f51dcb0b1c531e3248490e">operations_research::sat::VariablesAssignment::LiteralIsTrue</a></div><div class="ttdeci">bool LiteralIsTrue(Literal literal) const</div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00151">sat_base.h:151</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_variables_assignment_html_ae19413c447377161d432f18d1323a037"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_variables_assignment.html#ae19413c447377161d432f18d1323a037">operations_research::sat::VariablesAssignment::NumberOfVariables</a></div><div class="ttdeci">int NumberOfVariables() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00171">sat_base.h:171</a></div></div>
|
|
<div class="ttc" id="ademon__profiler_8cc_html_ac072af30c4ffbc834bb4c681f6ecb514"><div class="ttname"><a href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a></div><div class="ttdeci">int64_t value</div><div class="ttdef"><b>Definition:</b> <a href="demon__profiler_8cc_source.html#l00044">demon_profiler.cc:44</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="aintegral__types_8h_html"><div class="ttname"><a href="integral__types_8h.html">integral_types.h</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a2c3c1538ecc101963e5c92ff9bfb33bb"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a2c3c1538ecc101963e5c92ff9bfb33bb">operations_research::bop::LoadStateProblemToSatSolver</a></div><div class="ttdeci">BopOptimizerBase::Status LoadStateProblemToSatSolver(const ProblemState &problem_state, sat::SatSolver *sat_solver)</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00088">bop_util.cc:88</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a49c2b7c159260e338438fc2e167a0c3d"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a49c2b7c159260e338438fc2e167a0c3d">operations_research::bop::SatAssignmentToBopSolution</a></div><div class="ttdeci">void SatAssignmentToBopSolution(const sat::VariablesAssignment &assignment, BopSolution *solution)</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00122">bop_util.cc:122</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a717f3da5a33db3ffe67861f8731b254a"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a717f3da5a33db3ffe67861f8731b254a">operations_research::bop::ExtractLearnedInfoFromSatSolver</a></div><div class="ttdeci">void ExtractLearnedInfoFromSatSolver(sat::SatSolver *solver, LearnedInfo *info)</div><div class="ttdef"><b>Definition:</b> <a href="bop__util_8cc_source.html#l00099">bop_util.cc:99</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1math__opt_html_ab61209db5b13f0d424da009e414298fc"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#ab61209db5b13f0d424da009e414298fc">operations_research::math_opt::Coefficient</a></div><div class="ttdeci">std::tuple< int64_t, int64_t, const double > Coefficient</div><div class="ttdef"><b>Definition:</b> <a href="sparse__collection__matchers_8h_source.html#l00061">sparse_collection_matchers.h:61</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a07c4372fa55782d13edd24b86130e3ba"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a07c4372fa55782d13edd24b86130e3ba">operations_research::sat::AddObjectiveConstraint</a></div><div class="ttdeci">bool AddObjectiveConstraint(const LinearBooleanProblem &problem, bool use_lower_bound, Coefficient lower_bound, bool use_upper_bound, Coefficient upper_bound, SatSolver *solver)</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8cc_source.html#l00338">boolean_problem.cc:338</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_ab89c95fd9e5fe8176a7807d92872972e"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#ab89c95fd9e5fe8176a7807d92872972e">operations_research::sat::SUniv</a></div><div class="ttdeci">int SUniv(int i)</div><div class="ttdef"><b>Definition:</b> <a href="restart_8h_source.html#l00085">restart.h:85</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_add13e122d8861d6cac9b9bb4a51cfcb7"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#add13e122d8861d6cac9b9bb4a51cfcb7">operations_research::sat::LoadBooleanProblem</a></div><div class="ttdeci">bool LoadBooleanProblem(const LinearBooleanProblem &problem, SatSolver *solver)</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8cc_source.html#l00221">boolean_problem.cc:221</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="anamespaceoperations__research_html_afa6ef9aef70f95b9d5bcee2c10937bc8"><div class="ttname"><a href="namespaceoperations__research.html#afa6ef9aef70f95b9d5bcee2c10937bc8">operations_research::MostSignificantBitPosition64</a></div><div class="ttdeci">int MostSignificantBitPosition64(uint64_t n)</div><div class="ttdef"><b>Definition:</b> <a href="bitset_8h_source.html#l00231">bitset.h:231</a></div></div>
|
|
<div class="ttc" id="asat__solver_8h_html"><div class="ttname"><a href="sat__solver_8h.html">sat_solver.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< sat::Literal > 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_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< sat::BinaryClause > 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><!-- 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__util_8cc.html">bop_util.cc</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.2 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|