428 lines
85 KiB
HTML
428 lines
85 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.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.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&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__base_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_base.cc</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="bop__base_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__base_8h.html">ortools/bop/bop_base.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 <cstdint></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <limits></span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include <string></span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include <vector></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 "absl/synchronization/mutex.h"</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</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="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1bop.html"> 25</a></span><span class="keyword">namespace </span>bop {</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span>using ::operations_research::sat::LinearBooleanProblem;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span>using ::operations_research::sat::LinearObjective;</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#ad04aac22ccceca7709adc110eda9a7c5"> 30</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#ad04aac22ccceca7709adc110eda9a7c5">BopOptimizerBase::BopOptimizerBase</a>(<span class="keyword">const</span> std::string& <a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>)</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> : name_(<a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>), stats_(<a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>) {</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_define" href="stats_8h.html#a9995704aaaf45fc21e08c847551a8d04">SCOPED_TIME_STAT</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="l00033" name="l00033"></a><span class="lineno"> 33</span>}</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a9f74c41926e861d667e124362fdab85a"> 35</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a9f74c41926e861d667e124362fdab85a">BopOptimizerBase::~BopOptimizerBase</a>() {</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_define" href="stats_8h.html#a3c3e6b102f0d91c523099325c98e1887">IF_STATS_ENABLED</a>(<a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << <a class="code hl_variable" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a7c6fc06ca542eed0ff0b6ed4b1ecbcda">stats_</a>.<a class="code hl_function" href="classoperations__research_1_1_stats_group.html#af9bc435481ae9e6e60d66a65d5394a7f">StatString</a>());</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>}</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a251e0a163e38833f5ac06582342143bd"> 39</a></span>std::string <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a251e0a163e38833f5ac06582342143bd">BopOptimizerBase::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="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">switch</span> (<a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>) {</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">case</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="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">return</span> <span class="stringliteral">"OPTIMAL_SOLUTION_FOUND"</span>;</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">case</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="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">return</span> <span class="stringliteral">"SOLUTION_FOUND"</span>;</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">case</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="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">return</span> <span class="stringliteral">"INFEASIBLE"</span>;</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">case</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="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordflow">return</span> <span class="stringliteral">"LIMIT_REACHED"</span>;</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">case</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="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> <span class="stringliteral">"INFORMATION_FOUND"</span>;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">case</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="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">return</span> <span class="stringliteral">"CONTINUE"</span>;</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">case</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="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">return</span> <span class="stringliteral">"ABORT"</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> <span class="comment">// Fallback. We don't use "default:" so the compiler will return an error</span></div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// if we forgot one enum case above.</span></div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_define" href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a>(DFATAL) << <span class="stringliteral">"Invalid Status "</span> << <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(<a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>);</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">return</span> <span class="stringliteral">"UNKNOWN Status"</span>;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</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><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="comment">// ProblemState</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">const</span> int64_t <a class="code hl_variable" href="classoperations__research_1_1bop_1_1_problem_state.html#a875589eca4ea515dd6e9e51bd2b9cb53">ProblemState::kInitialStampValue</a>(0);</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#abcc8b7012186473601417334f669b0ae"> 67</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#abcc8b7012186473601417334f669b0ae">ProblemState::ProblemState</a>(<span class="keyword">const</span> LinearBooleanProblem& problem)</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> : original_problem_(problem),</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> parameters_(),</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> update_stamp_(kInitialStampValue + 1),</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> is_fixed_(problem.num_variables(), false),</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> fixed_values_(problem.num_variables(), false),</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> lp_values_(),</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> solution_(problem, <span class="stringliteral">"AllZero"</span>),</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> assignment_preference_(),</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> lower_bound_(<a class="code hl_namespace" href="namespacestd.html">std</a>::numeric_limits<int64_t>::<a class="code hl_variable" href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">min</a>()),</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> upper_bound_(<a class="code hl_namespace" href="namespacestd.html">std</a>::numeric_limits<int64_t>::<a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">max</a>()) {</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// TODO(user): Extract to a function used by all solvers.</span></div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="comment">// Compute trivial unscaled lower bound.</span></div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">const</span> LinearObjective& objective = problem.objective();</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> lower_bound_ = 0;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < objective.coefficients_size(); ++i) {</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// Fix template version for or-tools.</span></div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> lower_bound_ += std::min<int64_t>(int64_t{0}, objective.coefficients(i));</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> upper_bound_ = solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>() ? solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a9f0494e519e93f67f62ba4b76fde1c56">GetCost</a>()</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> : <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::numeric_limits<int64_t>::max</a>();</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span>}</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="comment">// TODO(user): refactor this to not rely on the optimization status.</span></div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="comment">// All the information can be encoded in the learned_info bounds.</span></div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada"> 92</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada">ProblemState::MergeLearnedInfo</a>(</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">const</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a>& learned_info,</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</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="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">const</span> std::string kIndent(25, <span class="charliteral">' '</span>);</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="keywordtype">bool</span> new_lp_values = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">if</span> (!learned_info.<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#a644718bb2fb240de962dc3c9a1fdf0dc">empty</a>()) {</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">if</span> (lp_values_ != learned_info.<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="l00100" name="l00100"></a><span class="lineno"> 100</span> lp_values_ = learned_info.<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="l00101" name="l00101"></a><span class="lineno"> 101</span> new_lp_values = <span class="keyword">true</span>;</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#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << kIndent + <span class="stringliteral">"New LP values."</span>;</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> }</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"> 106</span> <span class="keywordtype">bool</span> new_binary_clauses = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">if</span> (!learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">binary_clauses</a>.empty()) {</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">const</span> <span class="keywordtype">int</span> old_num = binary_clause_manager_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a235d38393e2379eb6a016446341d2102">NumClauses</a>();</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">for</span> (<a class="code hl_struct" href="structoperations__research_1_1sat_1_1_binary_clause.html">sat::BinaryClause</a> c : learned_info.<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="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">const</span> <span class="keywordtype">int</span> num_vars = original_problem_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html#ae235e7298a32fce3a6836aee49706bd0">num_variables</a>();</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">if</span> (c.<a class="code hl_variable" href="structoperations__research_1_1sat_1_1_binary_clause.html#a886d202fca076745c336601d66363bb9">a</a>.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_literal.html#a6a5dcff82096cd7a7147bf996dbaa5a8">Variable</a>() < num_vars && c.<a class="code hl_variable" href="structoperations__research_1_1sat_1_1_binary_clause.html#a477754d976ebc5e37cccff698e299613">b</a>.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_literal.html#a6a5dcff82096cd7a7147bf996dbaa5a8">Variable</a>() < num_vars) {</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> binary_clause_manager_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a4690b2e5ad68f70322cca80950f5bf7d">Add</a>(c);</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> }</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">if</span> (binary_clause_manager_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a235d38393e2379eb6a016446341d2102">NumClauses</a>() > old_num) {</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> new_binary_clauses = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << kIndent + <span class="stringliteral">"Num binary clauses: "</span></div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> << binary_clause_manager_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a235d38393e2379eb6a016446341d2102">NumClauses</a>();</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</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"> 122</span> <span class="keywordtype">bool</span> new_solution = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">if</span> (learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">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="l00124" name="l00124"></a><span class="lineno"> 124</span> (!solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>() ||</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">solution</a>.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a9f0494e519e93f67f62ba4b76fde1c56">GetCost</a>() < solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a9f0494e519e93f67f62ba4b76fde1c56">GetCost</a>())) {</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> solution_ = learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">solution</a>;</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> new_solution = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << kIndent + <span class="stringliteral">"New solution."</span>;</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"> 130</span> </div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordtype">bool</span> new_lower_bound = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">if</span> (learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f">lower_bound</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="l00133" name="l00133"></a><span class="lineno"> 133</span> lower_bound_ = learned_info.<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="l00134" name="l00134"></a><span class="lineno"> 134</span> new_lower_bound = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << kIndent + <span class="stringliteral">"New lower bound."</span>;</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordflow">if</span> (solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>()) {</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> upper_bound_ = <a class="code hl_variable" href="alldiff__cst_8cc.html#ad10edae0a852d72fb76afb1c77735045">std::min</a>(<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</a>(), solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a9f0494e519e93f67f62ba4b76fde1c56">GetCost</a>());</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</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="l00141" name="l00141"></a><span class="lineno"> 141</span> (<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</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="l00142" name="l00142"></a><span class="lineno"> 142</span> parameters_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_parameters.html#a5d03e03b75939567e1ce7a2bdf18187a">relative_gap_limit</a>() *</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::max</a>(std::abs(<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</a>()), std::abs(<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="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// The lower bound might be greater that the cost of a feasible solution</span></div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// due to rounding errors in the problem scaling and Glop.</span></div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="comment">// As a feasible solution was found, the solution is proved optimal.</span></div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</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="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"> 150</span> </div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// Merge fixed variables. Note that variables added during search, i.e. not</span></div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="comment">// in the original problem, are ignored.</span></div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordtype">int</span> num_newly_fixed_variables = 0;</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_literal.html">sat::Literal</a> <a class="code hl_variable" href="optimization_8cc.html#af63dcc00f2023fdf498e0829e6fb8a6b">literal</a> : learned_info.<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="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">const</span> VariableIndex <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>(<a class="code hl_variable" href="optimization_8cc.html#af63dcc00f2023fdf498e0829e6fb8a6b">literal</a>.Variable().value());</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a> >= original_problem_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html#ae235e7298a32fce3a6836aee49706bd0">num_variables</a>()) {</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = <a class="code hl_variable" href="optimization_8cc.html#af63dcc00f2023fdf498e0829e6fb8a6b">literal</a>.IsPositive();</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keywordflow">if</span> (is_fixed_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]) {</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">if</span> (fixed_values_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>] != <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</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> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> }</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> is_fixed_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>] = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> fixed_values_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>] = <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> ++num_newly_fixed_variables;</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> }</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">if</span> (num_newly_fixed_variables > 0) {</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordtype">int</span> num_fixed_variables = 0;</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ab6ce57c9f5711fa2cf5155b468c333ac">is_fixed</a> : is_fixed_) {</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ab6ce57c9f5711fa2cf5155b468c333ac">is_fixed</a>) {</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> ++num_fixed_variables;</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> }</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << kIndent << num_newly_fixed_variables</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> << <span class="stringliteral">" newly fixed variables ("</span> << num_fixed_variables << <span class="stringliteral">" / "</span></div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> << is_fixed_.size() << <span class="stringliteral">")."</span>;</div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="keywordflow">if</span> (num_fixed_variables == is_fixed_.size()) {</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="comment">// Set the solution to the fixed variables.</span></div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_solution.html">BopSolution</a> fixed_solution = solution_;</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</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> < is_fixed_.size(); ++<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>) {</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> fixed_solution.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a157d7e03cf5ef624646b9a0a80912abc">SetValue</a>(<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, fixed_values_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]);</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> }</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordflow">if</span> (fixed_solution.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>()) {</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> solution_ = fixed_solution;</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> <span class="keywordflow">if</span> (solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>()) {</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</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="l00192" name="l00192"></a><span class="lineno"> 192</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << kIndent << <span class="stringliteral">"Optimal"</span>;</div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</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="l00195" name="l00195"></a><span class="lineno"> 195</span> }</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> }</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> </div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="keywordtype">bool</span> known_status = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">if</span> (optimization_status == <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="l00201" name="l00201"></a><span class="lineno"> 201</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="l00202" name="l00202"></a><span class="lineno"> 202</span> known_status = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (optimization_status == <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="l00204" name="l00204"></a><span class="lineno"> 204</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="l00205" name="l00205"></a><span class="lineno"> 205</span> known_status = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> }</div>
|
|
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> </div>
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> updated = new_lp_values || new_binary_clauses || new_solution ||</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> new_lower_bound || num_newly_fixed_variables > 0 ||</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> known_status;</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keywordflow">if</span> (updated) ++update_stamp_;</div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keywordflow">return</span> updated;</div>
|
|
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span>}</div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> </div>
|
|
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a529183bc82496d0c83c76d9438999acd"> 215</a></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">ProblemState::GetLearnedInfo</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a> learned_info(original_problem_);</div>
|
|
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</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> < is_fixed_.<a class="code hl_function" href="classabsl_1_1_strong_vector.html#a60304b65bf89363bcc3165d3cde67f86">size</a>(); ++<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>) {</div>
|
|
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">if</span> (is_fixed_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]) {</div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a39891d16cd1cc89fb901e126ea4dcf05">fixed_literals</a>.push_back(</div>
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <a class="code hl_class" href="classoperations__research_1_1sat_1_1_literal.html">sat::Literal</a>(sat::BooleanVariable(<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>.value()), fixed_values_[<a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>]));</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> }</div>
|
|
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> }</div>
|
|
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">solution</a> = solution_;</div>
|
|
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a8e4368b4553131cf24b49b9de6e6189f">lower_bound</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="l00225" name="l00225"></a><span class="lineno"> 225</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#a92c51be8c0b7ed3142c363875d361967">lp_values</a> = lp_values_;</div>
|
|
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#adb313aa020fc4cd7fdf4504c6d0f51c9">binary_clauses</a> = <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a502bf851b64f372f3388d57abbb2fee4">NewlyAddedBinaryClauses</a>();</div>
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">return</span> learned_info;</div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span>}</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a3efa71f535fb21ac2a5ad48427d9598b"> 231</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a3efa71f535fb21ac2a5ad48427d9598b">ProblemState::MarkAsOptimal</a>() {</div>
|
|
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>());</div>
|
|
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> lower_bound_ = <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="l00234" name="l00234"></a><span class="lineno"> 234</span> ++update_stamp_;</div>
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span>}</div>
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a49778557d9d936862216e244b7b1d9cf"> 237</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a49778557d9d936862216e244b7b1d9cf">ProblemState::MarkAsInfeasible</a>() {</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="comment">// Mark as infeasible, i.e. set a lower_bound greater than the upper_bound.</span></div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(!solution_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>());</div>
|
|
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adb0496e18c263c65d88c43830b8b205b">upper_bound</a>() == <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::numeric_limits<int64_t>::max</a>()) {</div>
|
|
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> lower_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="l00242" name="l00242"></a><span class="lineno"> 242</span> upper_bound_ = <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::numeric_limits<int64_t>::max</a>() - 1;</div>
|
|
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> lower_bound_ = upper_bound_ - 1;</div>
|
|
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> }</div>
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> ++update_stamp_;</div>
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span>}</div>
|
|
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> </div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#a502bf851b64f372f3388d57abbb2fee4"> 249</a></span><span class="keyword">const</span> std::vector<sat::BinaryClause>& <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a502bf851b64f372f3388d57abbb2fee4">ProblemState::NewlyAddedBinaryClauses</a>()<span class="keyword"></span></div>
|
|
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span><span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keywordflow">return</span> binary_clause_manager_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a5b8bd742e2d44b9c3dbd7abd9f2546e9">newly_added</a>();</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span>}</div>
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> </div>
|
|
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_problem_state.html#ad4d586087a3c750cd7dde62209cbbe07"> 254</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#ad4d586087a3c750cd7dde62209cbbe07">ProblemState::SynchronizationDone</a>() {</div>
|
|
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> binary_clause_manager_.<a class="code hl_function" href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a47e143bc6df345d913315f79e0c3d290">ClearNewlyAdded</a>();</div>
|
|
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span>}</div>
|
|
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span>} <span class="comment">// namespace bop</span></div>
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</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#l00495">base/logging.h:495</a></div></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_accad43a85d781d53381cd53a9894b6ae"><div class="ttname"><a href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a></div><div class="ttdeci">#define LOG(severity)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00420">base/logging.h:420</a></div></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_afcaa7cadd41741bb855c2ada1d2ef927"><div class="ttname"><a href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a></div><div class="ttdeci">#define VLOG(verboselevel)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00983">base/logging.h:983</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="aclassabsl_1_1_strong_vector_html_a60304b65bf89363bcc3165d3cde67f86"><div class="ttname"><a href="classabsl_1_1_strong_vector.html#a60304b65bf89363bcc3165d3cde67f86">absl::StrongVector::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdef"><b>Definition:</b> <a href="strong__vector_8h_source.html#l00147">strong_vector.h:147</a></div></div>
|
|
<div class="ttc" id="aclassabsl_1_1_strong_vector_html_a644718bb2fb240de962dc3c9a1fdf0dc"><div class="ttname"><a href="classabsl_1_1_strong_vector.html#a644718bb2fb240de962dc3c9a1fdf0dc">absl::StrongVector::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="strong__vector_8h_source.html#l00156">strong_vector.h:156</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1_stats_group_html_af9bc435481ae9e6e60d66a65d5394a7f"><div class="ttname"><a href="classoperations__research_1_1_stats_group.html#af9bc435481ae9e6e60d66a65d5394a7f">operations_research::StatsGroup::StatString</a></div><div class="ttdeci">std::string StatString() const</div><div class="ttdef"><b>Definition:</b> <a href="stats_8cc_source.html#l00071">stats.cc:71</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_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_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_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 &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_a5d03e03b75939567e1ce7a2bdf18187a"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_parameters.html#a5d03e03b75939567e1ce7a2bdf18187a">operations_research::bop::BopParameters::relative_gap_limit</a></div><div class="ttdeci">double relative_gap_limit() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__parameters_8pb_8h_source.html#l01470">bop_parameters.pb.h:1470</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_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_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_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 &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< sat::BinaryClause > & 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_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_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< VariableIndex, bool > & 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 &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_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_1sat_1_1_binary_clause_manager_html_a235d38393e2379eb6a016446341d2102"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a235d38393e2379eb6a016446341d2102">operations_research::sat::BinaryClauseManager::NumClauses</a></div><div class="ttdeci">int NumClauses() const</div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00388">clause.h:388</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_binary_clause_manager_html_a4690b2e5ad68f70322cca80950f5bf7d"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a4690b2e5ad68f70322cca80950f5bf7d">operations_research::sat::BinaryClauseManager::Add</a></div><div class="ttdeci">bool Add(BinaryClause c)</div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00392">clause.h:392</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_binary_clause_manager_html_a47e143bc6df345d913315f79e0c3d290"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a47e143bc6df345d913315f79e0c3d290">operations_research::sat::BinaryClauseManager::ClearNewlyAdded</a></div><div class="ttdeci">void ClearNewlyAdded()</div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00405">clause.h:405</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_binary_clause_manager_html_a5b8bd742e2d44b9c3dbd7abd9f2546e9"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_binary_clause_manager.html#a5b8bd742e2d44b9c3dbd7abd9f2546e9">operations_research::sat::BinaryClauseManager::newly_added</a></div><div class="ttdeci">const std::vector< BinaryClause > & newly_added() const</div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00404">clause.h:404</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_linear_boolean_problem_html_ae235e7298a32fce3a6836aee49706bd0"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_linear_boolean_problem.html#ae235e7298a32fce3a6836aee49706bd0">operations_research::sat::LinearBooleanProblem::num_variables</a></div><div class="ttdeci">int32_t num_variables() const</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8pb_8h_source.html#l01511">boolean_problem.pb.h:1511</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#l00066">sat_base.h:66</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_literal_html_a6a5dcff82096cd7a7147bf996dbaa5a8"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_literal.html#a6a5dcff82096cd7a7147bf996dbaa5a8">operations_research::sat::Literal::Variable</a></div><div class="ttdeci">BooleanVariable Variable() const</div><div class="ttdef"><b>Definition:</b> <a href="sat__base_8h_source.html#l00082">sat_base.h:82</a></div></div>
|
|
<div class="ttc" id="adefault__search_8cc_html_ac673bc430bdc3fdaa09f7becf98ef267"><div class="ttname"><a href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a></div><div class="ttdeci">const std::string name</div><div class="ttdef"><b>Definition:</b> <a href="default__search_8cc_source.html#l00813">default_search.cc:813</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="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="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="aoptimization_8cc_html_af63dcc00f2023fdf498e0829e6fb8a6b"><div class="ttname"><a href="optimization_8cc.html#af63dcc00f2023fdf498e0829e6fb8a6b">literal</a></div><div class="ttdeci">Literal literal</div><div class="ttdef"><b>Definition:</b> <a href="optimization_8cc_source.html#l00085">optimization.cc:85</a></div></div>
|
|
<div class="ttc" id="astats_8h_html_a3c3e6b102f0d91c523099325c98e1887"><div class="ttname"><a href="stats_8h.html#a3c3e6b102f0d91c523099325c98e1887">IF_STATS_ENABLED</a></div><div class="ttdeci">#define IF_STATS_ENABLED(instructions)</div><div class="ttdef"><b>Definition:</b> <a href="stats_8h_source.html#l00437">stats.h:437</a></div></div>
|
|
<div class="ttc" id="astats_8h_html_a9995704aaaf45fc21e08c847551a8d04"><div class="ttname"><a href="stats_8h.html#a9995704aaaf45fc21e08c847551a8d04">SCOPED_TIME_STAT</a></div><div class="ttdeci">#define SCOPED_TIME_STAT(stats)</div><div class="ttdef"><b>Definition:</b> <a href="stats_8h_source.html#l00438">stats.h:438</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_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_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 class="ttc" id="astructoperations__research_1_1sat_1_1_binary_clause_html"><div class="ttname"><a href="structoperations__research_1_1sat_1_1_binary_clause.html">operations_research::sat::BinaryClause</a></div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00376">clause.h:376</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1sat_1_1_binary_clause_html_a477754d976ebc5e37cccff698e299613"><div class="ttname"><a href="structoperations__research_1_1sat_1_1_binary_clause.html#a477754d976ebc5e37cccff698e299613">operations_research::sat::BinaryClause::b</a></div><div class="ttdeci">Literal b</div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00381">clause.h:381</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1sat_1_1_binary_clause_html_a886d202fca076745c336601d66363bb9"><div class="ttname"><a href="structoperations__research_1_1sat_1_1_binary_clause.html#a886d202fca076745c336601d66363bb9">operations_research::sat::BinaryClause::a</a></div><div class="ttdeci">Literal a</div><div class="ttdef"><b>Definition:</b> <a href="clause_8h_source.html#l00380">clause.h:380</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_8cc.html">bop_base.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.3 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|