Files
ortools-clone/docs/cpp/result_8cc_source.html
Mizux Seiha 17edcf0e25 Update doc
2021-09-30 01:28:18 +02:00

218 lines
41 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.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: result.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
&#160;<span id="projectnumber">9.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('result_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">result.cc</div></div>
</div><!--header-->
<div class="contents">
<a href="result_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2010-2021 Google LLC</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Licensed under the Apache License, Version 2.0 (the &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">#include &quot;<a class="code" href="result_8h.html">ortools/math_opt/cpp/result.h</a>&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &quot;<a class="code" href="indexed__model_8h.html">ortools/math_opt/core/indexed_model.h</a>&quot;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &quot;ortools/math_opt/result.pb.h&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="keyword">namespace </span>math_opt {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_result_1_1_primal_solution.html#a91f2697f5bca62d6a729f67b7fa0e0d2"> 26</a></span><a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result_1_1_primal_solution.html#a91266736c5b498ef3e128f7af8154024">Result::PrimalSolution::PrimalSolution</a>(<a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_indexed_model.html">IndexedModel</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>,</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_indexed_primal_solution.html">IndexedPrimalSolution</a> indexed_solution)</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> : variable_values(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_solution.variable_values)),</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> objective_value(indexed_solution.objective_value) {}</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_result_1_1_primal_ray.html#aeafa5ebcbbcb3cd9cc8ac4aa99f8edd4"> 31</a></span><a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result_1_1_primal_ray.html#a9ea206117e5ce3c7ee6896953f3f84c3">Result::PrimalRay::PrimalRay</a>(<a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_indexed_model.html">IndexedModel</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>,</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_indexed_primal_ray.html">IndexedPrimalRay</a> indexed_ray)</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> : <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#ac4a6e078f25aa73eec5271d449a12532">variable_values</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_ray.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#ac4a6e078f25aa73eec5271d449a12532">variable_values</a>)) {}</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_result_1_1_dual_solution.html#a79fa8a5a2eeef9fc4592a71b556bd40c"> 35</a></span><a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result_1_1_dual_solution.html#a26aa149207b76b4758e3374bbb0bfc6a">Result::DualSolution::DualSolution</a>(<a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_indexed_model.html">IndexedModel</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>,</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_indexed_dual_solution.html">IndexedDualSolution</a> indexed_solution)</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> : <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a116b227550e648d43bfbaccf9557ce42">dual_values</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_solution.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a116b227550e648d43bfbaccf9557ce42">dual_values</a>)),</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#acc1f8f5ed04e9ea770b526fa34d6076c">reduced_costs</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_solution.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#acc1f8f5ed04e9ea770b526fa34d6076c">reduced_costs</a>)),</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a84f066c304d8bcbb9567be094feb9b08">objective_value</a>(indexed_solution.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a84f066c304d8bcbb9567be094feb9b08">objective_value</a>) {}</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_result_1_1_dual_ray.html#a82c03105c965bc71bfc25ce99e106927"> 41</a></span><a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result_1_1_dual_ray.html#a2b3653881f60f4bf506f6c7b95af3ef2">Result::DualRay::DualRay</a>(<a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_indexed_model.html">IndexedModel</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_indexed_dual_ray.html">IndexedDualRay</a> indexed_ray)</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> : <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a116b227550e648d43bfbaccf9557ce42">dual_values</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_ray.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a116b227550e648d43bfbaccf9557ce42">dual_values</a>)),</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#acc1f8f5ed04e9ea770b526fa34d6076c">reduced_costs</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_ray.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#acc1f8f5ed04e9ea770b526fa34d6076c">reduced_costs</a>)) {}</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_result_1_1_basis.html#a21309e1869ff8f0635e67ffcbfbd09bb"> 45</a></span><a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result_1_1_basis.html#aa26f5c33c4803f6f86e352b35c0d0c54">Result::Basis::Basis</a>(<a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_indexed_model.html">IndexedModel</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_indexed_basis.html">IndexedBasis</a> indexed_basis)</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> : <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#ab62d9dad5e21d92465fbe8c1d4b34369">constraint_status</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_basis.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#ab62d9dad5e21d92465fbe8c1d4b34369">constraint_status</a>)),</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a1e2301bdfac3bd250b16fe5ba4b22190">variable_status</a>(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <a class="code hl_namespace" href="namespacestd.html">std</a>::move(indexed_basis.<a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#a1e2301bdfac3bd250b16fe5ba4b22190">variable_status</a>)) {}</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structoperations__research_1_1math__opt_1_1_result.html#ac4f68c0ccada9fb3ecb536dc47843d40"> 49</a></span><a class="code hl_function" href="structoperations__research_1_1math__opt_1_1_result.html#ac4f68c0ccada9fb3ecb536dc47843d40">Result::Result</a>(<a class="code hl_class" href="classoperations__research_1_1math__opt_1_1_indexed_model.html">IndexedModel</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, <span class="keyword">const</span> SolveResultProto&amp; solve_result)</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> : <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a348ba125b5dd1e6ee310de01c8ae4c54">warnings</a>(solve_result.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a348ba125b5dd1e6ee310de01c8ae4c54">warnings</a>().begin(), solve_result.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a348ba125b5dd1e6ee310de01c8ae4c54">warnings</a>().end()),</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#aa40f46a9ffd7e5e740dd07f990d57078">termination_reason</a>(solve_result.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#aa40f46a9ffd7e5e740dd07f990d57078">termination_reason</a>()),</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a7427661813c1b5a8a05d02b913eadfc9">termination_detail</a>(solve_result.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a7427661813c1b5a8a05d02b913eadfc9">termination_detail</a>()),</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a6183bb2e39fee640317587be62b8a5e6">solve_stats</a>(solve_result.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a6183bb2e39fee640317587be62b8a5e6">solve_stats</a>()) {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_struct" href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html">IndexedSolutions</a> solutions = <a class="code hl_function" href="namespaceoperations__research_1_1math__opt.html#af002beeeedcb854981c62d4c5ad2ade6">IndexedSolutionsFromProto</a>(solve_result);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; primal_solution : solutions.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#a5df73a04e49101233a5fbc1cad54beb0">primal_solutions</a>) {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a195a613e6f4f428a13f8da84725a197f">primal_solutions</a>.emplace_back(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, std::move(primal_solution));</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="keywordflow">for</span> (<span class="keyword">auto</span>&amp; primal_ray : solutions.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#a8e3c4b125f4ff56f9d456091e5ba2e53">primal_rays</a>) {</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#a6e4b0ba0339c6172e9bfa3df9f8c61d8">primal_rays</a>.emplace_back(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, std::move(primal_ray));</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; dual_solution : solutions.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#a0c16ef549b2b4ae1c919befe358db529">dual_solutions</a>) {</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#add1943472845692060a2649cea91b9e5">dual_solutions</a>.emplace_back(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, std::move(dual_solution));</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> }</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; dual_ray : solutions.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#abcc13b24b3d5ff188d37fb4af2ef94e3">dual_rays</a>) {</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#af8a0308f391215b9c41b855832504054">dual_rays</a>.emplace_back(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, std::move(dual_ray));</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="keywordflow">for</span> (<span class="keyword">auto</span>&amp; base : solutions.<a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#aa6fec8367be4573de5f0c143cf8005a1">basis</a>) {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <a class="code hl_variable" href="structoperations__research_1_1math__opt_1_1_result.html#affcbde612045e8c0013c9c8b8c571aa4">basis</a>.emplace_back(<a class="code hl_variable" href="gurobi__interface_8cc.html#a0728f23c9a47655d38e0bf1a2f200bcf">model</a>, std::move(base));</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span>}</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span>} <span class="comment">// namespace math_opt</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span>} <span class="comment">// namespace operations_research</span></div>
<div class="ttc" id="aclassoperations__research_1_1math__opt_1_1_indexed_model_html"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_indexed_model.html">operations_research::math_opt::IndexedModel</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00161">indexed_model.h:161</a></div></div>
<div class="ttc" id="agurobi__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="aindexed__model_8h_html"><div class="ttname"><a href="indexed__model_8h.html">indexed_model.h</a></div></div>
<div class="ttc" id="anamespaceoperations__research_1_1math__opt_html_af002beeeedcb854981c62d4c5ad2ade6"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#af002beeeedcb854981c62d4c5ad2ade6">operations_research::math_opt::IndexedSolutionsFromProto</a></div><div class="ttdeci">IndexedSolutions IndexedSolutionsFromProto(const SolveResultProto &amp;solve_result)</div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8cc_source.html#l00455">indexed_model.cc:455</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="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_basis_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_basis.html">operations_research::math_opt::IndexedBasis</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00656">indexed_model.h:656</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_dual_ray_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_dual_ray.html">operations_research::math_opt::IndexedDualRay</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00645">indexed_model.h:645</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_dual_solution_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_dual_solution.html">operations_research::math_opt::IndexedDualSolution</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00628">indexed_model.h:628</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_primal_ray_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_primal_ray.html">operations_research::math_opt::IndexedPrimalRay</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00618">indexed_model.h:618</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_primal_solution_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_primal_solution.html">operations_research::math_opt::IndexedPrimalSolution</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00597">indexed_model.h:597</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_solutions_html"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html">operations_research::math_opt::IndexedSolutions</a></div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00664">indexed_model.h:664</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_solutions_html_a0c16ef549b2b4ae1c919befe358db529"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#a0c16ef549b2b4ae1c919befe358db529">operations_research::math_opt::IndexedSolutions::dual_solutions</a></div><div class="ttdeci">std::vector&lt; IndexedDualSolution &gt; dual_solutions</div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00667">indexed_model.h:667</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_solutions_html_a5df73a04e49101233a5fbc1cad54beb0"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#a5df73a04e49101233a5fbc1cad54beb0">operations_research::math_opt::IndexedSolutions::primal_solutions</a></div><div class="ttdeci">std::vector&lt; IndexedPrimalSolution &gt; primal_solutions</div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00665">indexed_model.h:665</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_solutions_html_a8e3c4b125f4ff56f9d456091e5ba2e53"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#a8e3c4b125f4ff56f9d456091e5ba2e53">operations_research::math_opt::IndexedSolutions::primal_rays</a></div><div class="ttdeci">std::vector&lt; IndexedPrimalRay &gt; primal_rays</div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00666">indexed_model.h:666</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_solutions_html_aa6fec8367be4573de5f0c143cf8005a1"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#aa6fec8367be4573de5f0c143cf8005a1">operations_research::math_opt::IndexedSolutions::basis</a></div><div class="ttdeci">std::vector&lt; IndexedBasis &gt; basis</div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00669">indexed_model.h:669</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_indexed_solutions_html_abcc13b24b3d5ff188d37fb4af2ef94e3"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_indexed_solutions.html#abcc13b24b3d5ff188d37fb4af2ef94e3">operations_research::math_opt::IndexedSolutions::dual_rays</a></div><div class="ttdeci">std::vector&lt; IndexedDualRay &gt; dual_rays</div><div class="ttdef"><b>Definition:</b> <a href="indexed__model_8h_source.html#l00668">indexed_model.h:668</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_1_1_basis_html_aa26f5c33c4803f6f86e352b35c0d0c54"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result_1_1_basis.html#aa26f5c33c4803f6f86e352b35c0d0c54">operations_research::math_opt::Result::Basis::Basis</a></div><div class="ttdeci">Basis()=default</div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_1_1_dual_ray_html_a2b3653881f60f4bf506f6c7b95af3ef2"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result_1_1_dual_ray.html#a2b3653881f60f4bf506f6c7b95af3ef2">operations_research::math_opt::Result::DualRay::DualRay</a></div><div class="ttdeci">DualRay()=default</div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_1_1_dual_solution_html_a26aa149207b76b4758e3374bbb0bfc6a"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result_1_1_dual_solution.html#a26aa149207b76b4758e3374bbb0bfc6a">operations_research::math_opt::Result::DualSolution::DualSolution</a></div><div class="ttdeci">DualSolution()=default</div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_1_1_primal_ray_html_a9ea206117e5ce3c7ee6896953f3f84c3"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result_1_1_primal_ray.html#a9ea206117e5ce3c7ee6896953f3f84c3">operations_research::math_opt::Result::PrimalRay::PrimalRay</a></div><div class="ttdeci">PrimalRay()=default</div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_1_1_primal_solution_html_a91266736c5b498ef3e128f7af8154024"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result_1_1_primal_solution.html#a91266736c5b498ef3e128f7af8154024">operations_research::math_opt::Result::PrimalSolution::PrimalSolution</a></div><div class="ttdeci">PrimalSolution()=default</div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a116b227550e648d43bfbaccf9557ce42"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a116b227550e648d43bfbaccf9557ce42">operations_research::math_opt::Result::dual_values</a></div><div class="ttdeci">const LinearConstraintMap&lt; double &gt; &amp; dual_values() const</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00217">result.h:217</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a195a613e6f4f428a13f8da84725a197f"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a195a613e6f4f428a13f8da84725a197f">operations_research::math_opt::Result::primal_solutions</a></div><div class="ttdeci">std::vector&lt; PrimalSolution &gt; primal_solutions</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00276">result.h:276</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a1e2301bdfac3bd250b16fe5ba4b22190"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a1e2301bdfac3bd250b16fe5ba4b22190">operations_research::math_opt::Result::variable_status</a></div><div class="ttdeci">const VariableMap&lt; BasisStatus &gt; &amp; variable_status() const</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00264">result.h:264</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a348ba125b5dd1e6ee310de01c8ae4c54"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a348ba125b5dd1e6ee310de01c8ae4c54">operations_research::math_opt::Result::warnings</a></div><div class="ttdeci">std::vector&lt; std::string &gt; warnings</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00269">result.h:269</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a6183bb2e39fee640317587be62b8a5e6"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a6183bb2e39fee640317587be62b8a5e6">operations_research::math_opt::Result::solve_stats</a></div><div class="ttdeci">SolveStatsProto solve_stats</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00273">result.h:273</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a6e4b0ba0339c6172e9bfa3df9f8c61d8"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a6e4b0ba0339c6172e9bfa3df9f8c61d8">operations_research::math_opt::Result::primal_rays</a></div><div class="ttdeci">std::vector&lt; PrimalRay &gt; primal_rays</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00277">result.h:277</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a7427661813c1b5a8a05d02b913eadfc9"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a7427661813c1b5a8a05d02b913eadfc9">operations_research::math_opt::Result::termination_detail</a></div><div class="ttdeci">std::string termination_detail</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00272">result.h:272</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_a84f066c304d8bcbb9567be094feb9b08"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#a84f066c304d8bcbb9567be094feb9b08">operations_research::math_opt::Result::objective_value</a></div><div class="ttdeci">double objective_value() const</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00174">result.h:174</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_aa40f46a9ffd7e5e740dd07f990d57078"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#aa40f46a9ffd7e5e740dd07f990d57078">operations_research::math_opt::Result::termination_reason</a></div><div class="ttdeci">SolveResultProto::TerminationReason termination_reason</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00270">result.h:270</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_ab62d9dad5e21d92465fbe8c1d4b34369"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#ab62d9dad5e21d92465fbe8c1d4b34369">operations_research::math_opt::Result::constraint_status</a></div><div class="ttdeci">const LinearConstraintMap&lt; BasisStatus &gt; &amp; constraint_status() const</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00258">result.h:258</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_ac4a6e078f25aa73eec5271d449a12532"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#ac4a6e078f25aa73eec5271d449a12532">operations_research::math_opt::Result::variable_values</a></div><div class="ttdeci">const VariableMap&lt; double &gt; &amp; variable_values() const</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00191">result.h:191</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_ac4f68c0ccada9fb3ecb536dc47843d40"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#ac4f68c0ccada9fb3ecb536dc47843d40">operations_research::math_opt::Result::Result</a></div><div class="ttdeci">Result(IndexedModel *model, const SolveResultProto &amp;solve_result)</div><div class="ttdef"><b>Definition:</b> <a href="result_8cc_source.html#l00049">result.cc:49</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_acc1f8f5ed04e9ea770b526fa34d6076c"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#acc1f8f5ed04e9ea770b526fa34d6076c">operations_research::math_opt::Result::reduced_costs</a></div><div class="ttdeci">const VariableMap&lt; double &gt; &amp; reduced_costs() const</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00227">result.h:227</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_add1943472845692060a2649cea91b9e5"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#add1943472845692060a2649cea91b9e5">operations_research::math_opt::Result::dual_solutions</a></div><div class="ttdeci">std::vector&lt; DualSolution &gt; dual_solutions</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00280">result.h:280</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_af8a0308f391215b9c41b855832504054"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#af8a0308f391215b9c41b855832504054">operations_research::math_opt::Result::dual_rays</a></div><div class="ttdeci">std::vector&lt; DualRay &gt; dual_rays</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00281">result.h:281</a></div></div>
<div class="ttc" id="astructoperations__research_1_1math__opt_1_1_result_html_affcbde612045e8c0013c9c8b8c571aa4"><div class="ttname"><a href="structoperations__research_1_1math__opt_1_1_result.html#affcbde612045e8c0013c9c8b8c571aa4">operations_research::math_opt::Result::basis</a></div><div class="ttdeci">std::vector&lt; Basis &gt; basis</div><div class="ttdef"><b>Definition:</b> <a href="result_8h_source.html#l00287">result.h:287</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_dd5645fbbabcdccb47d1d6db92f0f35b.html">cpp</a></li><li class="navelem"><a class="el" href="result_8cc.html">result.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.2 </li>
</ul>
</div>
</body>
</html>