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