127 lines
28 KiB
HTML
127 lines
28 KiB
HTML
<!-- HTML header for doxygen 1.8.18-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.15"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OR-Tools: solver_interface.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>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(initResizable);
|
|
/* @license-end */</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">OR-Tools
|
|
 <span id="projectnumber">9.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.15 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('solver__interface_8cc_source.html','');});
|
|
/* @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">solver_interface.cc</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="solver__interface_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-2021 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="solver__interface_8h.html">ortools/math_opt/core/solver_interface.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 <algorithm></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <utility></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="base_2logging_8h.html">ortools/base/logging.h</a>"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "absl/container/flat_hash_map.h"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "absl/status/status.h"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "absl/status/statusor.h"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "absl/strings/str_cat.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "absl/strings/str_join.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "absl/synchronization/mutex.h"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="map__util_8h.html">ortools/base/map_util.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "ortools/math_opt/model.pb.h"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "ortools/math_opt/parameters.pb.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</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="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">namespace </span>math_opt {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ab14e7952908d0b84f0229f4facac936c"> 37</a></span> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html">AllSolversRegistry</a>* <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ab14e7952908d0b84f0229f4facac936c">AllSolversRegistry::Instance</a>() {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">static</span> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html">AllSolversRegistry</a>* <span class="keyword">const</span> instance = <span class="keyword">new</span> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html">AllSolversRegistry</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> instance;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ad14cff326f6d83749e274d8b4b09b031"> 42</a></span> <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ad14cff326f6d83749e274d8b4b09b031">AllSolversRegistry::Register</a>(<span class="keyword">const</span> SolverType solver_type,</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classoperations__research_1_1math__opt_1_1_solver_interface.html#ad44289e368657b6706160eae15313ae6">SolverInterface::Factory</a> factory) {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">bool</span> inserted;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">const</span> absl::MutexLock lock(&mutex_);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  inserted =</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  registered_solvers_.emplace(solver_type, std::move(factory)).second;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(inserted) << <span class="stringliteral">"Solver type: "</span> << <a class="code" href="namespaceoperations__research.html#a760c8bbae2698a370004ceaaba9d9920">ProtoEnumToString</a>(solver_type)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  << <span class="stringliteral">" already registered."</span>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ae1a34fd7a48051d9f87f2703c4e6afcf"> 54</a></span> absl::StatusOr<std::unique_ptr<SolverInterface>> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ae1a34fd7a48051d9f87f2703c4e6afcf">AllSolversRegistry::Create</a>(</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  SolverType solver_type, <span class="keyword">const</span> ModelProto& <a class="code" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>,</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">const</span> SolverInitializerProto& initializer)<span class="keyword"> const </span>{</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1math__opt_1_1_solver_interface.html#ad44289e368657b6706160eae15313ae6">SolverInterface::Factory</a>* factory = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">const</span> absl::MutexLock lock(&mutex_);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  factory = <a class="code" href="namespacegtl.html#ab9e05694d7776f2eef357feca8b9d647">gtl::FindOrNull</a>(registered_solvers_, solver_type);</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">if</span> (factory == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> absl::InvalidArgumentError(</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  absl::StrCat(<span class="stringliteral">"Solver type: "</span>, <a class="code" href="namespaceoperations__research.html#a760c8bbae2698a370004ceaaba9d9920">ProtoEnumToString</a>(solver_type),</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="stringliteral">" is not registered."</span>));</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> (*factory)(<a class="code" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, initializer);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ab4f4a888035210f4732e397430df74e3"> 70</a></span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ab4f4a888035210f4732e397430df74e3">AllSolversRegistry::IsRegistered</a>(<span class="keyword">const</span> SolverType solver_type)<span class="keyword"> const </span>{</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">const</span> absl::MutexLock lock(&mutex_);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> registered_solvers_.contains(solver_type);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#a9c66233d84a474617058fbfd40d66417"> 75</a></span> std::vector<SolverType> <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#a9c66233d84a474617058fbfd40d66417">AllSolversRegistry::RegisteredSolvers</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  std::vector<SolverType> result;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> absl::MutexLock lock(&mutex_);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& kv_pair : registered_solvers_) {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  result.push_back(kv_pair.first);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  std::sort(result.begin(), result.end());</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#a9c32ef3022cd0c9999df129ed9c5bfb1"> 87</a></span> std::string <a class="code" href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#a9c32ef3022cd0c9999df129ed9c5bfb1">AllSolversRegistry::RegisteredSolversToString</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  std::vector<std::string> solver_names;</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="keyword">const</span> absl::MutexLock lock(&mutex_);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& kv_pair : registered_solvers_) {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  solver_names.push_back(<a class="code" href="namespaceoperations__research.html#a760c8bbae2698a370004ceaaba9d9920">ProtoEnumToString</a>(kv_pair.first));</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>  std::sort(solver_names.begin(), solver_names.end());</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> absl::StrCat(<span class="stringliteral">"["</span>, absl::StrJoin(solver_names, <span class="stringliteral">","</span>), <span class="stringliteral">"]"</span>);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> } <span class="comment">// namespace math_opt</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> } <span class="comment">// namespace operations_research</span></div><div class="ttc" id="base_2logging_8h_html_a3e1cfef60e774a81f30eaddf26a3a274"><div class="ttname"><a href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a></div><div class="ttdeci">#define CHECK(condition)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00491">base/logging.h:491</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html">operations_research::math_opt::AllSolversRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8h_source.html#l00098">solver_interface.h:98</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html_ab4f4a888035210f4732e397430df74e3"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ab4f4a888035210f4732e397430df74e3">operations_research::math_opt::AllSolversRegistry::IsRegistered</a></div><div class="ttdeci">bool IsRegistered(SolverType solver_type) const</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8cc_source.html#l00070">solver_interface.cc:70</a></div></div>
|
|
<div class="ttc" id="gurobi__interface_8cc_html_a0728f23c9a47655d38e0bf1a2f200bcf"><div class="ttname"><a href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a></div><div class="ttdeci">GRBmodel * model</div><div class="ttdef"><b>Definition:</b> <a href="gurobi__interface_8cc_source.html#l00273">gurobi_interface.cc:273</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html_ad14cff326f6d83749e274d8b4b09b031"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ad14cff326f6d83749e274d8b4b09b031">operations_research::math_opt::AllSolversRegistry::Register</a></div><div class="ttdeci">void Register(SolverType solver_type, SolverInterface::Factory factory)</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8cc_source.html#l00042">solver_interface.cc:42</a></div></div>
|
|
<div class="ttc" id="map__util_8h_html"><div class="ttname"><a href="map__util_8h.html">map_util.h</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html_ae1a34fd7a48051d9f87f2703c4e6afcf"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ae1a34fd7a48051d9f87f2703c4e6afcf">operations_research::math_opt::AllSolversRegistry::Create</a></div><div class="ttdeci">absl::StatusOr< std::unique_ptr< SolverInterface > > Create(SolverType solver_type, const ModelProto &model, const SolverInitializerProto &initializer) const</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8cc_source.html#l00054">solver_interface.cc:54</a></div></div>
|
|
<div class="ttc" id="port_2proto__utils_8h_html"><div class="ttname"><a href="port_2proto__utils_8h.html">proto_utils.h</a></div></div>
|
|
<div class="ttc" id="namespaceoperations__research_html_a760c8bbae2698a370004ceaaba9d9920"><div class="ttname"><a href="namespaceoperations__research.html#a760c8bbae2698a370004ceaaba9d9920">operations_research::ProtoEnumToString</a></div><div class="ttdeci">std::string ProtoEnumToString(ProtoEnumType enum_value)</div><div class="ttdef"><b>Definition:</b> <a href="port_2proto__utils_8h_source.html#l00046">port/proto_utils.h:46</a></div></div>
|
|
<div class="ttc" id="base_2logging_8h_html"><div class="ttname"><a href="base_2logging_8h.html">logging.h</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html_a9c32ef3022cd0c9999df129ed9c5bfb1"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#a9c32ef3022cd0c9999df129ed9c5bfb1">operations_research::math_opt::AllSolversRegistry::RegisteredSolversToString</a></div><div class="ttdeci">std::string RegisteredSolversToString() const</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8cc_source.html#l00087">solver_interface.cc:87</a></div></div>
|
|
<div class="ttc" id="namespaceoperations__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="classoperations__research_1_1math__opt_1_1_solver_interface_html_ad44289e368657b6706160eae15313ae6"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_solver_interface.html#ad44289e368657b6706160eae15313ae6">operations_research::math_opt::SolverInterface::Factory</a></div><div class="ttdeci">std::function< absl::StatusOr< std::unique_ptr< SolverInterface > >(const ModelProto &model, const SolverInitializerProto &initializer)> Factory</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8h_source.html#l00066">solver_interface.h:66</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html_ab14e7952908d0b84f0229f4facac936c"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#ab14e7952908d0b84f0229f4facac936c">operations_research::math_opt::AllSolversRegistry::Instance</a></div><div class="ttdeci">static AllSolversRegistry * Instance()</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8cc_source.html#l00037">solver_interface.cc:37</a></div></div>
|
|
<div class="ttc" id="namespacegtl_html_ab9e05694d7776f2eef357feca8b9d647"><div class="ttname"><a href="namespacegtl.html#ab9e05694d7776f2eef357feca8b9d647">gtl::FindOrNull</a></div><div class="ttdeci">const Collection::value_type::second_type * FindOrNull(const Collection &collection, const typename Collection::value_type::first_type &key)</div><div class="ttdef"><b>Definition:</b> <a href="map__util_8h_source.html#l00060">map_util.h:60</a></div></div>
|
|
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_all_solvers_registry_html_a9c66233d84a474617058fbfd40d66417"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_all_solvers_registry.html#a9c66233d84a474617058fbfd40d66417">operations_research::math_opt::AllSolversRegistry::RegisteredSolvers</a></div><div class="ttdeci">std::vector< SolverType > RegisteredSolvers() const</div><div class="ttdef"><b>Definition:</b> <a href="solver__interface_8cc_source.html#l00075">solver_interface.cc:75</a></div></div>
|
|
<div class="ttc" id="solver__interface_8h_html"><div class="ttname"><a href="solver__interface_8h.html">solver_interface.h</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_1defc00030ff81d309105e053121082f.html">math_opt</a></li><li class="navelem"><a class="el" href="dir_d5b95ec3710e8b09bb3a6564ed5074d8.html">core</a></li><li class="navelem"><a class="el" href="solver__interface_8cc.html">solver_interface.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.8.15 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|