Files
ortools-clone/docs/cpp/gscip_8h_source.html
2021-09-20 15:57:27 +02:00

229 lines
160 KiB
HTML

<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: gscip.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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
&#160;<span id="projectnumber">9.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('gscip_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">gscip.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="gscip_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2021 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// Simplified bindings for the SCIP solver. This is not designed to be used</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// directly by users, the API is not friendly to a modeler. For most common</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">// cases, use MPSolver instead.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">// Notable differences between gSCIP and SCIP:</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">// * Unless callbacks are used, gSCIP only exposes the SCIP stage PROBLEM to</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">// the user through public APIs.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">// * Instead of the stateful SCIP parameters API, parameters are passed in at</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">// Solve() time and cleared at the end of solve. Parameters that effect</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">// problem creation are thus not supported.</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">// * gSCIP uses std::numeric_limits&lt;double&gt;::infinity(), rather than SCIPs</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// infinity (a default value of 1e20). Doubles with absolute value &gt;= 1e20</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">// are automatically converting to std::numeric_limits&lt;double&gt;::infinity()</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment">// by gSCIP. Changing the underlying SCIP&#39;s infinity is not supported.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment">// * absl::Status and absl::StatusOr are used to propagate SCIP errors (and on</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">// a best effort basis, also filter out bad input to gSCIP functions).</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment">// A note on error propagation and reliability:</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment">// Many methods on SCIP return an error code. Errors can be triggered by</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// both invalid input and bugs in SCIP. We propagate these errors back to the</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment">// user through gSCIP through Status and StatusOr. If you are solving a single</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">// MIP and you have previously successfully solved similar MIPs, it is unlikely</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment">// gSCIP would return any status errors. Depending on your application, CHECK</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment">// failing on these errors may be appropriate (e.g. a benchmark that is run by</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">// hand). If you are solving a very large number of MIPs (e.g. in a flume job),</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment">// your instances are numerically challenging, or the model/data are drawn from</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment">// an unreliable source, or you are running a server that cannot crash, you may</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment">// want to try and process these errors instead. Note that on bad instances,</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">// SCIP may still crash, so highly reliable systems should run SCIP in a</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">// separate process.</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">// NOTE(user): much of the API uses const std::string&amp; instead of</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment">// absl::string_view because the underlying SCIP API needs a null terminated</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment">// char*.</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#ifndef OR_TOOLS_GSCIP_GSCIP_H_</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#define OR_TOOLS_GSCIP_GSCIP_H_</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#include &lt;limits&gt;</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_map.h&quot;</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_set.h&quot;</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="preprocessor">#include &quot;absl/status/status.h&quot;</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#include &quot;absl/status/statusor.h&quot;</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="preprocessor">#include &quot;absl/strings/string_view.h&quot;</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="preprocessor">#include &quot;absl/types/span.h&quot;</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gscip_8pb_8h.html">ortools/gscip/gscip.pb.h</a>&quot;</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gscip__message__handler_8h.html">ortools/gscip/gscip_message_handler.h</a>&quot;</span> <span class="comment">// IWYU pragma: export</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor">#include &quot;scip/scip.h&quot;</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#include &quot;scip/scip_prob.h&quot;</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor">#include &quot;scip/type_cons.h&quot;</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#include &quot;scip/type_scip.h&quot;</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor">#include &quot;scip/type_var.h&quot;</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html#af7de3fbd471bc6e23faa9f23b179f05a"> 74</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespaceoperations__research.html#af7de3fbd471bc6e23faa9f23b179f05a">GScipSolution</a> = absl::flat_hash_map&lt;SCIP_VAR*, double&gt;;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="comment">// The result of GScip::Solve(). Contains the solve status, statistics, and the</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="comment">// solutions found.</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_result.html"> 78</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_result.html">GScipResult</a> {</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_result.html#aa65b9761edfce6a7d5ab57637f3c9f66"> 79</a></span>&#160; <a class="code" href="classoperations__research_1_1_g_scip_output.html">GScipOutput</a> <a class="code" href="structoperations__research_1_1_g_scip_result.html#aa65b9761edfce6a7d5ab57637f3c9f66">gscip_output</a>;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="comment">// The number of solutions returned is at most GScipParameters::num_solutions.</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="comment">// They are ordered from best objective value to worst. When</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="comment">// gscip_output.status() is optimal, solutions will have at least one element.</span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_result.html#aa59ecdbfde1d018595d3d2d16690c21f"> 83</a></span>&#160; std::vector&lt;GScipSolution&gt; <a class="code" href="structoperations__research_1_1_g_scip_result.html#aa59ecdbfde1d018595d3d2d16690c21f">solutions</a>;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Of the same size as solutions.</span></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_result.html#a36cc891b2bc282e2325c30bef4592fa0"> 85</a></span>&#160; std::vector&lt;double&gt; <a class="code" href="structoperations__research_1_1_g_scip_result.html#a36cc891b2bc282e2325c30bef4592fa0">objective_values</a>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="comment">// Advanced use below</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="comment">// If the problem was unbounded, a primal ray in the unbounded direction of</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="comment">// the LP relaxation should be produced.</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_result.html#a358105708d68cd851ea717cddd35f94d"> 90</a></span>&#160; absl::flat_hash_map&lt;SCIP_VAR*, double&gt; <a class="code" href="structoperations__research_1_1_g_scip_result.html#a358105708d68cd851ea717cddd35f94d">primal_ray</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// TODO(user): add dual support:</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">// 1. The dual solution for LPs.</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">// 2. The dual ray for infeasible LP/MIPs.</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;};</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="comment">// Models the constraint lb &lt;= a*x &lt;= ub. Members variables and coefficients</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="comment">// must have the same size.</span></div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_linear_range.html"> 98</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_linear_range.html">GScipLinearRange</a> {</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_linear_range.html#a1e2f9a2352c1d9a6cada9544898fceec"> 99</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1_g_scip_linear_range.html#a1e2f9a2352c1d9a6cada9544898fceec">lower_bound</a> = -std::numeric_limits&lt;double&gt;::infinity();</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_linear_range.html#a623b8d74e724b276e4bac87e61445c7f"> 100</a></span>&#160; std::vector&lt;SCIP_VAR*&gt; <a class="code" href="structoperations__research_1_1_g_scip_linear_range.html#a623b8d74e724b276e4bac87e61445c7f">variables</a>;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_linear_range.html#ab1734711414da2e668957d24a41b1ddf"> 101</a></span>&#160; std::vector&lt;double&gt; <a class="code" href="structoperations__research_1_1_g_scip_linear_range.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_linear_range.html#a1ba5ca0f61f2fa13bd23bf0f89004f35"> 102</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1_g_scip_linear_range.html#a1ba5ca0f61f2fa13bd23bf0f89004f35">upper_bound</a> = std::numeric_limits&lt;double&gt;::infinity();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;};</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="comment">// A variable is implied integer if the integrality constraint is not required</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="comment">// for the model to be valid, but the variable takes an integer value in any</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="comment">// optimal solution to the problem.</span></div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9"> 108</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9">GScipVarType</a> { <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9a0445605283282f17470ec2fa998a78c8">kContinuous</a>, <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9ab7400e777db61f5f726caeeab0a7dcc2">kInteger</a>, <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9a6d717c161afb5e72ce7f4d5ffe84b1b7">kImpliedInteger</a> };</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="keyword">struct </span>GScipIndicatorConstraint;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="keyword">struct </span>GScipLogicalConstraintData;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="comment">// Some advanced features, defined at the end of the header file.</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="keyword">struct </span>GScipQuadraticRange;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="keyword">struct </span>GScipSOSData;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="keyword">struct </span>GScipVariableOptions;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="keyword">const</span> GScipVariableOptions&amp; <a class="code" href="namespaceoperations__research.html#a8d7943b6a04aa96bd8908f9551d77996">DefaultGScipVariableOptions</a>();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="keyword">struct </span>GScipConstraintOptions;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="keyword">const</span> GScipConstraintOptions&amp; <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>();</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html#ab3fef3403adfa105ee7ab96c042ec638"> 121</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespaceoperations__research.html#ab3fef3403adfa105ee7ab96c042ec638">GScipBranchingPriority</a> = absl::flat_hash_map&lt;SCIP_VAR*, int&gt;;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="keyword">enum class</span> <a class="code" href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249f">GScipHintResult</a>;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment">// A thin wrapper around the SCIP solver that provides C++ bindings that are</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment">// idiomatic for Google. Unless callbacks are used, the SCIP stage is always</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment">// PROBLEM.</span></div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_g_scip.html"> 127</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1_g_scip.html">GScip</a> {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="comment">// Create a new GScip (the constructor is private). The default objective</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="comment">// direction is minimization.</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">static</span> absl::StatusOr&lt;std::unique_ptr&lt;GScip&gt;&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a7138e926354dd2774a796e38ab5cbff5">Create</a>(</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">const</span> std::string&amp; problem_name);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <a class="code" href="classoperations__research_1_1_g_scip.html#a63198666016f72327add694d50584c25">~GScip</a>();</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">static</span> std::string <a class="code" href="classoperations__research_1_1_g_scip.html#ae3e5b76d61c889cb4158f19b5175f6b6">ScipVersion</a>();</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="comment">// After Solve() the parameters are reset and SCIP stage is restored to</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="comment">// PROBLEM. &quot;legacy_params&quot; are in the format of legacy_scip_params.h and are</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="comment">// applied after &quot;params&quot;. Use of &quot;legacy_params&quot; is discouraged.</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="comment">// The returned StatusOr will contain an error only if an:</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="comment">// * An underlying function from SCIP fails.</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="comment">// * There is an I/O error with managing SCIP output.</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="comment">// The above cases are not mutually exclusive. If the problem is infeasible,</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="comment">// this will be reflected in the value of GScipResult::gscip_output::status.</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; absl::StatusOr&lt;GScipResult&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#ac1263357bfc90432ab8260ec236d756c">Solve</a>(</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1_g_scip_parameters.html">GScipParameters</a>&amp; params = <a class="code" href="classoperations__research_1_1_g_scip_parameters.html">GScipParameters</a>(),</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">const</span> std::string&amp; legacy_params = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <a class="code" href="namespaceoperations__research.html#a2899c1afc60224e18c3d9d4a95c5064e">GScipMessageHandler</a> message_handler = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="comment">// Basic Model Construction</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="comment">// Use true for maximization, false for minimization.</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a798afe0406ce57a7bc4c07308cf1ddb6">SetMaximize</a>(<span class="keywordtype">bool</span> is_maximize);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a0f5f466045c197474f0284ac58971049">SetObjectiveOffset</a>(<span class="keywordtype">double</span> offset);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="comment">// The returned SCIP_VAR is owned by GScip. With default options, the</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="comment">// returned variable will have the same lifetime as GScip (if instead,</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="comment">// GScipVariableOptions::keep_alive is false, SCIP may free the variable at</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="comment">// any time, see GScipVariableOptions::keep_alive for details).</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; absl::StatusOr&lt;SCIP_VAR*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a0fc54fff7fc2db6aae9022575429cbf9">AddVariable</a>(</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keywordtype">double</span> lb, <span class="keywordtype">double</span> ub, <span class="keywordtype">double</span> obj_coef, <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9">GScipVarType</a> var_type,</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keyword">const</span> std::string&amp; var_name = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_variable_options.html">GScipVariableOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a8d7943b6a04aa96bd8908f9551d77996">DefaultGScipVariableOptions</a>());</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="comment">// The returned SCIP_CONS is owned by GScip. With default options, the</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">// returned variable will have the same lifetime as GScip (if instead,</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="comment">// GScipConstraintOptions::keep_alive is false, SCIP may free the constraint</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="comment">// at any time, see GScipConstraintOptions::keep_alive for details).</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="comment">// Can be called while creating the model or in a callback (e.g. in a</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="comment">// GScipConstraintHandler).</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a2b576f762517cd3e18d24d02435eb3f6">AddLinearConstraint</a>(</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_linear_range.html">GScipLinearRange</a>&amp; range, <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="comment">// Model Queries</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1_g_scip.html#aff2dd45c50b5ceaee4400ad00eda9d70">ObjectiveIsMaximize</a>();</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#ae06be987b47dcbc322e03255ff7350dd">ObjectiveOffset</a>();</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#a9a252572508e8d71acd7ee48676b22b1">Lb</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#a72757cd571318a6798c97d29704461c6">Ub</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#a76f27b95756d12d10d0b672e7aa6235b">ObjCoef</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9">GScipVarType</a> <a class="code" href="classoperations__research_1_1_g_scip.html#ad188cab613ea9202fabe54994aae06c3">VarType</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; absl::string_view <a class="code" href="classoperations__research_1_1_g_scip.html#af71d5017bfdab986cc8232aa02ef0e88">Name</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_g_scip.html#a9b13ae69ab8a143d3bdfddb9f82315f2"> 190</a></span>&#160; <span class="keyword">const</span> absl::flat_hash_set&lt;SCIP_VAR*&gt;&amp; <a class="code" href="classoperations__research_1_1_g_scip.html#a9b13ae69ab8a143d3bdfddb9f82315f2">variables</a>() { <span class="keywordflow">return</span> variables_; }</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="comment">// These methods works on all constraint types.</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; absl::string_view <a class="code" href="classoperations__research_1_1_g_scip.html#af71d5017bfdab986cc8232aa02ef0e88">Name</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1_g_scip.html#a3b380041a0c3eb1fe5dfde7f2689dea1">IsConstraintLinear</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_g_scip.html#a296a25c6e891463636046f4b3954faac"> 195</a></span>&#160; <span class="keyword">const</span> absl::flat_hash_set&lt;SCIP_CONS*&gt;&amp; <a class="code" href="classoperations__research_1_1_g_scip.html#a296a25c6e891463636046f4b3954faac">constraints</a>() { <span class="keywordflow">return</span> constraints_; }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="comment">// These methods will CHECK fail if constraint is not a linear constraint.</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; absl::Span&lt;const double&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#ade90e10778675afca189add661ca038d">LinearConstraintCoefficients</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; absl::Span&lt;SCIP_VAR* const&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a8550e8f3ecd7d4aa89047c715083b406">LinearConstraintVariables</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#aa81a598004e15c1ebd7040c6381a7780">LinearConstraintLb</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#a0eebc9c33ee1b5b4a61a995797119230">LinearConstraintUb</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="comment">// Model Updates (needed for incrementalism)</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a9c390a28a330df6cfbc7da0781f6bb60">SetLb</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, <span class="keywordtype">double</span> lb);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#adfbdf4198cee0cbb963c1fadfb12cbb2">SetUb</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, <span class="keywordtype">double</span> ub);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#ae0e285496aca2f3c2c8518ddfc8707d9">SetObjCoef</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, <span class="keywordtype">double</span> obj_coef);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#ad1e7d37397a21166a53ac59367fb0307">SetVarType</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, <a class="code" href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9">GScipVarType</a> var_type);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="comment">// Warning: you need to ensure that no constraint has a reference to this</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="comment">// variable before deleting it, or undefined behavior will occur. For linear</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="comment">// constraints, you can set the coefficient of this variable to zero to remove</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="comment">// the variable from the constriant.</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a12188b733b48222690ec625769938521">DeleteVariable</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; <span class="comment">// Checks if SafeBulkDelete will succeed for vars, and returns a description</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="comment">// the problematic variables/constraints on a failure (the returned status</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="comment">// will not contain a propagated SCIP error). Will not modify the underyling</span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="comment">// SCIP, it is safe to continue using this if an error is returned.</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a1d8aee68f0155379887bed02f4d326de">CanSafeBulkDelete</a>(<span class="keyword">const</span> absl::flat_hash_set&lt;SCIP_VAR*&gt;&amp; vars);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="comment">// Attempts to remove vars from all constraints and then remove vars from</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="comment">// the model. As of August 7, 2020, will fail if the model contains any</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="comment">// constraints that are not linear.</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="comment">// Will call CanSafeBulkDelete above, but can also return an error Status</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="comment">// propagated from SCIP. Do not assume SCIP is in a valid state if this fails.</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a651cd5d6198e0ecd237503cb068d52e5">SafeBulkDelete</a>(<span class="keyword">const</span> absl::flat_hash_set&lt;SCIP_VAR*&gt;&amp; vars);</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="comment">// These methods will CHECK fail if constraint is not a linear constraint.</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#ab22519612d720ca9f8a498be5096b399">SetLinearConstraintLb</a>(SCIP_CONS* constraint, <span class="keywordtype">double</span> lb);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a629a4ead76ebba3e3816cef7bd5b118f">SetLinearConstraintUb</a>(SCIP_CONS* constraint, <span class="keywordtype">double</span> ub);</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#aab3e957e02549515bcbf5a08e57f95e5">SetLinearConstraintCoef</a>(SCIP_CONS* constraint, SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>,</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <span class="keywordtype">double</span> <a class="code" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="comment">// Works on all constraint types. Unlike DeleteVariable, no special action is</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="comment">// required before deleting a constraint.</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#a55a72539d63e4b1619900907167993f5">DeleteConstraint</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="comment">// Nonlinear constraint types.</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="comment">// For now, only basic support (adding to the model) is provided. Reading and</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <span class="comment">// updating support may be added in the future.</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="comment">// Adds a constraint of the form:</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="comment">// if z then a * x &lt;= b</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="comment">// where z is a binary variable, x is a vector of decision variables, a is</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="comment">// vector of constants, and b is a constant. z can be negated.</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <span class="comment">// NOTE(user): options.modifiable is ignored.</span></div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a9991cb920857500706ba6863637ab7b6">AddIndicatorConstraint</a>(</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html">GScipIndicatorConstraint</a>&amp; indicator_constraint,</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; <span class="comment">// Adds a constraint of form lb &lt;= x * Q * x + a * x &lt;= ub.</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; <span class="comment">// NOTE(user): options.modifiable and options.sticking_at_node are ignored.</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#ae429c1ac9342e0f0185169be5d34a021">AddQuadraticConstraint</a>(</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html">GScipQuadraticRange</a>&amp; range, <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <span class="comment">// Adds the constraint:</span></div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; <span class="comment">// logical_data.resultant = AND_i logical_data.operators[i],</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; <span class="comment">// where logical_data.resultant and logical_data.operators[i] are all binary</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <span class="comment">// variables.</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a228924ec570e67f8f6b01e638f06c98f">AddAndConstraint</a>(</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_logical_constraint_data.html">GScipLogicalConstraintData</a>&amp; logical_data,</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <span class="comment">// Adds the constraint:</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <span class="comment">// logical_data.resultant = OR_i logical_data.operators[i],</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <span class="comment">// where logical_data.resultant and logical_data.operators[i] must be binary</span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; <span class="comment">// variables.</span></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a122bc247cae2b6136e2629f0e1f5b5b1">AddOrConstraint</a>(</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_logical_constraint_data.html">GScipLogicalConstraintData</a>&amp; logical_data,</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="comment">// Adds the constraint that at most one of the variables in sos_data can be</span></div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="comment">// nonzero. The variables can be integer or continuous. See GScipSOSData for</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; <span class="comment">// details.</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; <span class="comment">// NOTE(user): options.modifiable is ignored (these constraints are not</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <span class="comment">// modifiable).</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#afd384ebf9ff05c00f6ef9bb745d3b8fd">AddSOS1Constraint</a>(</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_s_o_s_data.html">GScipSOSData</a>&amp; sos_data, <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; <span class="comment">// Adds the constraint that at most two of the variables in sos_data can be</span></div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; <span class="comment">// nonzero, and they must be adjacent under the ordering for sos_data. See</span></div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="comment">// GScipSOSData for details.</span></div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; <span class="comment">// NOTE(user): options.modifiable is ignored (these constraints are not</span></div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; <span class="comment">// modifiable).</span></div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; absl::StatusOr&lt;SCIP_CONS*&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#ae2320128d48a640a84f584a8b1a32171">AddSOS2Constraint</a>(</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_s_o_s_data.html">GScipSOSData</a>&amp; sos_data, <span class="keyword">const</span> std::string&amp; <a class="code" href="default__search_8cc.html#ac673bc430bdc3fdaa09f7becf98ef267">name</a> = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options = <a class="code" href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">DefaultGScipConstraintOptions</a>());</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="comment">// Advanced use</span></div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <span class="comment">// Returns the name of the constraint handler for this constraint.</span></div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; absl::string_view <a class="code" href="classoperations__research_1_1_g_scip.html#a41bc58f238daa9a2c12670a80413722f">ConstraintType</a>(SCIP_CONS* constraint);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160;</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; <span class="comment">// The proposed solution can be partial (only specify some of the variables)</span></div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; <span class="comment">// or complete. Complete solutions will be checked for feasibility and</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; <span class="comment">// objective quality, and might be unused for these reasons. Partial solutions</span></div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; <span class="comment">// will always be accepted.</span></div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; absl::StatusOr&lt;GScipHintResult&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#ab4799dcd789ae8e0de213d6bef76abb9">SuggestHint</a>(</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <span class="keyword">const</span> <a class="code" href="namespaceoperations__research.html#af7de3fbd471bc6e23faa9f23b179f05a">GScipSolution</a>&amp; partial_solution);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; <span class="comment">// All variables have a default branching priority of zero. Variables are</span></div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <span class="comment">// partitioned by their branching priority, and a fractional variable from the</span></div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; <span class="comment">// highest partition will always be branched on.</span></div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; <span class="comment">// TODO(user): Add support for BranchingFactor as well, this is typically</span></div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; <span class="comment">// more useful.</span></div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; absl::Status <a class="code" href="classoperations__research_1_1_g_scip.html#ad35c3fd3a5b610d01a25315fab632621">SetBranchingPriority</a>(SCIP_VAR* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>, <span class="keywordtype">int</span> priority);</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="comment">// Doubles with absolute value of at least this value are replaced by this</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="comment">// value before giving them SCIP. SCIP considers values at least this large to</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="comment">// be infinite. When querying gSCIP, if an absolute value exceeds ScipInf, it</span></div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; <span class="comment">// is replaced by std::numeric_limits&lt;double&gt;::infinity().</span></div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#aceaeef30a244c5984645a6756ddb19d7">ScipInf</a>();</div><div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_g_scip.html#af45fec81f08f7b4ee8e4528dbbb36e95"> 330</a></span>&#160; <span class="keyword">static</span> constexpr <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1_g_scip.html#af45fec81f08f7b4ee8e4528dbbb36e95">kDefaultScipInf</a> = 1e20;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="comment">// WARNING(rander): no synchronization is provided between InterruptSolve()</span></div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; <span class="comment">// and ~GScip(). These methods require mutual exclusion, the user is</span></div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <span class="comment">// responsible for ensuring this invariant.</span></div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; <span class="comment">// TODO(user): should we add a lock here? Seems a little dangerous to block</span></div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <span class="comment">// in a destructor.</span></div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1_g_scip.html#ac75b700ead5ff5d0944b5161e6dac9e8">InterruptSolve</a>();</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; <span class="comment">// These should typically not be needed.</span></div><div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="classoperations__research_1_1_g_scip.html#aee96336da8c72ee66e201fb3a2a94d0b"> 340</a></span>&#160; SCIP* <a class="code" href="classoperations__research_1_1_g_scip.html#aee96336da8c72ee66e201fb3a2a94d0b">scip</a>() { <span class="keywordflow">return</span> scip_; }</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; absl::StatusOr&lt;bool&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a8fc2c330d7cb5cfdf7e2f3e16a9404f5">DefaultBoolParamValue</a>(<span class="keyword">const</span> std::string&amp; parameter_name);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; absl::StatusOr&lt;int&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a4fd653f58a7975cf4fee1a910ab07658">DefaultIntParamValue</a>(<span class="keyword">const</span> std::string&amp; parameter_name);</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; absl::StatusOr&lt;int64_t&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a494f4578919f1dbb062bb718a291bad7">DefaultLongParamValue</a>(</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <span class="keyword">const</span> std::string&amp; parameter_name);</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; absl::StatusOr&lt;double&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a1c1e02f57914f11aa4d915763c48093d">DefaultRealParamValue</a>(</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <span class="keyword">const</span> std::string&amp; parameter_name);</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; absl::StatusOr&lt;char&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#ad3b17b0e6bb1e6128855f71aaaa35e83">DefaultCharParamValue</a>(<span class="keyword">const</span> std::string&amp; parameter_name);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; absl::StatusOr&lt;std::string&gt; <a class="code" href="classoperations__research_1_1_g_scip.html#a8aa70e249c66856869d934bdeba22b08">DefaultStringParamValue</a>(</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; <span class="keyword">const</span> std::string&amp; parameter_name);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160;</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1_g_scip.html">GScip</a>(SCIP* <a class="code" href="classoperations__research_1_1_g_scip.html#aee96336da8c72ee66e201fb3a2a94d0b">scip</a>);</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; <span class="comment">// Releases SCIP memory.</span></div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; absl::Status CleanUp();</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160;</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; absl::Status SetParams(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1_g_scip_parameters.html">GScipParameters</a>&amp; params,</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keyword">const</span> std::string&amp; legacy_params);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; absl::Status FreeTransform();</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; <span class="comment">// Clamps d to [-ScipInf(), ScipInf()].</span></div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <span class="keywordtype">double</span> ScipInfClamp(<span class="keywordtype">double</span> d);</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; <span class="comment">// Returns +/- inf if |d| &gt;= ScipInf(), otherwise returns d.</span></div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="keywordtype">double</span> ScipInfUnclamp(<span class="keywordtype">double</span> d);</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; absl::Status MaybeKeepConstraintAlive(SCIP_CONS* constraint,</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a>&amp; options);</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; SCIP* scip_;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; absl::flat_hash_set&lt;SCIP_VAR*&gt; variables_;</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; absl::flat_hash_set&lt;SCIP_CONS*&gt; constraints_;</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160;};</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160;<span class="comment">// Advanced features below</span></div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160;</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160;<span class="comment">// Models the constraint</span></div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160;<span class="comment">// lb &lt;= x * Q * x + a * x &lt;= ub</span></div><div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html"> 377</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html">GScipQuadraticRange</a> {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; <span class="comment">// Models lb above.</span></div><div class="line"><a name="l00379"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#a1e2f9a2352c1d9a6cada9544898fceec"> 379</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#a1e2f9a2352c1d9a6cada9544898fceec">lower_bound</a> = -std::numeric_limits&lt;double&gt;::infinity();</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="comment">// Models a * x above. linear_variables and linear_coefficients must have the</span></div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="comment">// same size.</span></div><div class="line"><a name="l00383"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#adb9c98458c4fdee32cfc04f30f94505b"> 383</a></span>&#160; std::vector&lt;SCIP_Var*&gt; <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#adb9c98458c4fdee32cfc04f30f94505b">linear_variables</a>;</div><div class="line"><a name="l00384"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#aec14579470b876cfd73430466440a1aa"> 384</a></span>&#160; std::vector&lt;double&gt; <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#aec14579470b876cfd73430466440a1aa">linear_coefficients</a>;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; <span class="comment">// These three vectors must have the same size. Models x * Q * x as</span></div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; <span class="comment">// sum_i quadratic_coefficients[i] * quadratic_variables1[i]</span></div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <span class="comment">// * quadratic_variables2[i]</span></div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; <span class="comment">// Duplicate quadratic terms (e.g. i=3 encodes 4*x1*x3 and i=4 encodes</span></div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; <span class="comment">// 8*x3*x1) are added (as if you added a single entry 12*x1*x3).</span></div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; <span class="comment">// TODO(user): investigate, the documentation seems to suggest that when</span></div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; <span class="comment">// linear_variables[i] == quadratic_variables1[i] == quadratic_variables2[i]</span></div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <span class="comment">// there is some advantage.</span></div><div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#a7dcaa2059661c7d9900e718b734216c6"> 396</a></span>&#160; std::vector&lt;SCIP_Var*&gt; <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#a7dcaa2059661c7d9900e718b734216c6">quadratic_variables1</a>;</div><div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#acc27633afd4dacfb8147f38d36b89c79"> 397</a></span>&#160; std::vector&lt;SCIP_Var*&gt; <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#acc27633afd4dacfb8147f38d36b89c79">quadratic_variables2</a>;</div><div class="line"><a name="l00398"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#aee10d198804822ffadf84236cf6122f7"> 398</a></span>&#160; std::vector&lt;double&gt; <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#aee10d198804822ffadf84236cf6122f7">quadratic_coefficients</a>;</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <span class="comment">// Models ub above.</span></div><div class="line"><a name="l00401"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_quadratic_range.html#a1ba5ca0f61f2fa13bd23bf0f89004f35"> 401</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1_g_scip_quadratic_range.html#a1ba5ca0f61f2fa13bd23bf0f89004f35">upper_bound</a> = std::numeric_limits&lt;double&gt;::infinity();</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160;};</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160;</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160;<span class="comment">// Models special ordered set constraints (SOS1 and SOS2 constraints). Each</span></div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160;<span class="comment">// contains a list of variables that are implicitly ordered by the provided</span></div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160;<span class="comment">// weights, which must be distinct.</span></div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160;<span class="comment">// SOS1: At most one of the variables can be nonzero.</span></div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160;<span class="comment">// SOS2: At most two of the variables can be nonzero, and they must be</span></div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160;<span class="comment">// consecutive.</span></div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160;<span class="comment">// The weights are optional, and if not provided, the ordering in &quot;variables&quot; is</span></div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160;<span class="comment">// used.</span></div><div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_s_o_s_data.html"> 413</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_s_o_s_data.html">GScipSOSData</a> {</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; <span class="comment">// The list of variables where all but one or two must be zero. Can be integer</span></div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; <span class="comment">// or continuous variables, typically their domain will contain zero. Cannot</span></div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; <span class="comment">// be empty in a valid SOS constraint.</span></div><div class="line"><a name="l00417"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_s_o_s_data.html#a623b8d74e724b276e4bac87e61445c7f"> 417</a></span>&#160; std::vector&lt;SCIP_VAR*&gt; <a class="code" href="structoperations__research_1_1_g_scip_s_o_s_data.html#a623b8d74e724b276e4bac87e61445c7f">variables</a>;</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160;</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; <span class="comment">// Optional, can be empty. Otherwise, must have size equal to variables, and</span></div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <span class="comment">// values must be distinct. Determines an &quot;ordering&quot; over the variables</span></div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; <span class="comment">// (smallest weight to largest). Additionally, the numeric values of</span></div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; <span class="comment">// the weights are used to make branching decisions in a solver specific way,</span></div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; <span class="comment">// for details, see:</span></div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160; <span class="comment">// * https://scip.zib.de/doc/html/cons__sos1_8c.php</span></div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; <span class="comment">// * https://scip.zib.de/doc/html/cons__sos2_8c.php.</span></div><div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_s_o_s_data.html#afb3abd037b2d13083df69a4ca658fc60"> 426</a></span>&#160; std::vector&lt;double&gt; <a class="code" href="structoperations__research_1_1_g_scip_s_o_s_data.html#afb3abd037b2d13083df69a4ca658fc60">weights</a>;</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160;};</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160;</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160;<span class="comment">// Models the constraint z = 1 =&gt; a * x &lt;= b</span></div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160;<span class="comment">// If negate_indicator, then instead: z = 0 =&gt; a * x &lt;= b</span></div><div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_indicator_constraint.html"> 431</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html">GScipIndicatorConstraint</a> {</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; <span class="comment">// The z variable above.</span></div><div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_indicator_constraint.html#afea502b78833028b3e2b519fa038201a"> 433</a></span>&#160; SCIP_VAR* <a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html#afea502b78833028b3e2b519fa038201a">indicator_variable</a> = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_indicator_constraint.html#a70c2b6b65c1a890cb66da7e0dbdee607"> 434</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html#a70c2b6b65c1a890cb66da7e0dbdee607">negate_indicator</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; <span class="comment">// The x variable above.</span></div><div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_indicator_constraint.html#af61405a35aed8f0e7ed852fc9b3dc44d"> 436</a></span>&#160; std::vector&lt;SCIP_Var*&gt; <a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html#af61405a35aed8f0e7ed852fc9b3dc44d">variables</a>;</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160; <span class="comment">// a above. Must have the same size as x.</span></div><div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_indicator_constraint.html#ab1734711414da2e668957d24a41b1ddf"> 438</a></span>&#160; std::vector&lt;double&gt; <a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; <span class="comment">// b above.</span></div><div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_indicator_constraint.html#a1ba5ca0f61f2fa13bd23bf0f89004f35"> 440</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1_g_scip_indicator_constraint.html#a1ba5ca0f61f2fa13bd23bf0f89004f35">upper_bound</a> = std::numeric_limits&lt;double&gt;::infinity();</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160;};</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160;</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160;<span class="comment">// Data for constraint of the form resultant = f(operators), e.g.:</span></div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;<span class="comment">// resultant = AND_i operators[i]</span></div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160;<span class="comment">// For existing constraints (e.g. AND, OR) resultant and operators[i] should all</span></div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160;<span class="comment">// be binary variables, this my change. See use in GScip for details.</span></div><div class="line"><a name="l00447"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_logical_constraint_data.html"> 447</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_logical_constraint_data.html">GScipLogicalConstraintData</a> {</div><div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_logical_constraint_data.html#a5a375db8deba588909ad2a2346883353"> 448</a></span>&#160; SCIP_VAR* <a class="code" href="structoperations__research_1_1_g_scip_logical_constraint_data.html#a5a375db8deba588909ad2a2346883353">resultant</a> = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_logical_constraint_data.html#a5fc0b4bc35eb8a9e3b60669fdd75bf4b"> 449</a></span>&#160; std::vector&lt;SCIP_VAR*&gt; <a class="code" href="structoperations__research_1_1_g_scip_logical_constraint_data.html#a5fc0b4bc35eb8a9e3b60669fdd75bf4b">operators</a>;</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160;};</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno"><a class="line" href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249f"> 452</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249f">GScipHintResult</a> {</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; <span class="comment">// Hint was not feasible.</span></div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; <a class="code" href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249faa4d66aafc8bcba36b995fd8be0483574">kInfeasible</a>,</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; <span class="comment">// Hint was not good enough to keep.</span></div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; <a class="code" href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249facea229a90d55b36e1f03b3d47e62552e">kRejected</a>,</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; <span class="comment">// Hint was kept. Partial solutions are not checked for feasibility, they</span></div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160; <span class="comment">// are always accepted.</span></div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; <a class="code" href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249fa23a4a0f8680dc3e9598c45931493e1d5">kAccepted</a></div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160;};</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160;<span class="comment">// Advanced use. Options to use when creating a variable.</span></div><div class="line"><a name="l00463"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_variable_options.html"> 463</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_variable_options.html">GScipVariableOptions</a> {</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; <span class="comment">// SCIP options. Descriptions are from the SCIP documentation, e.g.</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; <span class="comment">// SCIPcreateVar:</span></div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <span class="comment">// https://scip.zib.de/doc/html/group__PublicVariableMethods.php#ga7a37fe4dc702dadecc4186b9624e93fc</span></div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160;</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; <span class="comment">// Should var&#39;s column be present in the initial root LP?</span></div><div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_variable_options.html#aa87a85dc3f3ab85f078e036a4c9e8a66"> 471</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_variable_options.html#aa87a85dc3f3ab85f078e036a4c9e8a66">initial</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160;</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; <span class="comment">// Is var&#39;s column removable from the LP (due to aging or cleanup)?</span></div><div class="line"><a name="l00474"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_variable_options.html#a0d5a29925a9355418d112e7a0c538a73"> 474</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_variable_options.html#a0d5a29925a9355418d112e7a0c538a73">removable</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160;</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; <span class="comment">// gSCIP options.</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; <span class="comment">// If keep_alive=true, the returned variable will not to be freed until after</span></div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; <span class="comment">// ~GScip() is called. Otherwise, the returned variable could be freed</span></div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; <span class="comment">// internally by SCIP at any point, and it is not safe to hold a reference to</span></div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; <span class="comment">// the returned variable.</span></div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; <span class="comment">// The primary reason to set keep_alive=false is if you are adding many</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; <span class="comment">// variables in a callback (in branch and price), and you expect that most of</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; <span class="comment">// them will be deleted.</span></div><div class="line"><a name="l00488"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_variable_options.html#acdba73411523e7ef35a653e8d4e20830"> 488</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_variable_options.html#acdba73411523e7ef35a653e8d4e20830">keep_alive</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160;};</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160;</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160;<span class="comment">// Advanced use. Options to use when creating a constraint.</span></div><div class="line"><a name="l00492"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html"> 492</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html">GScipConstraintOptions</a> {</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160; <span class="comment">// SCIP options. Descriptions are from the SCIP documentation, e.g.</span></div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>&#160; <span class="comment">// SCIPcreateConsLinear:</span></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>&#160; <span class="comment">// https://scip.zib.de/doc/html/group__CONSHDLRS.php#gaea3b4db21fe214be5db047e08b46b50e</span></div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160;</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160; <span class="comment">// Should the LP relaxation of constraint be in the initial LP? False for lazy</span></div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160; <span class="comment">// constraints (true in callbacks).</span></div><div class="line"><a name="l00501"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#aa87a85dc3f3ab85f078e036a4c9e8a66"> 501</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#aa87a85dc3f3ab85f078e036a4c9e8a66">initial</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>&#160; <span class="comment">// Should the constraint be separated during LP processing?</span></div><div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#a62f216dcd76e89d9009c5eb9a436bdf1"> 503</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#a62f216dcd76e89d9009c5eb9a436bdf1">separate</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160; <span class="comment">// Should the constraint be enforced during node processing? True for model</span></div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>&#160; <span class="comment">// constraints, false for redundant constraints.</span></div><div class="line"><a name="l00506"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#ab2c4dc79e21a75f205d49d9f9e5133a7"> 506</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#ab2c4dc79e21a75f205d49d9f9e5133a7">enforce</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>&#160; <span class="comment">// Should the constraint be checked for feasibility? True for model</span></div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>&#160; <span class="comment">// constraints, false for redundant constraints.</span></div><div class="line"><a name="l00509"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#a08e5d4acf3bed996e35f8c4354412bcf"> 509</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#a08e5d4acf3bed996e35f8c4354412bcf">check</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; <span class="comment">// Should the constraint be propagated during node processing?</span></div><div class="line"><a name="l00511"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#a9ad8871a886a207356c7d4a3527a19e6"> 511</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#a9ad8871a886a207356c7d4a3527a19e6">propagate</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>&#160; <span class="comment">// Is constraint only valid locally? Must be true for branching constraints.</span></div><div class="line"><a name="l00513"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#af6a258d8f3ee5206d682d799316314b1"> 513</a></span>&#160; <span class="keywordtype">bool</span> local = <span class="keyword">false</span>;</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160; <span class="comment">// Is constraint modifiable (subject to column generation)? In column</span></div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160; <span class="comment">// generation applications, set to true if pricing adds coefficients to this</span></div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160; <span class="comment">// constraint.</span></div><div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#a883ae210392142bdc0c07032eb0fc0d4"> 517</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#a883ae210392142bdc0c07032eb0fc0d4">modifiable</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>&#160; <span class="comment">// Is constraint subject to aging? Set to true for own cuts which are</span></div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>&#160; <span class="comment">// separated as constraints</span></div><div class="line"><a name="l00520"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#a8fcad9320dc8957d766ebf5a5293450e"> 520</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#a8fcad9320dc8957d766ebf5a5293450e">dynamic</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>&#160; <span class="comment">// Should the relaxation be removed from the LP due to aging or cleanup? Set</span></div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>&#160; <span class="comment">// to true for &#39;lazy constraints&#39; and &#39;user cuts&#39;.</span></div><div class="line"><a name="l00523"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#a0d5a29925a9355418d112e7a0c538a73"> 523</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#a0d5a29925a9355418d112e7a0c538a73">removable</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>&#160; <span class="comment">// Should the constraint always be kept at the node where it was added, even</span></div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>&#160; <span class="comment">// if it may be moved to a more global node? Usually set to false. Set to true</span></div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>&#160; <span class="comment">// for constraints that represent node data.</span></div><div class="line"><a name="l00527"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#aa31e7bf0bc0032cd1f9010efeac9e2bc"> 527</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#aa31e7bf0bc0032cd1f9010efeac9e2bc">sticking_at_node</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>&#160;</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>&#160; <span class="comment">// gSCIP options.</span></div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>&#160; <span class="comment">// ///////////////////////////////////////////////////////////////////////////</span></div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>&#160;</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>&#160; <span class="comment">// If keep_alive=true, the returned constraint will not to be freed until</span></div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>&#160; <span class="comment">// after ~GScip() is called. Otherwise, the returned constraint could be freed</span></div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>&#160; <span class="comment">// internally by SCIP at any point, and it is not safe to hold a reference to</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>&#160; <span class="comment">// the returned constraint.</span></div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>&#160; <span class="comment">// The primary reason to set keep_alive=false is if you are adding many</span></div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>&#160; <span class="comment">// constraints in a callback, and you expect that most of them will be</span></div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>&#160; <span class="comment">// deleted.</span></div><div class="line"><a name="l00541"></a><span class="lineno"><a class="line" href="structoperations__research_1_1_g_scip_constraint_options.html#acdba73411523e7ef35a653e8d4e20830"> 541</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1_g_scip_constraint_options.html#acdba73411523e7ef35a653e8d4e20830">keep_alive</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>&#160;};</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>&#160;</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>&#160;} <span class="comment">// namespace operations_research</span></div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>&#160;</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>&#160;<span class="preprocessor">#endif // OR_TOOLS_GSCIP_GSCIP_H_</span></div><div class="ttc" id="classoperations__research_1_1_g_scip_html_a629a4ead76ebba3e3816cef7bd5b118f"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a629a4ead76ebba3e3816cef7bd5b118f">operations_research::GScip::SetLinearConstraintUb</a></div><div class="ttdeci">absl::Status SetLinearConstraintUb(SCIP_CONS *constraint, double ub)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00696">gscip.cc:696</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ae0e285496aca2f3c2c8518ddfc8707d9"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ae0e285496aca2f3c2c8518ddfc8707d9">operations_research::GScip::SetObjCoef</a></div><div class="ttdeci">absl::Status SetObjCoef(SCIP_VAR *var, double obj_coef)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00589">gscip.cc:589</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ac1263357bfc90432ab8260ec236d756c"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ac1263357bfc90432ab8260ec236d756c">operations_research::GScip::Solve</a></div><div class="ttdeci">absl::StatusOr&lt; GScipResult &gt; Solve(const GScipParameters &amp;params=GScipParameters(), const std::string &amp;legacy_params=&quot;&quot;, GScipMessageHandler message_handler=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00755">gscip.cc:755</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a806751db89938de9e63c667e24db74b9"><div class="ttname"><a href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9">operations_research::GScipVarType</a></div><div class="ttdeci">GScipVarType</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00108">gscip.h:108</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_a9ad8871a886a207356c7d4a3527a19e6"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#a9ad8871a886a207356c7d4a3527a19e6">operations_research::GScipConstraintOptions::propagate</a></div><div class="ttdeci">bool propagate</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00511">gscip.h:511</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_result_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_result.html">operations_research::GScipResult</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00078">gscip.h:78</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_af45fec81f08f7b4ee8e4528dbbb36e95"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#af45fec81f08f7b4ee8e4528dbbb36e95">operations_research::GScip::kDefaultScipInf</a></div><div class="ttdeci">static constexpr double kDefaultScipInf</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00330">gscip.h:330</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_a62f216dcd76e89d9009c5eb9a436bdf1"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#a62f216dcd76e89d9009c5eb9a436bdf1">operations_research::GScipConstraintOptions::separate</a></div><div class="ttdeci">bool separate</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00503">gscip.h:503</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_afd384ebf9ff05c00f6ef9bb745d3b8fd"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#afd384ebf9ff05c00f6ef9bb745d3b8fd">operations_research::GScip::AddSOS1Constraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddSOS1Constraint(const GScipSOSData &amp;sos_data, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00500">gscip.cc:500</a></div></div>
<div class="ttc" id="gscip__message__handler_8h_html"><div class="ttname"><a href="gscip__message__handler_8h.html">gscip_message_handler.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a1c1e02f57914f11aa4d915763c48093d"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a1c1e02f57914f11aa4d915763c48093d">operations_research::GScip::DefaultRealParamValue</a></div><div class="ttdeci">absl::StatusOr&lt; double &gt; DefaultRealParamValue(const std::string &amp;parameter_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00927">gscip.cc:927</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a0fc54fff7fc2db6aae9022575429cbf9"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a0fc54fff7fc2db6aae9022575429cbf9">operations_research::GScip::AddVariable</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_VAR * &gt; AddVariable(double lb, double ub, double obj_coef, GScipVarType var_type, const std::string &amp;var_name=&quot;&quot;, const GScipVariableOptions &amp;options=DefaultGScipVariableOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00302">gscip.cc:302</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_linear_range_html_a1ba5ca0f61f2fa13bd23bf0f89004f35"><div class="ttname"><a href="structoperations__research_1_1_g_scip_linear_range.html#a1ba5ca0f61f2fa13bd23bf0f89004f35">operations_research::GScipLinearRange::upper_bound</a></div><div class="ttdeci">double upper_bound</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00102">gscip.h:102</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_result_html_a36cc891b2bc282e2325c30bef4592fa0"><div class="ttname"><a href="structoperations__research_1_1_g_scip_result.html#a36cc891b2bc282e2325c30bef4592fa0">operations_research::GScipResult::objective_values</a></div><div class="ttdeci">std::vector&lt; double &gt; objective_values</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00085">gscip.h:85</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_s_o_s_data_html_a623b8d74e724b276e4bac87e61445c7f"><div class="ttname"><a href="structoperations__research_1_1_g_scip_s_o_s_data.html#a623b8d74e724b276e4bac87e61445c7f">operations_research::GScipSOSData::variables</a></div><div class="ttdeci">std::vector&lt; SCIP_VAR * &gt; variables</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00417">gscip.h:417</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a7138e926354dd2774a796e38ab5cbff5"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a7138e926354dd2774a796e38ab5cbff5">operations_research::GScip::Create</a></div><div class="ttdeci">static absl::StatusOr&lt; std::unique_ptr&lt; GScip &gt; &gt; Create(const std::string &amp;problem_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00249">gscip.cc:249</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html">operations_research::GScip</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00127">gscip.h:127</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_linear_range_html_a1e2f9a2352c1d9a6cada9544898fceec"><div class="ttname"><a href="structoperations__research_1_1_g_scip_linear_range.html#a1e2f9a2352c1d9a6cada9544898fceec">operations_research::GScipLinearRange::lower_bound</a></div><div class="ttdeci">double lower_bound</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00099">gscip.h:99</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_indicator_constraint_html_af61405a35aed8f0e7ed852fc9b3dc44d"><div class="ttname"><a href="structoperations__research_1_1_g_scip_indicator_constraint.html#af61405a35aed8f0e7ed852fc9b3dc44d">operations_research::GScipIndicatorConstraint::variables</a></div><div class="ttdeci">std::vector&lt; SCIP_Var * &gt; variables</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00436">gscip.h:436</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_aee10d198804822ffadf84236cf6122f7"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#aee10d198804822ffadf84236cf6122f7">operations_research::GScipQuadraticRange::quadratic_coefficients</a></div><div class="ttdeci">std::vector&lt; double &gt; quadratic_coefficients</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00398">gscip.h:398</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_s_o_s_data_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_s_o_s_data.html">operations_research::GScipSOSData</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00413">gscip.h:413</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a8aa70e249c66856869d934bdeba22b08"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a8aa70e249c66856869d934bdeba22b08">operations_research::GScip::DefaultStringParamValue</a></div><div class="ttdeci">absl::StatusOr&lt; std::string &gt; DefaultStringParamValue(const std::string &amp;parameter_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00943">gscip.cc:943</a></div></div>
<div class="ttc" id="default__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="classoperations__research_1_1_g_scip_html_a9991cb920857500706ba6863637ab7b6"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a9991cb920857500706ba6863637ab7b6">operations_research::GScip::AddIndicatorConstraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddIndicatorConstraint(const GScipIndicatorConstraint &amp;indicator_constraint, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00394">gscip.cc:394</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_linear_range_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_linear_range.html">operations_research::GScipLinearRange</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00098">gscip.h:98</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_result_html_aa65b9761edfce6a7d5ab57637f3c9f66"><div class="ttname"><a href="structoperations__research_1_1_g_scip_result.html#aa65b9761edfce6a7d5ab57637f3c9f66">operations_research::GScipResult::gscip_output</a></div><div class="ttdeci">GScipOutput gscip_output</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00079">gscip.h:79</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_variable_options_html_acdba73411523e7ef35a653e8d4e20830"><div class="ttname"><a href="structoperations__research_1_1_g_scip_variable_options.html#acdba73411523e7ef35a653e8d4e20830">operations_research::GScipVariableOptions::keep_alive</a></div><div class="ttdeci">bool keep_alive</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00488">gscip.h:488</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_a7dcaa2059661c7d9900e718b734216c6"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#a7dcaa2059661c7d9900e718b734216c6">operations_research::GScipQuadraticRange::quadratic_variables1</a></div><div class="ttdeci">std::vector&lt; SCIP_Var * &gt; quadratic_variables1</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00396">gscip.h:396</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a9b13ae69ab8a143d3bdfddb9f82315f2"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a9b13ae69ab8a143d3bdfddb9f82315f2">operations_research::GScip::variables</a></div><div class="ttdeci">const absl::flat_hash_set&lt; SCIP_VAR * &gt; &amp; variables()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00190">gscip.h:190</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a63198666016f72327add694d50584c25"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a63198666016f72327add694d50584c25">operations_research::GScip::~GScip</a></div><div class="ttdeci">~GScip()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00297">gscip.cc:297</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_a1ba5ca0f61f2fa13bd23bf0f89004f35"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#a1ba5ca0f61f2fa13bd23bf0f89004f35">operations_research::GScipQuadraticRange::upper_bound</a></div><div class="ttdeci">double upper_bound</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00401">gscip.h:401</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_aff2dd45c50b5ceaee4400ad00eda9d70"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#aff2dd45c50b5ceaee4400ad00eda9d70">operations_research::GScip::ObjectiveIsMaximize</a></div><div class="ttdeci">bool ObjectiveIsMaximize()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00566">gscip.cc:566</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_logical_constraint_data_html_a5fc0b4bc35eb8a9e3b60669fdd75bf4b"><div class="ttname"><a href="structoperations__research_1_1_g_scip_logical_constraint_data.html#a5fc0b4bc35eb8a9e3b60669fdd75bf4b">operations_research::GScipLogicalConstraintData::operators</a></div><div class="ttdeci">std::vector&lt; SCIP_VAR * &gt; operators</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00449">gscip.h:449</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_result_html_aa59ecdbfde1d018595d3d2d16690c21f"><div class="ttname"><a href="structoperations__research_1_1_g_scip_result.html#aa59ecdbfde1d018595d3d2d16690c21f">operations_research::GScipResult::solutions</a></div><div class="ttdeci">std::vector&lt; GScipSolution &gt; solutions</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00083">gscip.h:83</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_indicator_constraint_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_indicator_constraint.html">operations_research::GScipIndicatorConstraint</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00431">gscip.h:431</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_aa31e7bf0bc0032cd1f9010efeac9e2bc"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#aa31e7bf0bc0032cd1f9010efeac9e2bc">operations_research::GScipConstraintOptions::sticking_at_node</a></div><div class="ttdeci">bool sticking_at_node</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00527">gscip.h:527</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ab22519612d720ca9f8a498be5096b399"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ab22519612d720ca9f8a498be5096b399">operations_research::GScip::SetLinearConstraintLb</a></div><div class="ttdeci">absl::Status SetLinearConstraintLb(SCIP_CONS *constraint, double lb)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00690">gscip.cc:690</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_aceaeef30a244c5984645a6756ddb19d7"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#aceaeef30a244c5984645a6756ddb19d7">operations_research::GScip::ScipInf</a></div><div class="ttdeci">double ScipInf()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00261">gscip.cc:261</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a72757cd571318a6798c97d29704461c6"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a72757cd571318a6798c97d29704461c6">operations_research::GScip::Ub</a></div><div class="ttdeci">double Ub(SCIP_VAR *var)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00646">gscip.cc:646</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_indicator_constraint_html_ab1734711414da2e668957d24a41b1ddf"><div class="ttname"><a href="structoperations__research_1_1_g_scip_indicator_constraint.html#ab1734711414da2e668957d24a41b1ddf">operations_research::GScipIndicatorConstraint::coefficients</a></div><div class="ttdeci">std::vector&lt; double &gt; coefficients</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00438">gscip.h:438</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aa17b6104527f45be5034e00d3c14249fa23a4a0f8680dc3e9598c45931493e1d5"><div class="ttname"><a href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249fa23a4a0f8680dc3e9598c45931493e1d5">operations_research::GScipHintResult::kAccepted</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a296a25c6e891463636046f4b3954faac"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a296a25c6e891463636046f4b3954faac">operations_research::GScip::constraints</a></div><div class="ttdeci">const absl::flat_hash_set&lt; SCIP_CONS * &gt; &amp; constraints()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00195">gscip.h:195</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a55a72539d63e4b1619900907167993f5"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a55a72539d63e4b1619900907167993f5">operations_research::GScip::DeleteConstraint</a></div><div class="ttdeci">absl::Status DeleteConstraint(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00702">gscip.cc:702</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_indicator_constraint_html_a70c2b6b65c1a890cb66da7e0dbdee607"><div class="ttname"><a href="structoperations__research_1_1_g_scip_indicator_constraint.html#a70c2b6b65c1a890cb66da7e0dbdee607">operations_research::GScipIndicatorConstraint::negate_indicator</a></div><div class="ttdeci">bool negate_indicator</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00434">gscip.h:434</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ae2320128d48a640a84f584a8b1a32171"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ae2320128d48a640a84f584a8b1a32171">operations_research::GScip::AddSOS2Constraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddSOS2Constraint(const GScipSOSData &amp;sos_data, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00527">gscip.cc:527</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ae06be987b47dcbc322e03255ff7350dd"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ae06be987b47dcbc322e03255ff7350dd">operations_research::GScip::ObjectiveOffset</a></div><div class="ttdeci">double ObjectiveOffset()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00570">gscip.cc:570</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_aa81a598004e15c1ebd7040c6381a7780"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#aa81a598004e15c1ebd7040c6381a7780">operations_research::GScip::LinearConstraintLb</a></div><div class="ttdeci">double LinearConstraintLb(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00678">gscip.cc:678</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a1d8aee68f0155379887bed02f4d326de"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a1d8aee68f0155379887bed02f4d326de">operations_research::GScip::CanSafeBulkDelete</a></div><div class="ttdeci">absl::Status CanSafeBulkDelete(const absl::flat_hash_set&lt; SCIP_VAR * &gt; &amp;vars)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00611">gscip.cc:611</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ad188cab613ea9202fabe54994aae06c3"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ad188cab613ea9202fabe54994aae06c3">operations_research::GScip::VarType</a></div><div class="ttdeci">GScipVarType VarType(SCIP_VAR *var)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00652">gscip.cc:652</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_a883ae210392142bdc0c07032eb0fc0d4"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#a883ae210392142bdc0c07032eb0fc0d4">operations_research::GScipConstraintOptions::modifiable</a></div><div class="ttdeci">bool modifiable</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00517">gscip.h:517</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_variable_options_html_aa87a85dc3f3ab85f078e036a4c9e8a66"><div class="ttname"><a href="structoperations__research_1_1_g_scip_variable_options.html#aa87a85dc3f3ab85f078e036a4c9e8a66">operations_research::GScipVariableOptions::initial</a></div><div class="ttdeci">bool initial</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00471">gscip.h:471</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a8fc2c330d7cb5cfdf7e2f3e16a9404f5"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a8fc2c330d7cb5cfdf7e2f3e16a9404f5">operations_research::GScip::DefaultBoolParamValue</a></div><div class="ttdeci">absl::StatusOr&lt; bool &gt; DefaultBoolParamValue(const std::string &amp;parameter_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00903">gscip.cc:903</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a9c390a28a330df6cfbc7da0781f6bb60"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a9c390a28a330df6cfbc7da0781f6bb60">operations_research::GScip::SetLb</a></div><div class="ttdeci">absl::Status SetLb(SCIP_VAR *var, double lb)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00577">gscip.cc:577</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aa17b6104527f45be5034e00d3c14249faa4d66aafc8bcba36b995fd8be0483574"><div class="ttname"><a href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249faa4d66aafc8bcba36b995fd8be0483574">operations_research::GScipHintResult::kInfeasible</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_variable_options_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_variable_options.html">operations_research::GScipVariableOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00463">gscip.h:463</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_ab2c4dc79e21a75f205d49d9f9e5133a7"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#ab2c4dc79e21a75f205d49d9f9e5133a7">operations_research::GScipConstraintOptions::enforce</a></div><div class="ttdeci">bool enforce</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00506">gscip.h:506</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ad3b17b0e6bb1e6128855f71aaaa35e83"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ad3b17b0e6bb1e6128855f71aaaa35e83">operations_research::GScip::DefaultCharParamValue</a></div><div class="ttdeci">absl::StatusOr&lt; char &gt; DefaultCharParamValue(const std::string &amp;parameter_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00935">gscip.cc:935</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_logical_constraint_data_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_logical_constraint_data.html">operations_research::GScipLogicalConstraintData</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00447">gscip.h:447</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_acdba73411523e7ef35a653e8d4e20830"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#acdba73411523e7ef35a653e8d4e20830">operations_research::GScipConstraintOptions::keep_alive</a></div><div class="ttdeci">bool keep_alive</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00541">gscip.h:541</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_result_html_a358105708d68cd851ea717cddd35f94d"><div class="ttname"><a href="structoperations__research_1_1_g_scip_result.html#a358105708d68cd851ea717cddd35f94d">operations_research::GScipResult::primal_ray</a></div><div class="ttdeci">absl::flat_hash_map&lt; SCIP_VAR *, double &gt; primal_ray</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00090">gscip.h:90</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a798afe0406ce57a7bc4c07308cf1ddb6"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a798afe0406ce57a7bc4c07308cf1ddb6">operations_research::GScip::SetMaximize</a></div><div class="ttdeci">absl::Status SetMaximize(bool is_maximize)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00553">gscip.cc:553</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ab3fef3403adfa105ee7ab96c042ec638"><div class="ttname"><a href="namespaceoperations__research.html#ab3fef3403adfa105ee7ab96c042ec638">operations_research::GScipBranchingPriority</a></div><div class="ttdeci">absl::flat_hash_map&lt; SCIP_VAR *, int &gt; GScipBranchingPriority</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00121">gscip.h:121</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ab4799dcd789ae8e0de213d6bef76abb9"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ab4799dcd789ae8e0de213d6bef76abb9">operations_research::GScip::SuggestHint</a></div><div class="ttdeci">absl::StatusOr&lt; GScipHintResult &gt; SuggestHint(const GScipSolution &amp;partial_solution)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00718">gscip.cc:718</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_linear_range_html_ab1734711414da2e668957d24a41b1ddf"><div class="ttname"><a href="structoperations__research_1_1_g_scip_linear_range.html#ab1734711414da2e668957d24a41b1ddf">operations_research::GScipLinearRange::coefficients</a></div><div class="ttdeci">std::vector&lt; double &gt; coefficients</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00101">gscip.h:101</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a8d7943b6a04aa96bd8908f9551d77996"><div class="ttname"><a href="namespaceoperations__research.html#a8d7943b6a04aa96bd8908f9551d77996">operations_research::DefaultGScipVariableOptions</a></div><div class="ttdeci">const GScipVariableOptions &amp; DefaultGScipVariableOptions()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00176">gscip.cc:176</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_aa87a85dc3f3ab85f078e036a4c9e8a66"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#aa87a85dc3f3ab85f078e036a4c9e8a66">operations_research::GScipConstraintOptions::initial</a></div><div class="ttdeci">bool initial</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00501">gscip.h:501</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a41bc58f238daa9a2c12670a80413722f"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a41bc58f238daa9a2c12670a80413722f">operations_research::GScip::ConstraintType</a></div><div class="ttdeci">absl::string_view ConstraintType(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00658">gscip.cc:658</a></div></div>
<div class="ttc" id="gscip_8pb_8h_html"><div class="ttname"><a href="gscip_8pb_8h.html">gscip.pb.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_parameters_html"><div class="ttname"><a href="classoperations__research_1_1_g_scip_parameters.html">operations_research::GScipParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8pb_8h_source.html#l00358">gscip.pb.h:358</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_aec14579470b876cfd73430466440a1aa"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#aec14579470b876cfd73430466440a1aa">operations_research::GScipQuadraticRange::linear_coefficients</a></div><div class="ttdeci">std::vector&lt; double &gt; linear_coefficients</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00384">gscip.h:384</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a20fcb412d90387bbb6ba128cf953c080"><div class="ttname"><a href="namespaceoperations__research.html#a20fcb412d90387bbb6ba128cf953c080">operations_research::DefaultGScipConstraintOptions</a></div><div class="ttdeci">const GScipConstraintOptions &amp; DefaultGScipConstraintOptions()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00181">gscip.cc:181</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_indicator_constraint_html_afea502b78833028b3e2b519fa038201a"><div class="ttname"><a href="structoperations__research_1_1_g_scip_indicator_constraint.html#afea502b78833028b3e2b519fa038201a">operations_research::GScipIndicatorConstraint::indicator_variable</a></div><div class="ttdeci">SCIP_VAR * indicator_variable</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00433">gscip.h:433</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ae429c1ac9342e0f0185169be5d34a021"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ae429c1ac9342e0f0185169be5d34a021">operations_research::GScip::AddQuadraticConstraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddQuadraticConstraint(const GScipQuadraticRange &amp;range, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00360">gscip.cc:360</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a806751db89938de9e63c667e24db74b9a0445605283282f17470ec2fa998a78c8"><div class="ttname"><a href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9a0445605283282f17470ec2fa998a78c8">operations_research::GScipVarType::kContinuous</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_adb9c98458c4fdee32cfc04f30f94505b"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#adb9c98458c4fdee32cfc04f30f94505b">operations_research::GScipQuadraticRange::linear_variables</a></div><div class="ttdeci">std::vector&lt; SCIP_Var * &gt; linear_variables</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00383">gscip.h:383</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aa17b6104527f45be5034e00d3c14249facea229a90d55b36e1f03b3d47e62552e"><div class="ttname"><a href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249facea229a90d55b36e1f03b3d47e62552e">operations_research::GScipHintResult::kRejected</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a228924ec570e67f8f6b01e638f06c98f"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a228924ec570e67f8f6b01e638f06c98f">operations_research::GScip::AddAndConstraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddAndConstraint(const GScipLogicalConstraintData &amp;logical_data, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00428">gscip.cc:428</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ad35c3fd3a5b610d01a25315fab632621"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ad35c3fd3a5b610d01a25315fab632621">operations_research::GScip::SetBranchingPriority</a></div><div class="ttdeci">absl::Status SetBranchingPriority(SCIP_VAR *var, int priority)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00572">gscip.cc:572</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_acc27633afd4dacfb8147f38d36b89c79"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#acc27633afd4dacfb8147f38d36b89c79">operations_research::GScipQuadraticRange::quadratic_variables2</a></div><div class="ttdeci">std::vector&lt; SCIP_Var * &gt; quadratic_variables2</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00397">gscip.h:397</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a0eebc9c33ee1b5b4a61a995797119230"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a0eebc9c33ee1b5b4a61a995797119230">operations_research::GScip::LinearConstraintUb</a></div><div class="ttdeci">double LinearConstraintUb(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00682">gscip.cc:682</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_af71d5017bfdab986cc8232aa02ef0e88"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#af71d5017bfdab986cc8232aa02ef0e88">operations_research::GScip::Name</a></div><div class="ttdeci">absl::string_view Name(SCIP_VAR *var)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00656">gscip.cc:656</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_adfbdf4198cee0cbb963c1fadfb12cbb2"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#adfbdf4198cee0cbb963c1fadfb12cbb2">operations_research::GScip::SetUb</a></div><div class="ttdeci">absl::Status SetUb(SCIP_VAR *var, double ub)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00583">gscip.cc:583</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_a8fcad9320dc8957d766ebf5a5293450e"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#a8fcad9320dc8957d766ebf5a5293450e">operations_research::GScipConstraintOptions::dynamic</a></div><div class="ttdeci">bool dynamic</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00520">gscip.h:520</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aa17b6104527f45be5034e00d3c14249f"><div class="ttname"><a href="namespaceoperations__research.html#aa17b6104527f45be5034e00d3c14249f">operations_research::GScipHintResult</a></div><div class="ttdeci">GScipHintResult</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00452">gscip.h:452</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ade90e10778675afca189add661ca038d"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ade90e10778675afca189add661ca038d">operations_research::GScip::LinearConstraintCoefficients</a></div><div class="ttdeci">absl::Span&lt; const double &gt; LinearConstraintCoefficients(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00666">gscip.cc:666</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_indicator_constraint_html_a1ba5ca0f61f2fa13bd23bf0f89004f35"><div class="ttname"><a href="structoperations__research_1_1_g_scip_indicator_constraint.html#a1ba5ca0f61f2fa13bd23bf0f89004f35">operations_research::GScipIndicatorConstraint::upper_bound</a></div><div class="ttdeci">double upper_bound</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00440">gscip.h:440</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a2b576f762517cd3e18d24d02435eb3f6"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a2b576f762517cd3e18d24d02435eb3f6">operations_research::GScip::AddLinearConstraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddLinearConstraint(const GScipLinearRange &amp;range, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00334">gscip.cc:334</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_a0d5a29925a9355418d112e7a0c538a73"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#a0d5a29925a9355418d112e7a0c538a73">operations_research::GScipConstraintOptions::removable</a></div><div class="ttdeci">bool removable</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00523">gscip.h:523</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a4fd653f58a7975cf4fee1a910ab07658"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a4fd653f58a7975cf4fee1a910ab07658">operations_research::GScip::DefaultIntParamValue</a></div><div class="ttdeci">absl::StatusOr&lt; int &gt; DefaultIntParamValue(const std::string &amp;parameter_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00911">gscip.cc:911</a></div></div>
<div class="ttc" id="namespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_s_o_s_data_html_afb3abd037b2d13083df69a4ca658fc60"><div class="ttname"><a href="structoperations__research_1_1_g_scip_s_o_s_data.html#afb3abd037b2d13083df69a4ca658fc60">operations_research::GScipSOSData::weights</a></div><div class="ttdeci">std::vector&lt; double &gt; weights</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00426">gscip.h:426</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a122bc247cae2b6136e2629f0e1f5b5b1"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a122bc247cae2b6136e2629f0e1f5b5b1">operations_research::GScip::AddOrConstraint</a></div><div class="ttdeci">absl::StatusOr&lt; SCIP_CONS * &gt; AddOrConstraint(const GScipLogicalConstraintData &amp;logical_data, const std::string &amp;name=&quot;&quot;, const GScipConstraintOptions &amp;options=DefaultGScipConstraintOptions())</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00453">gscip.cc:453</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a494f4578919f1dbb062bb718a291bad7"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a494f4578919f1dbb062bb718a291bad7">operations_research::GScip::DefaultLongParamValue</a></div><div class="ttdeci">absl::StatusOr&lt; int64_t &gt; DefaultLongParamValue(const std::string &amp;parameter_name)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00919">gscip.cc:919</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a76f27b95756d12d10d0b672e7aa6235b"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a76f27b95756d12d10d0b672e7aa6235b">operations_research::GScip::ObjCoef</a></div><div class="ttdeci">double ObjCoef(SCIP_VAR *var)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00650">gscip.cc:650</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_aee96336da8c72ee66e201fb3a2a94d0b"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#aee96336da8c72ee66e201fb3a2a94d0b">operations_research::GScip::scip</a></div><div class="ttdeci">SCIP * scip()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00340">gscip.h:340</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a806751db89938de9e63c667e24db74b9a6d717c161afb5e72ce7f4d5ffe84b1b7"><div class="ttname"><a href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9a6d717c161afb5e72ce7f4d5ffe84b1b7">operations_research::GScipVarType::kImpliedInteger</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a806751db89938de9e63c667e24db74b9ab7400e777db61f5f726caeeab0a7dcc2"><div class="ttname"><a href="namespaceoperations__research.html#a806751db89938de9e63c667e24db74b9ab7400e777db61f5f726caeeab0a7dcc2">operations_research::GScipVarType::kInteger</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_variable_options_html_a0d5a29925a9355418d112e7a0c538a73"><div class="ttname"><a href="structoperations__research_1_1_g_scip_variable_options.html#a0d5a29925a9355418d112e7a0c538a73">operations_research::GScipVariableOptions::removable</a></div><div class="ttdeci">bool removable</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00474">gscip.h:474</a></div></div>
<div class="ttc" id="expr__array_8cc_html_a472a99923cbe11ae7b5a5d157d9ad465"><div class="ttname"><a href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a></div><div class="ttdeci">IntVar * var</div><div class="ttdef"><b>Definition:</b> <a href="expr__array_8cc_source.html#l01874">expr_array.cc:1874</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a9a252572508e8d71acd7ee48676b22b1"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a9a252572508e8d71acd7ee48676b22b1">operations_research::GScip::Lb</a></div><div class="ttdeci">double Lb(SCIP_VAR *var)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00642">gscip.cc:642</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ad1e7d37397a21166a53ac59367fb0307"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ad1e7d37397a21166a53ac59367fb0307">operations_research::GScip::SetVarType</a></div><div class="ttdeci">absl::Status SetVarType(SCIP_VAR *var, GScipVarType var_type)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00594">gscip.cc:594</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a651cd5d6198e0ecd237503cb068d52e5"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a651cd5d6198e0ecd237503cb068d52e5">operations_research::GScip::SafeBulkDelete</a></div><div class="ttdeci">absl::Status SafeBulkDelete(const absl::flat_hash_set&lt; SCIP_VAR * &gt; &amp;vars)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00622">gscip.cc:622</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_linear_range_html_a623b8d74e724b276e4bac87e61445c7f"><div class="ttname"><a href="structoperations__research_1_1_g_scip_linear_range.html#a623b8d74e724b276e4bac87e61445c7f">operations_research::GScipLinearRange::variables</a></div><div class="ttdeci">std::vector&lt; SCIP_VAR * &gt; variables</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00100">gscip.h:100</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_aab3e957e02549515bcbf5a08e57f95e5"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#aab3e957e02549515bcbf5a08e57f95e5">operations_research::GScip::SetLinearConstraintCoef</a></div><div class="ttdeci">absl::Status SetLinearConstraintCoef(SCIP_CONS *constraint, SCIP_VAR *var, double value)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00709">gscip.cc:709</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_output_html"><div class="ttname"><a href="classoperations__research_1_1_g_scip_output.html">operations_research::GScipOutput</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8pb_8h_source.html#l01089">gscip.pb.h:1089</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_logical_constraint_data_html_a5a375db8deba588909ad2a2346883353"><div class="ttname"><a href="structoperations__research_1_1_g_scip_logical_constraint_data.html#a5a375db8deba588909ad2a2346883353">operations_research::GScipLogicalConstraintData::resultant</a></div><div class="ttdeci">SCIP_VAR * resultant</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00448">gscip.h:448</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ae3e5b76d61c889cb4158f19b5175f6b6"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ae3e5b76d61c889cb4158f19b5175f6b6">operations_research::GScip::ScipVersion</a></div><div class="ttdeci">static std::string ScipVersion()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00267">gscip.cc:267</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html_a1e2f9a2352c1d9a6cada9544898fceec"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html#a1e2f9a2352c1d9a6cada9544898fceec">operations_research::GScipQuadraticRange::lower_bound</a></div><div class="ttdeci">double lower_bound</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00379">gscip.h:379</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a8550e8f3ecd7d4aa89047c715083b406"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a8550e8f3ecd7d4aa89047c715083b406">operations_research::GScip::LinearConstraintVariables</a></div><div class="ttdeci">absl::Span&lt; SCIP_VAR *const &gt; LinearConstraintVariables(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00672">gscip.cc:672</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a0f5f466045c197474f0284ac58971049"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a0f5f466045c197474f0284ac58971049">operations_research::GScip::SetObjectiveOffset</a></div><div class="ttdeci">absl::Status SetObjectiveOffset(double offset)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00559">gscip.cc:559</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a12188b733b48222690ec625769938521"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a12188b733b48222690ec625769938521">operations_research::GScip::DeleteVariable</a></div><div class="ttdeci">absl::Status DeleteVariable(SCIP_VAR *var)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00601">gscip.cc:601</a></div></div>
<div class="ttc" id="demon__profiler_8cc_html_ac072af30c4ffbc834bb4c681f6ecb514"><div class="ttname"><a href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a></div><div class="ttdeci">int64_t value</div><div class="ttdef"><b>Definition:</b> <a href="demon__profiler_8cc_source.html#l00044">demon_profiler.cc:44</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a2899c1afc60224e18c3d9d4a95c5064e"><div class="ttname"><a href="namespaceoperations__research.html#a2899c1afc60224e18c3d9d4a95c5064e">operations_research::GScipMessageHandler</a></div><div class="ttdeci">std::function&lt; void(GScipMessageType type, absl::string_view message)&gt; GScipMessageHandler</div><div class="ttdef"><b>Definition:</b> <a href="gscip__message__handler_8h_source.html#l00037">gscip_message_handler.h:37</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_af7de3fbd471bc6e23faa9f23b179f05a"><div class="ttname"><a href="namespaceoperations__research.html#af7de3fbd471bc6e23faa9f23b179f05a">operations_research::GScipSolution</a></div><div class="ttdeci">absl::flat_hash_map&lt; SCIP_VAR *, double &gt; GScipSolution</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00074">gscip.h:74</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_quadratic_range_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_quadratic_range.html">operations_research::GScipQuadraticRange</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00377">gscip.h:377</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html">operations_research::GScipConstraintOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00492">gscip.h:492</a></div></div>
<div class="ttc" id="structoperations__research_1_1_g_scip_constraint_options_html_a08e5d4acf3bed996e35f8c4354412bcf"><div class="ttname"><a href="structoperations__research_1_1_g_scip_constraint_options.html#a08e5d4acf3bed996e35f8c4354412bcf">operations_research::GScipConstraintOptions::check</a></div><div class="ttdeci">bool check</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8h_source.html#l00509">gscip.h:509</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_a3b380041a0c3eb1fe5dfde7f2689dea1"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#a3b380041a0c3eb1fe5dfde7f2689dea1">operations_research::GScip::IsConstraintLinear</a></div><div class="ttdeci">bool IsConstraintLinear(SCIP_CONS *constraint)</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00662">gscip.cc:662</a></div></div>
<div class="ttc" id="classoperations__research_1_1_g_scip_html_ac75b700ead5ff5d0944b5161e6dac9e8"><div class="ttname"><a href="classoperations__research_1_1_g_scip.html#ac75b700ead5ff5d0944b5161e6dac9e8">operations_research::GScip::InterruptSolve</a></div><div class="ttdeci">bool InterruptSolve()</div><div class="ttdef"><b>Definition:</b> <a href="gscip_8cc_source.html#l00273">gscip.cc:273</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_7ebe005d782fae78e581b12d74364053.html">gscip</a></li><li class="navelem"><a class="el" href="gscip_8h.html">gscip.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>