370 lines
69 KiB
HTML
370 lines
69 KiB
HTML
<!-- HTML header for doxygen 1.8.18-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.3"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OR-Tools: bop_solver.cc Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">OR-Tools
|
|
 <span id="projectnumber">9.3</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.3 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('bop__solver_8cc_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">bop_solver.cc</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="bop__solver_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2010-2021 Google LLC</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// you may not use this file except in compliance with the License.</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// You may obtain a copy of the License at</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">// See the License for the specific language governing permissions and</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// limitations under the License.</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include "<a class="code" href="bop__solver_8h.html">ortools/bop/bop_solver.h</a>"</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <string></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include "google/protobuf/text_format.h"</span></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include "<a class="code" href="commandlineflags_8h.html">ortools/base/commandlineflags.h</a>"</span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include "<a class="code" href="stl__util_8h.html">ortools/base/stl_util.h</a>"</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include "<a class="code" href="bop__fs_8h.html">ortools/bop/bop_fs.h</a>"</span></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include "<a class="code" href="bop__lns_8h.html">ortools/bop/bop_lns.h</a>"</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include "<a class="code" href="bop__ls_8h.html">ortools/bop/bop_ls.h</a>"</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include "<a class="code" href="bop__portfolio_8h.html">ortools/bop/bop_portfolio.h</a>"</span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include "<a class="code" href="bop__util_8h.html">ortools/bop/bop_util.h</a>"</span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include "<a class="code" href="complete__optimizer_8h.html">ortools/bop/complete_optimizer.h</a>"</span></div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include "<a class="code" href="lp__solver_8h.html">ortools/glop/lp_solver.h</a>"</span></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "<a class="code" href="lp__print__utils_8h.html">ortools/lp_data/lp_print_utils.h</a>"</span></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include "<a class="code" href="boolean__problem_8h.html">ortools/sat/boolean_problem.h</a>"</span></div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include "<a class="code" href="sat_2lp__utils_8h.html">ortools/sat/lp_utils.h</a>"</span></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include "<a class="code" href="sat__solver_8h.html">ortools/sat/sat_solver.h</a>"</span></div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include "<a class="code" href="bitset_8h.html">ortools/util/bitset.h</a>"</span></div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">namespace </span>bop {</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>using ::operations_research::sat::LinearBooleanProblem;</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">namespace </span>{</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>using ::operations_research::glop::ColIndex;</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a4dc8ae0f97c4110f3cc770715b2bbd12">using ::operations_research::glop::DenseRow</a>;</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="comment">// Updates the problem_state when the solution is proved optimal or the problem</span></div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="comment">// is proved infeasible.</span></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="comment">// Returns true when the problem_state has been changed.</span></div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="keywordtype">bool</span> UpdateProblemStateBasedOnStatus(<a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">BopOptimizerBase::Status</a> <a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>,</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> ProblemState* problem_state) {</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<span class="keyword">nullptr</span> != problem_state);</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">if</span> (<a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2">BopOptimizerBase::OPTIMAL_SOLUTION_FOUND</a> == <a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>) {</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> problem_state->MarkAsOptimal();</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">if</span> (<a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483">BopOptimizerBase::INFEASIBLE</a> == <a class="code hl_variable" href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a>) {</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> problem_state->MarkAsInfeasible();</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>}</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span>} <span class="comment">// anonymous namespace</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="comment">// BopSolver</span></div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#a48cfda165ade5c43bda0114c8b952b1c"> 70</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a48cfda165ade5c43bda0114c8b952b1c">BopSolver::BopSolver</a>(<span class="keyword">const</span> LinearBooleanProblem& problem)</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> : problem_(problem),</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> problem_state_(problem),</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> parameters_(),</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> stats_(<span class="stringliteral">"BopSolver"</span>) {</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_define" href="stats_8h.html#a9995704aaaf45fc21e08c847551a8d04">SCOPED_TIME_STAT</a>(&stats_);</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span>}</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#a056ab84b7459147d3c4ba7861dead917"> 78</a></span><a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a056ab84b7459147d3c4ba7861dead917">BopSolver::~BopSolver</a>() { <a class="code hl_define" href="stats_8h.html#a3c3e6b102f0d91c523099325c98e1887">IF_STATS_ENABLED</a>(<a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << stats_.<a class="code hl_function" href="classoperations__research_1_1_stats_group.html#af9bc435481ae9e6e60d66a65d5394a7f">StatString</a>()); }</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#a297d0f5d50f85f560a9d828a04cf1e42"> 80</a></span><a class="code hl_enumeration" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">BopSolveStatus</a> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a297d0f5d50f85f560a9d828a04cf1e42">BopSolver::Solve</a>() {</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> std::unique_ptr<TimeLimit> <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a> =</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_function" href="classoperations__research_1_1_time_limit.html#a0ea9620e492bd75ea7e2fcded8f1de8b">TimeLimit::FromParameters</a>(parameters_);</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207">SolveWithTimeLimit</a>(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>.get());</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>}</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207"> 86</a></span><a class="code hl_enumeration" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">BopSolveStatus</a> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207">BopSolver::SolveWithTimeLimit</a>(<a class="code hl_class" href="classoperations__research_1_1_time_limit.html">TimeLimit</a>* <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>) {</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a> != <span class="keyword">nullptr</span>);</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_define" href="stats_8h.html#a9995704aaaf45fc21e08c847551a8d04">SCOPED_TIME_STAT</a>(&stats_);</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> absl::Status valid = <a class="code hl_function" href="namespaceoperations__research_1_1sat.html#a6004b20c87a172cc7d18754489157868">sat::ValidateBooleanProblem</a>(problem_);</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">if</span> (!valid.ok()) {</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <a class="code hl_define" href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a>(<a class="code hl_variable" href="log__severity_8h.html#ac9bcbe19995a8140cd4ec61773cd6e67">ERROR</a>) << <span class="stringliteral">"Invalid Boolean problem: "</span> << valid.message();</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915add8d8537e1472a5e432749c5abf45c82">BopSolveStatus::INVALID_PROBLEM</a>;</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> UpdateParameters();</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">return</span> parameters_.number_of_solvers() > 1</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> ? InternalMultithreadSolver(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>)</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> : InternalMonothreadSolver(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>);</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span>}</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span><a class="code hl_enumeration" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">BopSolveStatus</a> BopSolver::InternalMonothreadSolver(<a class="code hl_class" href="classoperations__research_1_1_time_limit.html">TimeLimit</a>* <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>) {</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a> != <span class="keyword">nullptr</span>);</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a> learned_info(problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a831918c2aa4802563301addc46efd0eb">original_problem</a>());</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_portfolio_optimizer.html">PortfolioOptimizer</a> optimizer(problem_state_, parameters_,</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> parameters_.solver_optimizer_sets(0),</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="stringliteral">"Portfolio"</span>);</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">while</span> (!<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>->LimitReached()) {</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">const</span> <a class="code hl_enumeration" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">BopOptimizerBase::Status</a> optimization_status = optimizer.Optimize(</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> parameters_, problem_state_, &learned_info, <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>);</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada">MergeLearnedInfo</a>(learned_info, optimization_status);</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">if</span> (optimization_status == <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b">BopOptimizerBase::SOLUTION_FOUND</a>) {</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>());</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a5a7e1c8c6e190403753beff6168d66a8">GetScaledCost</a>()</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> << <span class="stringliteral">" New solution! "</span>;</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordflow">if</span> (problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a3349a9854b8b5e6e7f3807e293354ad5">IsOptimal</a>()) {</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>());</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915a4bd9906264b0d3d68d0a39c3536d9b66">BopSolveStatus::OPTIMAL_SOLUTION_FOUND</a>;</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#afa100093981de3b019a7d5d6c7533a5a">IsInfeasible</a>()) {</div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915ac28ceda32c9534dc751298eca22f5da3">BopSolveStatus::INFEASIBLE_PROBLEM</a>;</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> }</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">if</span> (optimization_status == <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096">BopOptimizerBase::ABORT</a>) {</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> }</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> learned_info.Clear();</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> }</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keywordflow">return</span> problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>()</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> ? <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915af1b7de0cef3266eb7fad94409a745570">BopSolveStatus::FEASIBLE_SOLUTION_FOUND</a></div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> : <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915a3fe2f6b2fc16582a30e00307f48d587b">BopSolveStatus::NO_SOLUTION_FOUND</a>;</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span>}</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span><a class="code hl_enumeration" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">BopSolveStatus</a> BopSolver::InternalMultithreadSolver(TimeLimit* <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>) {</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a> != <span class="keyword">nullptr</span>);</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="comment">// Not implemented.</span></div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915add8d8537e1472a5e432749c5abf45c82">BopSolveStatus::INVALID_PROBLEM</a>;</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span>}</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#ac4a91d6ace463133b9dd98c31e3aaa0c"> 144</a></span><a class="code hl_enumeration" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">BopSolveStatus</a> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a297d0f5d50f85f560a9d828a04cf1e42">BopSolver::Solve</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_solution.html">BopSolution</a>& first_solution) {</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> std::unique_ptr<TimeLimit> <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a> =</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_function" href="classoperations__research_1_1_time_limit.html#a0ea9620e492bd75ea7e2fcded8f1de8b">TimeLimit::FromParameters</a>(parameters_);</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207">SolveWithTimeLimit</a>(first_solution, <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>.get());</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span>}</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#a37afdef9ee95c4efb58cb694b3468bfb"> 150</a></span><a class="code hl_enumeration" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">BopSolveStatus</a> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207">BopSolver::SolveWithTimeLimit</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1bop_1_1_bop_solution.html">BopSolution</a>& first_solution,</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_class" href="classoperations__research_1_1_time_limit.html">TimeLimit</a>* <a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>) {</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <a class="code hl_define" href="stats_8h.html#a9995704aaaf45fc21e08c847551a8d04">SCOPED_TIME_STAT</a>(&stats_);</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keywordflow">if</span> (first_solution.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">IsFeasible</a>()) {</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1) << <span class="stringliteral">"First solution is feasible."</span>;</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_struct" href="structoperations__research_1_1bop_1_1_learned_info.html">LearnedInfo</a> learned_info(problem_);</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> learned_info.<a class="code hl_variable" href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">solution</a> = first_solution;</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keywordflow">if</span> (problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada">MergeLearnedInfo</a>(learned_info,</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_enumvalue" href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374">BopOptimizerBase::CONTINUE</a>) &&</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a3349a9854b8b5e6e7f3807e293354ad5">IsOptimal</a>()) {</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915a4bd9906264b0d3d68d0a39c3536d9b66">BopSolveStatus::OPTIMAL_SOLUTION_FOUND</a>;</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> }</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_define" href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a>(1)</div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> << <span class="stringliteral">"First solution is infeasible. Using it as assignment preference."</span>;</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> std::vector<bool> assignment_preference;</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < first_solution.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>(); ++i) {</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> assignment_preference.push_back(first_solution.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a6cd00223d6f5614e7a88064c55fd6080">Value</a>(VariableIndex(i)));</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> }</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#adfb842375135476d0b0117a3f6c209a3">set_assignment_preference</a>(assignment_preference);</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> }</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207">SolveWithTimeLimit</a>(<a class="code hl_variable" href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a>);</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span>}</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#acbadc9282132073d015e41e042815dae"> 175</a></span><span class="keywordtype">double</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#acbadc9282132073d015e41e042815dae">BopSolver::GetScaledBestBound</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceoperations__research_1_1sat.html#a16bcd287bd18e3a940d997aafb9321a9">sat::AddOffsetAndScaleObjectiveValue</a>(</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> problem_, <a class="code hl_typedef" href="namespaceoperations__research_1_1math__opt.html#ab61209db5b13f0d424da009e414298fc">sat::Coefficient</a>(problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">lower_bound</a>()));</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span>}</div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="classoperations__research_1_1bop_1_1_bop_solver.html#ab932ac0e64a7666e2a620a23e012ce8b"> 180</a></span><span class="keywordtype">double</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#ab932ac0e64a7666e2a620a23e012ce8b">BopSolver::GetScaledGap</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="keywordflow">return</span> 100.0 *</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> std::abs(problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a5a7e1c8c6e190403753beff6168d66a8">GetScaledCost</a>() -</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solver.html#acbadc9282132073d015e41e042815dae">GetScaledBestBound</a>()) /</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> std::abs(problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">solution</a>().<a class="code hl_function" href="classoperations__research_1_1bop_1_1_bop_solution.html#a5a7e1c8c6e190403753beff6168d66a8">GetScaledCost</a>());</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span>}</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span><span class="keywordtype">void</span> BopSolver::UpdateParameters() {</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">if</span> (parameters_.solver_optimizer_sets_size() == 0) {</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="comment">// No user defined optimizers, use the default string to define the</span></div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="comment">// behavior.</span></div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(::google::protobuf::TextFormat::ParseFromString(</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> parameters_.default_solver_optimizer_sets(),</div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> parameters_.add_solver_optimizer_sets()));</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> }</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> problem_state_.<a class="code hl_function" href="classoperations__research_1_1bop_1_1_problem_state.html#aaeb385f7357113eef7a09c72b76bfdde">SetParameters</a>(parameters_);</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span>}</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span>} <span class="comment">// namespace bop</span></div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span>} <span class="comment">// namespace operations_research</span></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_a3e1cfef60e774a81f30eaddf26a3a274"><div class="ttname"><a href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a></div><div class="ttdeci">#define CHECK(condition)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00495">base/logging.h:495</a></div></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_accad43a85d781d53381cd53a9894b6ae"><div class="ttname"><a href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a></div><div class="ttdeci">#define LOG(severity)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00420">base/logging.h:420</a></div></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_afcaa7cadd41741bb855c2ada1d2ef927"><div class="ttname"><a href="base_2logging_8h.html#afcaa7cadd41741bb855c2ada1d2ef927">VLOG</a></div><div class="ttdeci">#define VLOG(verboselevel)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00984">base/logging.h:984</a></div></div>
|
|
<div class="ttc" id="abitset_8h_html"><div class="ttname"><a href="bitset_8h.html">bitset.h</a></div></div>
|
|
<div class="ttc" id="aboolean__problem_8h_html"><div class="ttname"><a href="boolean__problem_8h.html">boolean_problem.h</a></div></div>
|
|
<div class="ttc" id="abop__fs_8h_html"><div class="ttname"><a href="bop__fs_8h.html">bop_fs.h</a></div></div>
|
|
<div class="ttc" id="abop__lns_8h_html"><div class="ttname"><a href="bop__lns_8h.html">bop_lns.h</a></div></div>
|
|
<div class="ttc" id="abop__ls_8h_html"><div class="ttname"><a href="bop__ls_8h.html">bop_ls.h</a></div></div>
|
|
<div class="ttc" id="abop__portfolio_8h_html"><div class="ttname"><a href="bop__portfolio_8h.html">bop_portfolio.h</a></div></div>
|
|
<div class="ttc" id="abop__solver_8h_html"><div class="ttname"><a href="bop__solver_8h.html">bop_solver.h</a></div></div>
|
|
<div class="ttc" id="abop__util_8h_html"><div class="ttname"><a href="bop__util_8h.html">bop_util.h</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1_stats_group_html_af9bc435481ae9e6e60d66a65d5394a7f"><div class="ttname"><a href="classoperations__research_1_1_stats_group.html#af9bc435481ae9e6e60d66a65d5394a7f">operations_research::StatsGroup::StatString</a></div><div class="ttdeci">std::string StatString() const</div><div class="ttdef"><b>Definition:</b> <a href="stats_8cc_source.html#l00071">stats.cc:71</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1_time_limit_html"><div class="ttname"><a href="classoperations__research_1_1_time_limit.html">operations_research::TimeLimit</a></div><div class="ttdoc">A simple class to enforce both an elapsed time limit and a deterministic time limit in the same threa...</div><div class="ttdef"><b>Definition:</b> <a href="time__limit_8h_source.html#l00106">time_limit.h:106</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1_time_limit_html_a0ea9620e492bd75ea7e2fcded8f1de8b"><div class="ttname"><a href="classoperations__research_1_1_time_limit.html#a0ea9620e492bd75ea7e2fcded8f1de8b">operations_research::TimeLimit::FromParameters</a></div><div class="ttdeci">static std::unique_ptr< TimeLimit > FromParameters(const Parameters &parameters)</div><div class="ttdoc">Creates a time limit object initialized from an object that provides methods max_time_in_seconds() an...</div><div class="ttdef"><b>Definition:</b> <a href="time__limit_8h_source.html#l00160">time_limit.h:160</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">operations_research::bop::BopOptimizerBase::Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00064">bop_base.h:64</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba22ebbfba03095f407fb90f5a363a384b">operations_research::bop::BopOptimizerBase::SOLUTION_FOUND</a></div><div class="ttdeci">@ SOLUTION_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00066">bop_base.h:66</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba2884fa43446c0cbc9c7a9b74d41d7483">operations_research::bop::BopOptimizerBase::INFEASIBLE</a></div><div class="ttdeci">@ INFEASIBLE</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00067">bop_base.h:67</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba49959dd441dcda75d6898cf2c68fb374">operations_research::bop::BopOptimizerBase::CONTINUE</a></div><div class="ttdeci">@ CONTINUE</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00079">bop_base.h:79</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba781ad2788df9e25c59a70894c7832096">operations_research::bop::BopOptimizerBase::ABORT</a></div><div class="ttdeci">@ ABORT</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00083">bop_base.h:82</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_optimizer_base_html_a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_optimizer_base.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae276c6d6c33441e7bc41f349a9ba39e2">operations_research::bop::BopOptimizerBase::OPTIMAL_SOLUTION_FOUND</a></div><div class="ttdeci">@ OPTIMAL_SOLUTION_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00065">bop_base.h:65</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html">operations_research::bop::BopSolution</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00034">bop_solution.h:34</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a58f4b9e873b7c1c7d512bd9f7d1489d8">operations_research::bop::BopSolution::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00045">bop_solution.h:45</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a5a7e1c8c6e190403753beff6168d66a8"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a5a7e1c8c6e190403753beff6168d66a8">operations_research::bop::BopSolution::GetScaledCost</a></div><div class="ttdeci">double GetScaledCost() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00064">bop_solution.h:64</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a6cd00223d6f5614e7a88064c55fd6080"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a6cd00223d6f5614e7a88064c55fd6080">operations_research::bop::BopSolution::Value</a></div><div class="ttdeci">bool Value(VariableIndex var) const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00046">bop_solution.h:46</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solution_html_a894d87c5fddfc463c3ca3c779ba7f997"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solution.html#a894d87c5fddfc463c3ca3c779ba7f997">operations_research::bop::BopSolution::IsFeasible</a></div><div class="ttdeci">bool IsFeasible() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solution_8h_source.html#l00072">bop_solution.h:72</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solver_html_a056ab84b7459147d3c4ba7861dead917"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solver.html#a056ab84b7459147d3c4ba7861dead917">operations_research::bop::BopSolver::~BopSolver</a></div><div class="ttdeci">virtual ~BopSolver()</div><div class="ttdef"><b>Definition:</b> <a href="bop__solver_8cc_source.html#l00078">bop_solver.cc:78</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solver_html_a297d0f5d50f85f560a9d828a04cf1e42"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solver.html#a297d0f5d50f85f560a9d828a04cf1e42">operations_research::bop::BopSolver::Solve</a></div><div class="ttdeci">BopSolveStatus Solve()</div><div class="ttdef"><b>Definition:</b> <a href="bop__solver_8cc_source.html#l00080">bop_solver.cc:80</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solver_html_a3b99c3de315c1a1580aa49549a7e3207"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solver.html#a3b99c3de315c1a1580aa49549a7e3207">operations_research::bop::BopSolver::SolveWithTimeLimit</a></div><div class="ttdeci">BopSolveStatus SolveWithTimeLimit(TimeLimit *time_limit)</div><div class="ttdef"><b>Definition:</b> <a href="bop__solver_8cc_source.html#l00086">bop_solver.cc:86</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solver_html_a48cfda165ade5c43bda0114c8b952b1c"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solver.html#a48cfda165ade5c43bda0114c8b952b1c">operations_research::bop::BopSolver::BopSolver</a></div><div class="ttdeci">BopSolver(const sat::LinearBooleanProblem &problem)</div><div class="ttdef"><b>Definition:</b> <a href="bop__solver_8cc_source.html#l00070">bop_solver.cc:70</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solver_html_ab932ac0e64a7666e2a620a23e012ce8b"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solver.html#ab932ac0e64a7666e2a620a23e012ce8b">operations_research::bop::BopSolver::GetScaledGap</a></div><div class="ttdeci">double GetScaledGap() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solver_8cc_source.html#l00180">bop_solver.cc:180</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_bop_solver_html_acbadc9282132073d015e41e042815dae"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_bop_solver.html#acbadc9282132073d015e41e042815dae">operations_research::bop::BopSolver::GetScaledBestBound</a></div><div class="ttdeci">double GetScaledBestBound() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__solver_8cc_source.html#l00175">bop_solver.cc:175</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_portfolio_optimizer_html"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_portfolio_optimizer.html">operations_research::bop::PortfolioOptimizer</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__portfolio_8h_source.html#l00065">bop_portfolio.h:65</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a1dfd4f5167c21a9a872f09f566817f27"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a1dfd4f5167c21a9a872f09f566817f27">operations_research::bop::ProblemState::solution</a></div><div class="ttdeci">const BopSolution & solution() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00196">bop_base.h:196</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a1edcde41f3dff977bb6db2223f1e124f"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a1edcde41f3dff977bb6db2223f1e124f">operations_research::bop::ProblemState::lower_bound</a></div><div class="ttdeci">int64_t lower_bound() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00209">bop_base.h:209</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a3349a9854b8b5e6e7f3807e293354ad5"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a3349a9854b8b5e6e7f3807e293354ad5">operations_research::bop::ProblemState::IsOptimal</a></div><div class="ttdeci">bool IsOptimal() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00166">bop_base.h:166</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a41c053fa0d0b27531bcb9977bded0ada"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a41c053fa0d0b27531bcb9977bded0ada">operations_research::bop::ProblemState::MergeLearnedInfo</a></div><div class="ttdeci">bool MergeLearnedInfo(const LearnedInfo &learned_info, BopOptimizerBase::Status optimization_status)</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8cc_source.html#l00092">bop_base.cc:92</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_a831918c2aa4802563301addc46efd0eb"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#a831918c2aa4802563301addc46efd0eb">operations_research::bop::ProblemState::original_problem</a></div><div class="ttdeci">const sat::LinearBooleanProblem & original_problem() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00201">bop_base.h:201</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_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#l00119">bop_base.h:119</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#l00127">bop_base.h:127</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1bop_1_1_problem_state_html_afa100093981de3b019a7d5d6c7533a5a"><div class="ttname"><a href="classoperations__research_1_1bop_1_1_problem_state.html#afa100093981de3b019a7d5d6c7533a5a">operations_research::bop::ProblemState::IsInfeasible</a></div><div class="ttdeci">bool IsInfeasible() const</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00171">bop_base.h:171</a></div></div>
|
|
<div class="ttc" id="acommandlineflags_8h_html"><div class="ttname"><a href="commandlineflags_8h.html">commandlineflags.h</a></div></div>
|
|
<div class="ttc" id="acomplete__optimizer_8h_html"><div class="ttname"><a href="complete__optimizer_8h.html">complete_optimizer.h</a></div></div>
|
|
<div class="ttc" id="acp__model__solver_8cc_html_aec8af5c1be4e1b6d4330e1161028de21"><div class="ttname"><a href="cp__model__solver_8cc.html#aec8af5c1be4e1b6d4330e1161028de21">time_limit</a></div><div class="ttdeci">ModelSharedTimeLimit * time_limit</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__solver_8cc_source.html#l02050">cp_model_solver.cc:2050</a></div></div>
|
|
<div class="ttc" id="ag__gurobi_8cc_html_a2237393c7ae7ad7344c9885066d5ab6d"><div class="ttname"><a href="g__gurobi_8cc.html#a2237393c7ae7ad7344c9885066d5ab6d">status</a></div><div class="ttdeci">absl::Status status</div><div class="ttdef"><b>Definition:</b> <a href="g__gurobi_8cc_source.html#l00035">g_gurobi.cc:35</a></div></div>
|
|
<div class="ttc" id="alog__severity_8h_html_ac9bcbe19995a8140cd4ec61773cd6e67"><div class="ttname"><a href="log__severity_8h.html#ac9bcbe19995a8140cd4ec61773cd6e67">ERROR</a></div><div class="ttdeci">const int ERROR</div><div class="ttdef"><b>Definition:</b> <a href="log__severity_8h_source.html#l00032">log_severity.h:32</a></div></div>
|
|
<div class="ttc" id="alp__print__utils_8h_html"><div class="ttname"><a href="lp__print__utils_8h.html">lp_print_utils.h</a></div></div>
|
|
<div class="ttc" id="alp__solver_8h_html"><div class="ttname"><a href="lp__solver_8h.html">lp_solver.h</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a7fe1fd792b1c40c0b5dcc44728e5f915"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915">operations_research::bop::BopSolveStatus</a></div><div class="ttdeci">BopSolveStatus</div><div class="ttdef"><b>Definition:</b> <a href="bop__types_8h_source.html#l00033">bop_types.h:33</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a7fe1fd792b1c40c0b5dcc44728e5f915a3fe2f6b2fc16582a30e00307f48d587b"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915a3fe2f6b2fc16582a30e00307f48d587b">operations_research::bop::BopSolveStatus::NO_SOLUTION_FOUND</a></div><div class="ttdeci">@ NO_SOLUTION_FOUND</div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a7fe1fd792b1c40c0b5dcc44728e5f915a4bd9906264b0d3d68d0a39c3536d9b66"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915a4bd9906264b0d3d68d0a39c3536d9b66">operations_research::bop::BopSolveStatus::OPTIMAL_SOLUTION_FOUND</a></div><div class="ttdeci">@ OPTIMAL_SOLUTION_FOUND</div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a7fe1fd792b1c40c0b5dcc44728e5f915ac28ceda32c9534dc751298eca22f5da3"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915ac28ceda32c9534dc751298eca22f5da3">operations_research::bop::BopSolveStatus::INFEASIBLE_PROBLEM</a></div><div class="ttdeci">@ INFEASIBLE_PROBLEM</div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a7fe1fd792b1c40c0b5dcc44728e5f915add8d8537e1472a5e432749c5abf45c82"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915add8d8537e1472a5e432749c5abf45c82">operations_research::bop::BopSolveStatus::INVALID_PROBLEM</a></div><div class="ttdeci">@ INVALID_PROBLEM</div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1bop_html_a7fe1fd792b1c40c0b5dcc44728e5f915af1b7de0cef3266eb7fad94409a745570"><div class="ttname"><a href="namespaceoperations__research_1_1bop.html#a7fe1fd792b1c40c0b5dcc44728e5f915af1b7de0cef3266eb7fad94409a745570">operations_research::bop::BopSolveStatus::FEASIBLE_SOLUTION_FOUND</a></div><div class="ttdeci">@ FEASIBLE_SOLUTION_FOUND</div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_a4dc8ae0f97c4110f3cc770715b2bbd12"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#a4dc8ae0f97c4110f3cc770715b2bbd12">operations_research::glop::DenseRow</a></div><div class="ttdeci">StrictITIVector< ColIndex, Fractional > DenseRow</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00303">lp_types.h:303</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1math__opt_html_ab61209db5b13f0d424da009e414298fc"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#ab61209db5b13f0d424da009e414298fc">operations_research::math_opt::Coefficient</a></div><div class="ttdeci">std::tuple< int64_t, int64_t, const double > Coefficient</div><div class="ttdef"><b>Definition:</b> <a href="sparse__collection__matchers_8h_source.html#l00061">sparse_collection_matchers.h:61</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a16bcd287bd18e3a940d997aafb9321a9"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a16bcd287bd18e3a940d997aafb9321a9">operations_research::sat::AddOffsetAndScaleObjectiveValue</a></div><div class="ttdeci">double AddOffsetAndScaleObjectiveValue(const LinearBooleanProblem &problem, Coefficient v)</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8h_source.html#l00039">boolean_problem.h:39</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a6004b20c87a172cc7d18754489157868"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a6004b20c87a172cc7d18754489157868">operations_research::sat::ValidateBooleanProblem</a></div><div class="ttdeci">absl::Status ValidateBooleanProblem(const LinearBooleanProblem &problem)</div><div class="ttdef"><b>Definition:</b> <a href="boolean__problem_8cc_source.html#l00144">boolean_problem.cc:144</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
|
|
<div class="ttc" id="asat_2lp__utils_8h_html"><div class="ttname"><a href="sat_2lp__utils_8h.html">lp_utils.h</a></div></div>
|
|
<div class="ttc" id="asat__solver_8h_html"><div class="ttname"><a href="sat__solver_8h.html">sat_solver.h</a></div></div>
|
|
<div class="ttc" id="astats_8h_html_a3c3e6b102f0d91c523099325c98e1887"><div class="ttname"><a href="stats_8h.html#a3c3e6b102f0d91c523099325c98e1887">IF_STATS_ENABLED</a></div><div class="ttdeci">#define IF_STATS_ENABLED(instructions)</div><div class="ttdef"><b>Definition:</b> <a href="stats_8h_source.html#l00437">stats.h:437</a></div></div>
|
|
<div class="ttc" id="astats_8h_html_a9995704aaaf45fc21e08c847551a8d04"><div class="ttname"><a href="stats_8h.html#a9995704aaaf45fc21e08c847551a8d04">SCOPED_TIME_STAT</a></div><div class="ttdeci">#define SCOPED_TIME_STAT(stats)</div><div class="ttdef"><b>Definition:</b> <a href="stats_8h_source.html#l00438">stats.h:438</a></div></div>
|
|
<div class="ttc" id="astl__util_8h_html"><div class="ttname"><a href="stl__util_8h.html">stl_util.h</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html">operations_research::bop::LearnedInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00248">bop_base.h:248</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1bop_1_1_learned_info_html_aa055411f4c53125132922079d33e535f"><div class="ttname"><a href="structoperations__research_1_1bop_1_1_learned_info.html#aa055411f4c53125132922079d33e535f">operations_research::bop::LearnedInfo::solution</a></div><div class="ttdeci">BopSolution solution</div><div class="ttdef"><b>Definition:</b> <a href="bop__base_8h_source.html#l00269">bop_base.h:269</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.18-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_749f8352630e023f1ab8040461e5d795.html">bop</a></li><li class="navelem"><a class="el" href="bop__solver_8cc.html">bop_solver.cc</a></li>
|
|
<li class="footer">Generated by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.3 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|