395 lines
68 KiB
HTML
395 lines
68 KiB
HTML
<!-- HTML header for doxygen 1.8.18-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OR-Tools: sat_proto_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">8.2</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<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','.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: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('sat__proto__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">sat_proto_solver.cc</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="sat__proto__solver_8cc.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">#include "<a class="code" href="sat__proto__solver_8h.html">ortools/linear_solver/sat_proto_solver.h</a>"</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "absl/status/statusor.h"</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="linear__solver_8pb_8h.html">ortools/linear_solver/linear_solver.pb.h</a>"</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="model__validator_8h.html">ortools/linear_solver/model_validator.h</a>"</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="sat__solver__utils_8h.html">ortools/linear_solver/sat_solver_utils.h</a>"</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="port_2proto__utils_8h.html">ortools/port/proto_utils.h</a>"</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="cp__model_8pb_8h.html">ortools/sat/cp_model.pb.h</a>"</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="cp__model__solver_8h.html">ortools/sat/cp_model_solver.h</a>"</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</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 name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="sat__parameters_8pb_8h.html">ortools/sat/sat_parameters.pb.h</a>"</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</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="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</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>{</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#if defined(PROTOBUF_INTERNAL_IMPL)</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">using</span> google::protobuf::Message;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#else</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">using</span> google::protobuf::Message;</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">// Proto-lite disables some features of protos (see</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// go/abp-libraries/proto2-lite) and messages inherit from MessageLite directly</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">// instead of inheriting from Message (which is itself a specialization of</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// MessageLite).</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> constexpr <span class="keywordtype">bool</span> kProtoLiteSatParameters =</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  !<a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">std::is_base_of<Message, sat::SatParameters>::value</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> <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1b">MPSolverResponseStatus</a> ToMPSolverResponseStatus(<a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815">sat::CpSolverStatus</a> status,</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">bool</span> has_objective) {</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">switch</span> (status) {</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a6ce26a62afab55d7606ad4e92428b30c">sat::CpSolverStatus::UNKNOWN</a>:</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba3955ab5aa529fab85eb3566271a043e2">MPSOLVER_NOT_SOLVED</a>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815ae071e79c23f061c9dd00ee09519a0031">sat::CpSolverStatus::MODEL_INVALID</a>:</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba5d004f74784501a516258dff6b7740ec">MPSOLVER_MODEL_INVALID</a>;</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a03f919221217f95d21a593a7120165e1">sat::CpSolverStatus::FEASIBLE</a>:</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> has_objective ? <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1badbeb0b2ee95779317b20e5876609bf04">MPSOLVER_FEASIBLE</a> : <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba9cff14a44a54cc44f4b91d65e8cd73b1">MPSOLVER_OPTIMAL</a>;</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a2884fa43446c0cbc9c7a9b74d41d7483">sat::CpSolverStatus::INFEASIBLE</a>:</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba12a89c0e1b72e6c40e8c0ed16afa48a6">MPSOLVER_INFEASIBLE</a>;</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">case</span> <a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a2579881e7c83261bc21bafb5a5c92cad">sat::CpSolverStatus::OPTIMAL</a>:</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba9cff14a44a54cc44f4b91d65e8cd73b1">MPSOLVER_OPTIMAL</a>;</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">default</span>: {</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1baf6f49dcf49ad7df71d2e5b5f2c81ff88">MPSOLVER_ABNORMAL</a>;</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> } <span class="comment">// namespace</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html#ac8bc6bcb6a873f4651856494250c6fc5"> 66</a></span> absl::StatusOr<MPSolutionResponse> <a class="code" href="namespaceoperations__research.html#ac8bc6bcb6a873f4651856494250c6fc5">SatSolveProto</a>(</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  MPModelRequest request, std::atomic<bool>* interrupt_solve) {</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// By default, we use 8 threads as it allows to try a good set of orthogonal</span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// parameters. This can be overridden by the user.</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  sat::SatParameters params;</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  params.set_num_search_workers(8);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  params.set_log_search_progress(request.enable_internal_solver_output());</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">if</span> (request.has_solver_specific_parameters()) {</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// See EncodeSatParametersAsString() documentation.</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> (kProtoLiteSatParameters) {</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">if</span> (!params.MergeFromString(request.solver_specific_parameters())) {</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> absl::InvalidArgumentError(</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="stringliteral">"solver_specific_parameters is not a valid binary stream of the "</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="stringliteral">"SatParameters proto"</span>);</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespaceoperations__research.html#a35aef0bf8960ddc77cec32ab5d5aa885">ProtobufTextFormatMergeFromString</a>(</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  request.solver_specific_parameters(), &params)) {</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> absl::InvalidArgumentError(</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="stringliteral">"solver_specific_parameters is not a valid textual representation "</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="stringliteral">"of the SatParameters proto"</span>);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (request.has_solver_time_limit_seconds()) {</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  params.set_max_time_in_seconds(</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">static_cast<</span><span class="keywordtype">double</span><span class="keyword">></span>(request.solver_time_limit_seconds()) / 1000.0);</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</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>  MPSolutionResponse <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>;</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespaceoperations__research.html#a028894df65f61e94b6a406ed76901abf">ExtractValidMPModelInPlaceOrPopulateResponseStatus</a>(&request,</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  &<a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>)) {</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">if</span> (params.log_search_progress()) {</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// This is needed for our benchmark scripts.</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  sat::CpSolverResponse cp_response;</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  cp_response.set_status(<a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815ae071e79c23f061c9dd00ee09519a0031">sat::CpSolverStatus::MODEL_INVALID</a>);</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a>(<a class="code" href="log__severity_8h.html#ab4a2cbab234914b320b7fae11b6e8cb9">INFO</a>) << <a class="code" href="namespaceoperations__research_1_1sat.html#a1b192124133b53f1445f7f6d4708b332">CpSolverResponseStats</a>(cp_response);</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  }</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>;</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="comment">// Note(user): the LP presolvers API is a bit weird and keep a reference to</span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// the given GlopParameters, so we need to make sure it outlive them.</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">const</span> glop::GlopParameters glop_params;</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  MPModelProto* <span class="keyword">const</span> mp_model = request.mutable_model();</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  std::vector<std::unique_ptr<glop::Preprocessor>> for_postsolve;</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> log_info = <a class="code" href="vlog__is__on_8h.html#a956152cad330225654d128f35c00efce">VLOG_IS_ON</a>(1) || params.log_search_progress();</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">const</span> <span class="keyword">auto</span> status =</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="namespaceoperations__research.html#a2b45d80d0578b333808226319afc3e5e">ApplyMipPresolveSteps</a>(log_info, glop_params, mp_model, &for_postsolve);</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">if</span> (status == <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba12a89c0e1b72e6c40e8c0ed16afa48a6">MPSolverResponseStatus::MPSOLVER_INFEASIBLE</a>) {</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">if</span> (params.log_search_progress()) {</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// This is needed for our benchmark scripts.</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  sat::CpSolverResponse cp_response;</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  cp_response.set_status(<a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a2884fa43446c0cbc9c7a9b74d41d7483">sat::CpSolverStatus::INFEASIBLE</a>);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a>(<a class="code" href="log__severity_8h.html#ab4a2cbab234914b320b7fae11b6e8cb9">INFO</a>) << <a class="code" href="namespaceoperations__research_1_1sat.html#a1b192124133b53f1445f7f6d4708b332">CpSolverResponseStats</a>(cp_response);</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_status(<a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba12a89c0e1b72e6c40e8c0ed16afa48a6">MPSolverResponseStatus::MPSOLVER_INFEASIBLE</a>);</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_status_str(<span class="stringliteral">"Problem proven infeasible during MIP presolve"</span>);</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>;</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// We need to do that before the automatic detection of integers.</span></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="namespaceoperations__research_1_1sat.html#a0ff539f8974998682c8a976ec9a83166">RemoveNearZeroTerms</a>(params, mp_model);</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> num_variables = mp_model->variable_size();</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  std::vector<double> var_scaling(num_variables, 1.0);</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">if</span> (params.mip_automatically_scale_variables()) {</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  var_scaling = <a class="code" href="namespaceoperations__research_1_1sat.html#a5d3559f28aa3f4859177d4c13950cf1a">sat::DetectImpliedIntegers</a>(log_info, mp_model);</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">if</span> (params.mip_var_scaling() != 1.0) {</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">const</span> std::vector<double> other_scaling = <a class="code" href="namespaceoperations__research_1_1sat.html#ac71665cf974c4a75adc4c9ad251ae853">sat::ScaleContinuousVariables</a>(</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  params.mip_var_scaling(), params.mip_max_bound(), mp_model);</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < var_scaling.size(); ++i) {</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  var_scaling[i] *= other_scaling[i];</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</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>  </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  sat::CpModelProto cp_model;</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespaceoperations__research_1_1sat.html#adead4997e96ccdef87190f43c5de938f">ConvertMPModelProtoToCpModelProto</a>(params, *mp_model, &cp_model)) {</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">if</span> (params.log_search_progress()) {</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="comment">// This is needed for our benchmark scripts.</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  sat::CpSolverResponse cp_response;</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  cp_response.set_status(<a class="code" href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815ae071e79c23f061c9dd00ee09519a0031">sat::CpSolverStatus::MODEL_INVALID</a>);</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="base_2logging_8h.html#accad43a85d781d53381cd53a9894b6ae">LOG</a>(<a class="code" href="log__severity_8h.html#ab4a2cbab234914b320b7fae11b6e8cb9">INFO</a>) << <a class="code" href="namespaceoperations__research_1_1sat.html#a1b192124133b53f1445f7f6d4708b332">CpSolverResponseStats</a>(cp_response);</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  }</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_status(<a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba5d004f74784501a516258dff6b7740ec">MPSOLVER_MODEL_INVALID</a>);</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_status_str(<span class="stringliteral">"Failed to convert model into CP-SAT model"</span>);</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">return</span> <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>;</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="base_2logging_8h.html#ae89df3243bbb8341130c7b3f44145ea0">DCHECK_EQ</a>(cp_model.variables().size(), var_scaling.size());</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="base_2logging_8h.html#ae89df3243bbb8341130c7b3f44145ea0">DCHECK_EQ</a>(cp_model.variables().size(), mp_model->variable().size());</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="comment">// Copy and scale the hint if there is one.</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">if</span> (request.model().has_solution_hint()) {</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">auto</span>* cp_model_hint = cp_model.mutable_solution_hint();</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> size = request.model().solution_hint().var_index().size();</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; ++i) {</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a> = request.model().solution_hint().var_index(i);</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">if</span> (<a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a> >= var_scaling.size()) <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="comment">// To handle weird hint input values, we cap any large value to +/-</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="comment">// mip_max_bound() which is also the min/max value of any variable once</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// scaled.</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordtype">double</span> <a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a> =</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  request.model().solution_hint().var_value(i) * var_scaling[<a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>];</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">if</span> (std::abs(<a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a>) > params.mip_max_bound()) {</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a> = <a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a> > 0 ? params.mip_max_bound() : -params.mip_max_bound();</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  cp_model_hint->add_vars(<a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  cp_model_hint->add_values(<span class="keyword">static_cast<</span><a class="code" href="integral__types_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a><span class="keyword">></span>(std::round(<a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a>)));</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>  }</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// We no longer need the request. Reclaim its memory.</span></div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> old_num_variables = mp_model->variable().size();</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> old_num_constraints = mp_model->constraint().size();</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  request.Clear();</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">// Solve.</span></div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classoperations__research_1_1sat_1_1_model.html">sat::Model</a> sat_model;</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  sat_model.<a class="code" href="classoperations__research_1_1sat_1_1_model.html#a7b8d774b566431b8932ba0f3c921ec7d">Add</a>(<a class="code" href="namespaceoperations__research_1_1sat.html#a1684fe34484d78336d3cdac55ec6de57">NewSatParameters</a>(params));</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">if</span> (interrupt_solve != <span class="keyword">nullptr</span>) {</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  sat_model.<a class="code" href="classoperations__research_1_1sat_1_1_model.html#a8d72645353ea6770911c4e0724995ed6">GetOrCreate</a><<a class="code" href="classoperations__research_1_1_time_limit.html">TimeLimit</a>>()->RegisterExternalBooleanAsLimit(</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  interrupt_solve);</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">const</span> sat::CpSolverResponse cp_response =</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="namespaceoperations__research_1_1sat.html#aa9299de04255b99318446500127d79e1">sat::SolveCpModel</a>(cp_model, &sat_model);</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="comment">// Convert the response.</span></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// TODO(user): Implement the row and column status.</span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_status(</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  ToMPSolverResponseStatus(cp_response.status(), cp_model.has_objective()));</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">if</span> (<a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.status() == <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1badbeb0b2ee95779317b20e5876609bf04">MPSOLVER_FEASIBLE</a> ||</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.status() == <a class="code" href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba9cff14a44a54cc44f4b91d65e8cd73b1">MPSOLVER_OPTIMAL</a>) {</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_objective_value(cp_response.objective_value());</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.set_best_objective_bound(cp_response.best_objective_bound());</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="comment">// Postsolve the bound shift and scaling.</span></div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="structoperations__research_1_1glop_1_1_problem_solution.html">glop::ProblemSolution</a> solution((glop::RowIndex(old_num_constraints)),</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  (glop::ColIndex(old_num_variables)));</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> v = 0; v < solution.<a class="code" href="structoperations__research_1_1glop_1_1_problem_solution.html#af8a495c9872268c3e34d413d8b63ef66">primal_values</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">size</a>(); ++v) {</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  solution.<a class="code" href="structoperations__research_1_1glop_1_1_problem_solution.html#af8a495c9872268c3e34d413d8b63ef66">primal_values</a>[glop::ColIndex(v)] =</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">static_cast<</span><span class="keywordtype">double</span><span class="keyword">></span>(cp_response.solution(v)) / var_scaling[v];</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  }</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = for_postsolve.size(); --i >= 0;) {</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  for_postsolve[i]->RecoverSolution(&solution);</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>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> v = 0; v < solution.<a class="code" href="structoperations__research_1_1glop_1_1_problem_solution.html#af8a495c9872268c3e34d413d8b63ef66">primal_values</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">size</a>(); ++v) {</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>.add_variable_value(solution.<a class="code" href="structoperations__research_1_1glop_1_1_problem_solution.html#af8a495c9872268c3e34d413d8b63ef66">primal_values</a>[glop::ColIndex(v)]);</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</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>  </div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">return</span> <a class="code" href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a>;</div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> }</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html#aa36d0369726118d22cf2fa47aa739f4d"> 223</a></span> std::string <a class="code" href="namespaceoperations__research.html#aa36d0369726118d22cf2fa47aa739f4d">EncodeSatParametersAsString</a>(<span class="keyword">const</span> sat::SatParameters& <a class="code" href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a>) {</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">if</span> (kProtoLiteSatParameters) {</div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="comment">// Here we use SerializeToString() instead of SerializeAsString() since the</span></div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="comment">// later ignores errors and returns an empty string instead (which can be a</span></div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="comment">// valid value when no fields are set).</span></div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  std::string bytes;</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(<a class="code" href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a>.SerializeToString(&bytes));</div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">return</span> bytes;</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  }</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>  <span class="keywordflow">return</span> <a class="code" href="cp__model__fz__solver_8cc.html#a10a1eab179b472c030bdc2a2efef7219">parameters</a>.ShortDebugString();</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> }</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">// 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_ae89df3243bbb8341130c7b3f44145ea0"><div class="ttname"><a href="base_2logging_8h.html#ae89df3243bbb8341130c7b3f44145ea0">DCHECK_EQ</a></div><div class="ttdeci">#define DCHECK_EQ(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00885">base/logging.h:885</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="aclassoperations__research_1_1glop_1_1_strict_i_t_i_vector_html_a967a5c081ad4195a30c78dc2c0bcabf5"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">operations_research::glop::StrictITIVector::size</a></div><div class="ttdeci">IntType size() const</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00276">lp_types.h:276</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_model_html"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_model.html">operations_research::sat::Model</a></div><div class="ttdoc">Class that owns everything related to a particular optimization model.</div><div class="ttdef"><b>Definition:</b> <a href="sat_2model_8h_source.html#l00038">sat/model.h:38</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_model_html_a7b8d774b566431b8932ba0f3c921ec7d"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_model.html#a7b8d774b566431b8932ba0f3c921ec7d">operations_research::sat::Model::Add</a></div><div class="ttdeci">T Add(std::function< T(Model *)> f)</div><div class="ttdoc">This makes it possible to have a nicer API on the client side, and it allows both of these forms:</div><div class="ttdef"><b>Definition:</b> <a href="sat_2model_8h_source.html#l00081">sat/model.h:81</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1sat_1_1_model_html_a8d72645353ea6770911c4e0724995ed6"><div class="ttname"><a href="classoperations__research_1_1sat_1_1_model.html#a8d72645353ea6770911c4e0724995ed6">operations_research::sat::Model::GetOrCreate</a></div><div class="ttdeci">T * GetOrCreate()</div><div class="ttdoc">Returns an object of type T that is unique to this model (like a "local" singleton).</div><div class="ttdef"><b>Definition:</b> <a href="sat_2model_8h_source.html#l00106">sat/model.h:106</a></div></div>
|
|
<div class="ttc" id="acp__model_8pb_8h_html"><div class="ttname"><a href="cp__model_8pb_8h.html">cp_model.pb.h</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="acp__model__solver_8cc_html_abcd33b18ce6d5a90a4ba5c37cfa58829"><div class="ttname"><a href="cp__model__solver_8cc.html#abcd33b18ce6d5a90a4ba5c37cfa58829">response</a></div><div class="ttdeci">SharedResponseManager * response</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__solver_8cc_source.html#l02118">cp_model_solver.cc:2118</a></div></div>
|
|
<div class="ttc" id="acp__model__solver_8h_html"><div class="ttname"><a href="cp__model__solver_8h.html">cp_model_solver.h</a></div></div>
|
|
<div class="ttc" id="ademon__profiler_8cc_html_a21edc7ca4cc5802c8779d68556bc09cf"><div class="ttname"><a href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a></div><div class="ttdeci">int64 value</div><div class="ttdef"><b>Definition:</b> <a href="demon__profiler_8cc_source.html#l00043">demon_profiler.cc:43</a></div></div>
|
|
<div class="ttc" id="aexpr__array_8cc_html_a472a99923cbe11ae7b5a5d157d9ad465"><div class="ttname"><a href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a></div><div class="ttdeci">IntVar * var</div><div class="ttdef"><b>Definition:</b> <a href="expr__array_8cc_source.html#l01858">expr_array.cc:1858</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="alinear__solver_8pb_8h_html"><div class="ttname"><a href="linear__solver_8pb_8h.html">linear_solver.pb.h</a></div></div>
|
|
<div class="ttc" id="alog__severity_8h_html_ab4a2cbab234914b320b7fae11b6e8cb9"><div class="ttname"><a href="log__severity_8h.html#ab4a2cbab234914b320b7fae11b6e8cb9">INFO</a></div><div class="ttdeci">const int INFO</div><div class="ttdef"><b>Definition:</b> <a href="log__severity_8h_source.html#l00031">log_severity.h:31</a></div></div>
|
|
<div class="ttc" id="amodel__validator_8h_html"><div class="ttname"><a href="model__validator_8h.html">model_validator.h</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a0ff539f8974998682c8a976ec9a83166"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a0ff539f8974998682c8a976ec9a83166">operations_research::sat::RemoveNearZeroTerms</a></div><div class="ttdeci">void RemoveNearZeroTerms(const SatParameters &params, MPModelProto *mp_model)</div><div class="ttdef"><b>Definition:</b> <a href="sat_2lp__utils_8cc_source.html#l00181">sat/lp_utils.cc:181</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a1684fe34484d78336d3cdac55ec6de57"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a1684fe34484d78336d3cdac55ec6de57">operations_research::sat::NewSatParameters</a></div><div class="ttdeci">std::function< SatParameters(Model *)> NewSatParameters(const std::string &params)</div><div class="ttdoc">Creates parameters for the solver, which you can add to the model with.</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__solver_8cc_source.html#l00922">cp_model_solver.cc:922</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a1b192124133b53f1445f7f6d4708b332"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a1b192124133b53f1445f7f6d4708b332">operations_research::sat::CpSolverResponseStats</a></div><div class="ttdeci">std::string CpSolverResponseStats(const CpSolverResponse &response, bool has_objective)</div><div class="ttdoc">Returns a string with some statistics on the solver response.</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__solver_8cc_source.html#l00286">cp_model_solver.cc:286</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_a5d3559f28aa3f4859177d4c13950cf1a"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#a5d3559f28aa3f4859177d4c13950cf1a">operations_research::sat::DetectImpliedIntegers</a></div><div class="ttdeci">std::vector< double > DetectImpliedIntegers(bool log_info, MPModelProto *mp_model)</div><div class="ttdef"><b>Definition:</b> <a href="sat_2lp__utils_8cc_source.html#l00234">sat/lp_utils.cc:234</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aa9299de04255b99318446500127d79e1"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aa9299de04255b99318446500127d79e1">operations_research::sat::SolveCpModel</a></div><div class="ttdeci">CpSolverResponse SolveCpModel(const CpModelProto &model_proto, Model *model)</div><div class="ttdoc">Solves the given CpModelProto.</div><div class="ttdef"><b>Definition:</b> <a href="cp__model__solver_8cc_source.html#l02887">cp_model_solver.cc:2887</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_ac71665cf974c4a75adc4c9ad251ae853"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#ac71665cf974c4a75adc4c9ad251ae853">operations_research::sat::ScaleContinuousVariables</a></div><div class="ttdeci">std::vector< double > ScaleContinuousVariables(double scaling, double max_bound, MPModelProto *mp_model)</div><div class="ttdef"><b>Definition:</b> <a href="sat_2lp__utils_8cc_source.html#l00099">sat/lp_utils.cc:99</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_adead4997e96ccdef87190f43c5de938f"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#adead4997e96ccdef87190f43c5de938f">operations_research::sat::ConvertMPModelProtoToCpModelProto</a></div><div class="ttdeci">bool ConvertMPModelProtoToCpModelProto(const SatParameters &params, const MPModelProto &mp_model, CpModelProto *cp_model)</div><div class="ttdef"><b>Definition:</b> <a href="sat_2lp__utils_8cc_source.html#l00642">sat/lp_utils.cc:642</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aedc4ddb96acc28481c09828d2e016815"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815">operations_research::sat::CpSolverStatus</a></div><div class="ttdeci">CpSolverStatus</div><div class="ttdef"><b>Definition:</b> <a href="cp__model_8pb_8h_source.html#l00234">cp_model.pb.h:234</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aedc4ddb96acc28481c09828d2e016815a03f919221217f95d21a593a7120165e1"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a03f919221217f95d21a593a7120165e1">operations_research::sat::FEASIBLE</a></div><div class="ttdeci">@ FEASIBLE</div><div class="ttdef"><b>Definition:</b> <a href="cp__model_8pb_8h_source.html#l00237">cp_model.pb.h:237</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aedc4ddb96acc28481c09828d2e016815a2579881e7c83261bc21bafb5a5c92cad"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a2579881e7c83261bc21bafb5a5c92cad">operations_research::sat::OPTIMAL</a></div><div class="ttdeci">@ OPTIMAL</div><div class="ttdef"><b>Definition:</b> <a href="cp__model_8pb_8h_source.html#l00239">cp_model.pb.h:239</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aedc4ddb96acc28481c09828d2e016815a2884fa43446c0cbc9c7a9b74d41d7483"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a2884fa43446c0cbc9c7a9b74d41d7483">operations_research::sat::INFEASIBLE</a></div><div class="ttdeci">@ INFEASIBLE</div><div class="ttdef"><b>Definition:</b> <a href="cp__model_8pb_8h_source.html#l00238">cp_model.pb.h:238</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aedc4ddb96acc28481c09828d2e016815a6ce26a62afab55d7606ad4e92428b30c"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815a6ce26a62afab55d7606ad4e92428b30c">operations_research::sat::UNKNOWN</a></div><div class="ttdeci">@ UNKNOWN</div><div class="ttdef"><b>Definition:</b> <a href="cp__model_8pb_8h_source.html#l00235">cp_model.pb.h:235</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1sat_html_aedc4ddb96acc28481c09828d2e016815ae071e79c23f061c9dd00ee09519a0031"><div class="ttname"><a href="namespaceoperations__research_1_1sat.html#aedc4ddb96acc28481c09828d2e016815ae071e79c23f061c9dd00ee09519a0031">operations_research::sat::MODEL_INVALID</a></div><div class="ttdeci">@ MODEL_INVALID</div><div class="ttdef"><b>Definition:</b> <a href="cp__model_8pb_8h_source.html#l00236">cp_model.pb.h:236</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="anamespaceoperations__research_html_a028894df65f61e94b6a406ed76901abf"><div class="ttname"><a href="namespaceoperations__research.html#a028894df65f61e94b6a406ed76901abf">operations_research::ExtractValidMPModelInPlaceOrPopulateResponseStatus</a></div><div class="ttdeci">bool ExtractValidMPModelInPlaceOrPopulateResponseStatus(MPModelRequest *request, MPSolutionResponse *response)</div><div class="ttdoc">Like ExtractValidMPModelOrPopulateResponseStatus(), but works in-place: if the MPModel needed extract...</div><div class="ttdef"><b>Definition:</b> <a href="model__validator_8cc_source.html#l00608">model_validator.cc:608</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_a2b45d80d0578b333808226319afc3e5e"><div class="ttname"><a href="namespaceoperations__research.html#a2b45d80d0578b333808226319afc3e5e">operations_research::ApplyMipPresolveSteps</a></div><div class="ttdeci">MPSolverResponseStatus ApplyMipPresolveSteps(bool log_info, const glop::GlopParameters &glop_params, MPModelProto *model, std::vector< std::unique_ptr< glop::Preprocessor >> *for_postsolve)</div><div class="ttdef"><b>Definition:</b> <a href="sat__solver__utils_8cc_source.html#l00027">sat_solver_utils.cc:27</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_a35aef0bf8960ddc77cec32ab5d5aa885"><div class="ttname"><a href="namespaceoperations__research.html#a35aef0bf8960ddc77cec32ab5d5aa885">operations_research::ProtobufTextFormatMergeFromString</a></div><div class="ttdeci">bool ProtobufTextFormatMergeFromString(const std::string &proto_text_string, ProtoType *proto)</div><div class="ttdef"><b>Definition:</b> <a href="port_2proto__utils_8h_source.html#l00075">port/proto_utils.h:75</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aa36d0369726118d22cf2fa47aa739f4d"><div class="ttname"><a href="namespaceoperations__research.html#aa36d0369726118d22cf2fa47aa739f4d">operations_research::EncodeSatParametersAsString</a></div><div class="ttdeci">std::string EncodeSatParametersAsString(const sat::SatParameters &parameters)</div><div class="ttdef"><b>Definition:</b> <a href="sat__proto__solver_8cc_source.html#l00223">sat_proto_solver.cc:223</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_ac8bc6bcb6a873f4651856494250c6fc5"><div class="ttname"><a href="namespaceoperations__research.html#ac8bc6bcb6a873f4651856494250c6fc5">operations_research::SatSolveProto</a></div><div class="ttdeci">absl::StatusOr< MPSolutionResponse > SatSolveProto(MPModelRequest request, std::atomic< bool > *interrupt_solve)</div><div class="ttdef"><b>Definition:</b> <a href="sat__proto__solver_8cc_source.html#l00066">sat_proto_solver.cc:66</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1b"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1b">operations_research::MPSolverResponseStatus</a></div><div class="ttdeci">MPSolverResponseStatus</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00227">linear_solver.pb.h:227</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1ba12a89c0e1b72e6c40e8c0ed16afa48a6"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba12a89c0e1b72e6c40e8c0ed16afa48a6">operations_research::MPSOLVER_INFEASIBLE</a></div><div class="ttdeci">@ MPSOLVER_INFEASIBLE</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00230">linear_solver.pb.h:230</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1ba3955ab5aa529fab85eb3566271a043e2"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba3955ab5aa529fab85eb3566271a043e2">operations_research::MPSOLVER_NOT_SOLVED</a></div><div class="ttdeci">@ MPSOLVER_NOT_SOLVED</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00233">linear_solver.pb.h:233</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1ba5d004f74784501a516258dff6b7740ec"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba5d004f74784501a516258dff6b7740ec">operations_research::MPSOLVER_MODEL_INVALID</a></div><div class="ttdeci">@ MPSOLVER_MODEL_INVALID</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00236">linear_solver.pb.h:236</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1ba9cff14a44a54cc44f4b91d65e8cd73b1"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1ba9cff14a44a54cc44f4b91d65e8cd73b1">operations_research::MPSOLVER_OPTIMAL</a></div><div class="ttdeci">@ MPSOLVER_OPTIMAL</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00228">linear_solver.pb.h:228</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1badbeb0b2ee95779317b20e5876609bf04"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1badbeb0b2ee95779317b20e5876609bf04">operations_research::MPSOLVER_FEASIBLE</a></div><div class="ttdeci">@ MPSOLVER_FEASIBLE</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00229">linear_solver.pb.h:229</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html_aeaeaf340789f2dd271dcf9204279cb1baf6f49dcf49ad7df71d2e5b5f2c81ff88"><div class="ttname"><a href="namespaceoperations__research.html#aeaeaf340789f2dd271dcf9204279cb1baf6f49dcf49ad7df71d2e5b5f2c81ff88">operations_research::MPSOLVER_ABNORMAL</a></div><div class="ttdeci">@ MPSOLVER_ABNORMAL</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_8pb_8h_source.html#l00232">linear_solver.pb.h:232</a></div></div>
|
|
<div class="ttc" id="aport_2proto__utils_8h_html"><div class="ttname"><a href="port_2proto__utils_8h.html">proto_utils.h</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__parameters_8pb_8h_html"><div class="ttname"><a href="sat__parameters_8pb_8h.html">sat_parameters.pb.h</a></div></div>
|
|
<div class="ttc" id="asat__proto__solver_8h_html"><div class="ttname"><a href="sat__proto__solver_8h.html">sat_proto_solver.h</a></div></div>
|
|
<div class="ttc" id="asat__solver__utils_8h_html"><div class="ttname"><a href="sat__solver__utils_8h.html">sat_solver_utils.h</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_problem_solution_html"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_problem_solution.html">operations_research::glop::ProblemSolution</a></div><div class="ttdef"><b>Definition:</b> <a href="lp__data_8h_source.html#l00647">lp_data.h:647</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_problem_solution_html_af8a495c9872268c3e34d413d8b63ef66"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_problem_solution.html#af8a495c9872268c3e34d413d8b63ef66">operations_research::glop::ProblemSolution::primal_values</a></div><div class="ttdeci">DenseRow primal_values</div><div class="ttdef"><b>Definition:</b> <a href="lp__data_8h_source.html#l00659">lp_data.h:659</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="avlog__is__on_8h_html_a956152cad330225654d128f35c00efce"><div class="ttname"><a href="vlog__is__on_8h.html#a956152cad330225654d128f35c00efce">VLOG_IS_ON</a></div><div class="ttdeci">#define VLOG_IS_ON(verboselevel)</div><div class="ttdef"><b>Definition:</b> <a href="vlog__is__on_8h_source.html#l00041">vlog_is_on.h:41</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_4d3a5a688e4550f3d7725aaa5ab9c27b.html">linear_solver</a></li><li class="navelem"><a class="el" href="sat__proto__solver_8cc.html">sat_proto_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.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|