Files
ortools-clone/docs/cpp/model__summary_8h_source.html

294 lines
49 KiB
HTML
Raw Normal View History

2021-04-27 23:00:03 +02:00
<!-- 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"/>
2022-01-17 21:42:14 +01:00
<meta name="generator" content="Doxygen 1.9.3"/>
2021-04-27 23:00:03 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: model_summary.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
2022-03-04 00:11:33 +01:00
&#160;<span id="projectnumber">9.3</span>
2021-04-27 23:00:03 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-01-17 21:42:14 +01:00
<!-- Generated by Doxygen 1.9.3 -->
2021-04-27 23:00:03 +02:00
<script type="text/javascript">
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2021-04-27 23:00:03 +02:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
2021-04-27 23:00:03 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-17 21:42:14 +01:00
/* @license-end */
</script>
2021-04-27 23:00:03 +02:00
<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">
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('model__summary_8h_source.html',''); initResizable(); });
2021-04-27 23:00:03 +02:00
/* @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">
2022-01-17 21:42:14 +01:00
<div class="headertitle"><div class="title">model_summary.h</div></div>
2021-04-27 23:00:03 +02:00
</div><!--header-->
<div class="contents">
2022-01-17 21:42:14 +01:00
<a href="model__summary_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2010-2021 Google LLC</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">//</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// limitations under the License.</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#ifndef OR_TOOLS_MATH_OPT_CORE_MODEL_SUMMARY_H_</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#define OR_TOOLS_MATH_OPT_CORE_MODEL_SUMMARY_H_</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;initializer_list&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
2022-03-04 00:11:33 +01:00
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &quot;absl/container/flat_hash_map.h&quot;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &quot;absl/strings/string_view.h&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &quot;<a class="code" href="linked__hash__map_8h.html">ortools/base/linked_hash_map.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &quot;<a class="code" href="base_2logging_8h.html">ortools/base/logging.h</a>&quot;</span></div>
2022-01-17 21:42:14 +01:00
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &quot;<a class="code" href="map__util_8h.html">ortools/base/map_util.h</a>&quot;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research_1_1math__opt.html">math_opt</a> {</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment">// Maintains a bidirectional mapping between names and ids, e.g. as used for</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment">// variables and linear constraints.</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment">//</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="comment">// The following invariants are enforced:</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="comment">// * Ids must be unique and increasing (in insertion order).</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="comment">// * Ids are non-negative.</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="comment">// * Ids are not equal to std::numeric_limits&lt;int64_t&gt;::max()</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="comment">// * Ids removed are never reused.</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="comment">// * Names must be either empty or unique.</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html"> 41</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html">IdNameBiMap</a> {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aea2d0b9faecdc42388d611669d103ea5"> 43</a></span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aea2d0b9faecdc42388d611669d103ea5">IdNameBiMap</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// This constructor CHECKs that the input ids are sorted in increasing</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// order. This constructor is expected to be used only for unit tests of</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// validation code.</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aea2d0b9faecdc42388d611669d103ea5">IdNameBiMap</a>(std::initializer_list&lt;std::pair&lt;int64_t, absl::string_view&gt;&gt; ids);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// Inserts the provided id and associate the provided name to it. CHECKs that</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// id &gt;= next_free_id() and that when the name is nonempty it is not already</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// present. As a side effect it updates next_free_id to id + 1.</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a9ee8daab4dcb82a570f0da7ffc6917d9">Insert</a>(int64_t <span class="keywordtype">id</span>, std::string <a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>);</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// Removes the given id. CHECKs that it is present.</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a6f0cc3269c2fcbf599483ae1f0f20265">Erase</a>(int64_t <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a3d7966ee882774b7bf3daee9f309b3d2">HasId</a>(int64_t <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a0f5f4064d0d99941370e84fd40efbfd8">HasName</a>(absl::string_view <a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#abcfbdba215d3b15fbb4b682969943a6e">Empty</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a24926108b770033792d015cb86aeffb3">Size</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// The next id that has never been used (0 initially since ids are</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="comment">// non-negative).</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">inline</span> int64_t <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a20ff4e7191d0ae50de670edbc175c5ec">next_free_id</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// Updates next_free_id(). CHECKs that the provided id is greater than any</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// exiting id and non negative.</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="comment">//</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// In practice this should only be used to increase the next_free_id() value</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// in cases where a ModelSummary is built with an existing model but we know</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// some ids of removed elements have already been used.</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a7953e67dd4265f82d5bde2ea8e9b8dcf">SetNextFreeId</a>(int64_t new_next_free_id);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="comment">// Iteration order is in increasing id order.</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a690df44141250ae6426fe1d0a8ce9e81"> 76</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classgtl_1_1linked__hash__map.html">gtl::linked_hash_map&lt;int64_t, std::string&gt;</a>&amp; <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a690df44141250ae6426fe1d0a8ce9e81">id_to_name</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> id_to_name_;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aa9bad97533316af90b223df45b1a3d5c"> 79</a></span> <span class="keyword">const</span> absl::flat_hash_map&lt;absl::string_view, int64_t&gt;&amp; <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aa9bad97533316af90b223df45b1a3d5c">nonempty_name_to_id</a>()<span class="keyword"></span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="keyword"> const </span>{</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> nonempty_name_to_id_;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// Next unused id.</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> int64_t next_free_id_ = 0;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="comment">// Pointer stability for name strings and iterating in insertion order are</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// both needed (so we do not use flat_hash_map).</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_class" href="classgtl_1_1linked__hash__map.html">gtl::linked_hash_map&lt;int64_t, std::string&gt;</a> id_to_name_;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> absl::flat_hash_map&lt;absl::string_view, int64_t&gt; nonempty_name_to_id_;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>};</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_model_summary.html"> 94</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_model_summary.html">ModelSummary</a> {</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_model_summary.html#a1cbe44d3fff3e870ed00ac9c657d7dfb"> 95</a></span> <a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html">IdNameBiMap</a> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_model_summary.html#a1cbe44d3fff3e870ed00ac9c657d7dfb">variables</a>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_model_summary.html#a9cfc0d8ea5cf26ee3b87427b27f20fe7"> 96</a></span> <a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html">IdNameBiMap</a> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_model_summary.html#a9cfc0d8ea5cf26ee3b87427b27f20fe7">linear_constraints</a>;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span>};</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="comment">// Inline function implementations</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="comment"></span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a9ee8daab4dcb82a570f0da7ffc6917d9"> 103</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a9ee8daab4dcb82a570f0da7ffc6917d9">IdNameBiMap::Insert</a>(<span class="keyword">const</span> int64_t <span class="keywordtype">id</span>, std::string <a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>) {</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_define" href="base_2logging_8h.html#a7cc25402ecd7591b4c39934dd656b1f9">CHECK_GE</a>(<span class="keywordtype">id</span>, next_free_id_);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_define" href="base_2logging_8h.html#a4bd2e815ca2f702a4b6aa744b1ff3b82">CHECK_LT</a>(<span class="keywordtype">id</span>, <a class="code hl_variable" href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">std::numeric_limits&lt;int64_t&gt;::max</a>());</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> next_free_id_ = <span class="keywordtype">id</span> + 1;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">const</span> <span class="keyword">auto</span> [it, success] = id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#abd3f9628431e3b1d415058ba5604c17c">emplace</a>(<span class="keywordtype">id</span>, std::move(<a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>));</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(success) &lt;&lt; <span class="stringliteral">&quot;id: &quot;</span> &lt;&lt; id;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">const</span> absl::string_view name_view(it-&gt;second);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">if</span> (!name_view.empty()) {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_function" href="namespacegtl.html#a5c0d4dea208db4deaa285c06b78d8181">gtl::InsertOrDie</a>(&amp;nonempty_name_to_id_, name_view, <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span>}</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a6f0cc3269c2fcbf599483ae1f0f20265"> 116</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a6f0cc3269c2fcbf599483ae1f0f20265">IdNameBiMap::Erase</a>(<span class="keyword">const</span> int64_t <span class="keywordtype">id</span>) {</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">const</span> <span class="keyword">auto</span> it = id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#a7cf08543f2be71ec28f0403a2d090f01">find</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(it != id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#acad38d52497a975bfb6f2f6acd76631f">end</a>()) &lt;&lt; id;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">const</span> absl::string_view name_view(it-&gt;second);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordflow">if</span> (!name_view.empty()) {</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_define" href="base_2logging_8h.html#a7c0ce053b28d53aa4eaf3eb7fb71663b">CHECK_EQ</a>(1, nonempty_name_to_id_.erase(name_view))</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> &lt;&lt; <span class="stringliteral">&quot;name: &quot;</span> &lt;&lt; name_view &lt;&lt; <span class="stringliteral">&quot; id: &quot;</span> &lt;&lt; id;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> }</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#a88ef02f036fd0de2acebe7fdc11f9218">erase</a>(it);</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span>}</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a3d7966ee882774b7bf3daee9f309b3d2"> 126</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a3d7966ee882774b7bf3daee9f309b3d2">IdNameBiMap::HasId</a>(<span class="keyword">const</span> int64_t <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">return</span> id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#a1860aaaacecc9d6b40f994b928190e66">contains</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span>}</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a0f5f4064d0d99941370e84fd40efbfd8"> 129</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a0f5f4064d0d99941370e84fd40efbfd8">IdNameBiMap::HasName</a>(<span class="keyword">const</span> absl::string_view <a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <a class="code hl_define" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(!<a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>.empty());</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">return</span> nonempty_name_to_id_.contains(<a class="code hl_variable" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a>);</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span>}</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#abcfbdba215d3b15fbb4b682969943a6e"> 134</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#abcfbdba215d3b15fbb4b682969943a6e">IdNameBiMap::Empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#a644718bb2fb240de962dc3c9a1fdf0dc">empty</a>(); }</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a24926108b770033792d015cb86aeffb3"> 136</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a24926108b770033792d015cb86aeffb3">IdNameBiMap::Size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#a60304b65bf89363bcc3165d3cde67f86">size</a>(); }</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a20ff4e7191d0ae50de670edbc175c5ec"> 138</a></span>int64_t <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a20ff4e7191d0ae50de670edbc175c5ec">IdNameBiMap::next_free_id</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> next_free_id_; }</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a7953e67dd4265f82d5bde2ea8e9b8dcf"> 140</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a7953e67dd4265f82d5bde2ea8e9b8dcf">IdNameBiMap::SetNextFreeId</a>(<span class="keyword">const</span> int64_t new_next_free_id) {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#abcfbdba215d3b15fbb4b682969943a6e">Empty</a>()) {</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">const</span> int64_t largest_id = id_to_name_.<a class="code hl_function" href="classgtl_1_1linked__hash__map.html#af71e6c1eccbc12e9339c00a86a981a43">back</a>().first;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_define" href="base_2logging_8h.html#a7e03ec13560fa94a8fea569960d7efc6">CHECK_GT</a>(new_next_free_id, largest_id);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_define" href="base_2logging_8h.html#a7cc25402ecd7591b4c39934dd656b1f9">CHECK_GE</a>(new_next_free_id, 0);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> }</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> next_free_id_ = new_next_free_id;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span>}</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span>} <span class="comment">// namespace math_opt</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>} <span class="comment">// namespace operations_research</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span><span class="preprocessor">#endif </span><span class="comment">// OR_TOOLS_MATH_OPT_CORE_MODEL_SUMMARY_H_</span></div>
<div class="ttc" id="aalldiff__cst_8cc_html_a26e6db9bcc64b584051ecc28171ed11f"><div class="ttname"><a href="alldiff__cst_8cc.html#a26e6db9bcc64b584051ecc28171ed11f">max</a></div><div class="ttdeci">int64_t max</div><div class="ttdef"><b>Definition:</b> <a href="alldiff__cst_8cc_source.html#l00140">alldiff_cst.cc:140</a></div></div>
<div class="ttc" id="abase_2logging_8h_html"><div class="ttname"><a href="base_2logging_8h.html">logging.h</a></div></div>
<div class="ttc" id="abase_2logging_8h_html_a3e1cfef60e774a81f30eaddf26a3a274"><div class="ttname"><a href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a></div><div class="ttdeci">#define CHECK(condition)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00495">base/logging.h:495</a></div></div>
2022-03-04 00:11:33 +01:00
<div class="ttc" id="abase_2logging_8h_html_a4bd2e815ca2f702a4b6aa744b1ff3b82"><div class="ttname"><a href="base_2logging_8h.html#a4bd2e815ca2f702a4b6aa744b1ff3b82">CHECK_LT</a></div><div class="ttdeci">#define CHECK_LT(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00706">base/logging.h:706</a></div></div>
<div class="ttc" id="abase_2logging_8h_html_a7c0ce053b28d53aa4eaf3eb7fb71663b"><div class="ttname"><a href="base_2logging_8h.html#a7c0ce053b28d53aa4eaf3eb7fb71663b">CHECK_EQ</a></div><div class="ttdeci">#define CHECK_EQ(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00703">base/logging.h:703</a></div></div>
<div class="ttc" id="abase_2logging_8h_html_a7cc25402ecd7591b4c39934dd656b1f9"><div class="ttname"><a href="base_2logging_8h.html#a7cc25402ecd7591b4c39934dd656b1f9">CHECK_GE</a></div><div class="ttdeci">#define CHECK_GE(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00707">base/logging.h:707</a></div></div>
<div class="ttc" id="abase_2logging_8h_html_a7e03ec13560fa94a8fea569960d7efc6"><div class="ttname"><a href="base_2logging_8h.html#a7e03ec13560fa94a8fea569960d7efc6">CHECK_GT</a></div><div class="ttdeci">#define CHECK_GT(val1, val2)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00708">base/logging.h:708</a></div></div>
2022-01-17 21:42:14 +01:00
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html">gtl::linked_hash_map&lt; int64_t, std::string &gt;</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_a1860aaaacecc9d6b40f994b928190e66"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#a1860aaaacecc9d6b40f994b928190e66">gtl::linked_hash_map::contains</a></div><div class="ttdeci">bool contains(const key_arg&lt; K &gt; &amp;key) const</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00366">linked_hash_map.h:366</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_a60304b65bf89363bcc3165d3cde67f86"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#a60304b65bf89363bcc3165d3cde67f86">gtl::linked_hash_map::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00273">linked_hash_map.h:273</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_a644718bb2fb240de962dc3c9a1fdf0dc"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#a644718bb2fb240de962dc3c9a1fdf0dc">gtl::linked_hash_map::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00275">linked_hash_map.h:275</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_a7cf08543f2be71ec28f0403a2d090f01"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#a7cf08543f2be71ec28f0403a2d090f01">gtl::linked_hash_map::find</a></div><div class="ttdeci">iterator find(const key_arg&lt; K &gt; &amp;key)</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00348">linked_hash_map.h:348</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_a88ef02f036fd0de2acebe7fdc11f9218"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#a88ef02f036fd0de2acebe7fdc11f9218">gtl::linked_hash_map::erase</a></div><div class="ttdeci">size_type erase(const key_arg&lt; K &gt; &amp;key)</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00314">linked_hash_map.h:314</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_abd3f9628431e3b1d415058ba5604c17c"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#abd3f9628431e3b1d415058ba5604c17c">gtl::linked_hash_map::emplace</a></div><div class="ttdeci">std::pair&lt; iterator, bool &gt; emplace(Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00496">linked_hash_map.h:496</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_acad38d52497a975bfb6f2f6acd76631f"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#acad38d52497a975bfb6f2f6acd76631f">gtl::linked_hash_map::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00280">linked_hash_map.h:280</a></div></div>
<div class="ttc" id="aclassgtl_1_1linked__hash__map_html_af71e6c1eccbc12e9339c00a86a981a43"><div class="ttname"><a href="classgtl_1_1linked__hash__map.html#af71e6c1eccbc12e9339c00a86a981a43">gtl::linked_hash_map::back</a></div><div class="ttdeci">reference back()</div><div class="ttdef"><b>Definition:</b> <a href="linked__hash__map_8h_source.html#l00292">linked_hash_map.h:292</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html">operations_research::math_opt::IdNameBiMap</a></div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00041">model_summary.h:41</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a0f5f4064d0d99941370e84fd40efbfd8"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a0f5f4064d0d99941370e84fd40efbfd8">operations_research::math_opt::IdNameBiMap::HasName</a></div><div class="ttdeci">bool HasName(absl::string_view name) const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00129">model_summary.h:129</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a20ff4e7191d0ae50de670edbc175c5ec"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a20ff4e7191d0ae50de670edbc175c5ec">operations_research::math_opt::IdNameBiMap::next_free_id</a></div><div class="ttdeci">int64_t next_free_id() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00138">model_summary.h:138</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a24926108b770033792d015cb86aeffb3"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a24926108b770033792d015cb86aeffb3">operations_research::math_opt::IdNameBiMap::Size</a></div><div class="ttdeci">int Size() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00136">model_summary.h:136</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a3d7966ee882774b7bf3daee9f309b3d2"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a3d7966ee882774b7bf3daee9f309b3d2">operations_research::math_opt::IdNameBiMap::HasId</a></div><div class="ttdeci">bool HasId(int64_t id) const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00126">model_summary.h:126</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a690df44141250ae6426fe1d0a8ce9e81"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a690df44141250ae6426fe1d0a8ce9e81">operations_research::math_opt::IdNameBiMap::id_to_name</a></div><div class="ttdeci">const gtl::linked_hash_map&lt; int64_t, std::string &gt; &amp; id_to_name() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00076">model_summary.h:76</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a6f0cc3269c2fcbf599483ae1f0f20265"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a6f0cc3269c2fcbf599483ae1f0f20265">operations_research::math_opt::IdNameBiMap::Erase</a></div><div class="ttdeci">void Erase(int64_t id)</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00116">model_summary.h:116</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a7953e67dd4265f82d5bde2ea8e9b8dcf"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a7953e67dd4265f82d5bde2ea8e9b8dcf">operations_research::math_opt::IdNameBiMap::SetNextFreeId</a></div><div class="ttdeci">void SetNextFreeId(int64_t new_next_free_id)</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00140">model_summary.h:140</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a9ee8daab4dcb82a570f0da7ffc6917d9"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a9ee8daab4dcb82a570f0da7ffc6917d9">operations_research::math_opt::IdNameBiMap::Insert</a></div><div class="ttdeci">void Insert(int64_t id, std::string name)</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00103">model_summary.h:103</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_aa9bad97533316af90b223df45b1a3d5c"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aa9bad97533316af90b223df45b1a3d5c">operations_research::math_opt::IdNameBiMap::nonempty_name_to_id</a></div><div class="ttdeci">const absl::flat_hash_map&lt; absl::string_view, int64_t &gt; &amp; nonempty_name_to_id() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00079">model_summary.h:79</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_abcfbdba215d3b15fbb4b682969943a6e"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#abcfbdba215d3b15fbb4b682969943a6e">operations_research::math_opt::IdNameBiMap::Empty</a></div><div class="ttdeci">bool Empty() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00134">model_summary.h:134</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_id_name_bi_map_html_aea2d0b9faecdc42388d611669d103ea5"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#aea2d0b9faecdc42388d611669d103ea5">operations_research::math_opt::IdNameBiMap::IdNameBiMap</a></div><div class="ttdeci">IdNameBiMap()=default</div></div>
<div class="ttc" id="adefault__search_8cc_html_ac673bc430bdc3fdaa09f7becf98ef267"><div class="ttname"><a href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a></div><div class="ttdeci">const std::string name</div><div class="ttdef"><b>Definition:</b> <a href="default__search_8cc_source.html#l00813">default_search.cc:813</a></div></div>
<div class="ttc" id="alinked__hash__map_8h_html"><div class="ttname"><a href="linked__hash__map_8h.html">linked_hash_map.h</a></div></div>
<div class="ttc" id="amap__util_8h_html"><div class="ttname"><a href="map__util_8h.html">map_util.h</a></div></div>
<div class="ttc" id="anamespacegtl_html_a5c0d4dea208db4deaa285c06b78d8181"><div class="ttname"><a href="namespacegtl.html#a5c0d4dea208db4deaa285c06b78d8181">gtl::InsertOrDie</a></div><div class="ttdeci">void InsertOrDie(Collection *const collection, const typename Collection::value_type &amp;value)</div><div class="ttdef"><b>Definition:</b> <a href="map__util_8h_source.html#l00154">map_util.h:154</a></div></div>
<div class="ttc" id="anamespaceoperations__research_1_1math__opt_html"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html">operations_research::math_opt</a></div><div class="ttdef"><b>Definition:</b> <a href="arrow__operator__proxy_8h_source.html#l00020">arrow_operator_proxy.h:20</a></div></div>
<div class="ttc" id="anamespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_model_summary_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_model_summary.html">operations_research::math_opt::ModelSummary</a></div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00094">model_summary.h:94</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_model_summary_html_a1cbe44d3fff3e870ed00ac9c657d7dfb"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_model_summary.html#a1cbe44d3fff3e870ed00ac9c657d7dfb">operations_research::math_opt::ModelSummary::variables</a></div><div class="ttdeci">IdNameBiMap variables</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00095">model_summary.h:95</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_model_summary_html_a9cfc0d8ea5cf26ee3b87427b27f20fe7"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_model_summary.html#a9cfc0d8ea5cf26ee3b87427b27f20fe7">operations_research::math_opt::ModelSummary::linear_constraints</a></div><div class="ttdeci">IdNameBiMap linear_constraints</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00096">model_summary.h:96</a></div></div>
2021-04-27 23:00:03 +02:00
</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>
2021-09-20 15:57:27 +02:00
<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="model__summary_8h.html">model_summary.h</a></li>
2021-04-27 23:00:03 +02:00
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
2022-01-17 21:42:14 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.3 </li>
2021-04-27 23:00:03 +02:00
</ul>
</div>
</body>
</html>