77 lines
31 KiB
HTML
77 lines
31 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>OR-Tools</title>
|
|
<meta http-equiv="Content-Type" content="text/html;"/>
|
|
<meta charset="utf-8"/>
|
|
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
|
|
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="banner-container">
|
|
<div id="banner">
|
|
<span id="sfml">OR-Tools 7.2</span>
|
|
</div>
|
|
</div>
|
|
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
|
|
<div id="content">
|
|
<!-- Generated by Doxygen 1.8.15 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_dddac007a45022d9da6ea1dee012c3b9.html">sat</a></li><li class="navelem"><a class="el" href="dir_666ec04a5210c3fc7bf26544c3cbcf44.html">csharp</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">SearchHelpers.cs</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="SearchHelpers_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">using</span> System;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">using</span> System.Collections.Generic;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">namespace </span><a class="code" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html"> 20</a></span>  <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html">CpSolverSolutionCallback</a> : <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html">SolutionCallback</a></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  {</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a02f75dd2fa406b17fb77769f9e85732c"> 22</a></span>  <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a02f75dd2fa406b17fb77769f9e85732c">Value</a>(<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html">LinearExpr</a> e)</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  List<LinearExpr> exprs = <span class="keyword">new</span> List<LinearExpr>();</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  List<long> coeffs = <span class="keyword">new</span> List<long>();</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  exprs.Add(e);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  coeffs.Add(1L);</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">long</span> constant = 0;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">while</span> (exprs.Count > 0)</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html">LinearExpr</a> expr = exprs[0];</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  exprs.RemoveAt(0);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">long</span> coeff = coeffs[0];</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  coeffs.RemoveAt(0);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</span> (coeff == 0) <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">if</span> (expr is <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html">ProductCst</a>)</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html">ProductCst</a> p = (<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html">ProductCst</a>)expr;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">if</span> (p.<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a6b02dc0403a8315bfaa344c3e62ce014">Coeff</a> != 0)</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  exprs.Add(p.<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a79a51d9bc940f318cc11230734579033">Expr</a>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  coeffs.Add(p.<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a6b02dc0403a8315bfaa344c3e62ce014">Coeff</a> * coeff);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (expr is <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html">SumArray</a>)</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html">SumArray</a> a = (<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html">SumArray</a>)expr;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  constant += coeff * a.<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a1a04ad2728273035e1c3f3f6e4d0fd63">Constant</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">foreach</span> (<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html">LinearExpr</a> sub <span class="keywordflow">in</span> a.Expressions)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  exprs.Add(sub);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  coeffs.Add(coeff);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (expr is <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1IntVar.html">IntVar</a>)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">int</span> index = expr.<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a8608e6c3af48d10ba878a652f3709c2c">Index</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">long</span> value = <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a1f36f0c7485c747fed2a5aed8f34decf">SolutionIntegerValue</a>(index);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  constant += coeff * value;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (expr is <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable.html">NotBooleanVariable</a>)</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentException(</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="stringliteral">"Cannot evaluate a literal in an integer expression."</span>);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentException(<span class="stringliteral">"Cannot evaluate '"</span> + expr.ToString() +</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="stringliteral">"' in an integer expression"</span>);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> constant;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a1e329c00be8a46032b3edfb455e4631d"> 77</a></span>  <span class="keyword">public</span> Boolean <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a1e329c00be8a46032b3edfb455e4631d">BooleanValue</a>(<a class="code" href="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral.html">ILiteral</a> literal)</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">if</span> (literal is <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1IntVar.html">IntVar</a> || literal is <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable.html">NotBooleanVariable</a>)</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">int</span> index = literal.<a class="code" href="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral.html#a2d4e90d515e1e9f91811cdeea652e742">GetIndex</a>();</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a05564ff6cc134a3ac8550f25baf9e5b6">SolutionBooleanValue</a>(index);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentException(<span class="stringliteral">"Cannot evaluate '"</span> + literal.ToString() +</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="stringliteral">"' as a boolean literal"</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html"> 92</a></span>  <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html">ObjectiveSolutionPrinter</a> : <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html">CpSolverSolutionCallback</a></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">private</span> DateTime _startTime;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">private</span> <span class="keywordtype">int</span> _solutionCount;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a38f66a2e2a0e597ba1c9c11760fbf370"> 97</a></span>  <span class="keyword">public</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a38f66a2e2a0e597ba1c9c11760fbf370">ObjectiveSolutionPrinter</a>()</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  _startTime = DateTime.Now;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a1c41e09110665c2c77cd672f6c9c64f0"> 102</a></span>  <span class="keyword">public</span> <span class="keyword">override</span> <span class="keywordtype">void</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a1c41e09110665c2c77cd672f6c9c64f0">OnSolutionCallback</a>()</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  var currentTime = DateTime.Now;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  var objective = <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a45191b35777ba166341ed94a9c3a2ba2">ObjectiveValue</a>();</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  var objectiveBound = <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a623d3c830b19fe51f9fab55f2f33e7dc">BestObjectiveBound</a>();</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  var objLb = Math.Min(objective, objectiveBound);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  var objUb = Math.Max(objective, objectiveBound);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  var time = currentTime - _startTime;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  Console.WriteLine(value: $<span class="stringliteral">"Solution {_solutionCount}, time = {time.TotalSeconds} s, objective = [{objLb}, {objUb}]"</span>);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  _solutionCount++;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#ae60bdd773dcefdeb2818b679fa34c9c0">solutionCount</a>() => _solutionCount;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> } <span class="comment">// namespace Google.OrTools.Sat</span></div><div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a8608e6c3af48d10ba878a652f3709c2c"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a8608e6c3af48d10ba878a652f3709c2c">Google.OrTools.Sat.LinearExpr.Index</a></div><div class="ttdeci">int Index</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00072">IntegerExpressions.cs:72</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html_a1a04ad2728273035e1c3f3f6e4d0fd63"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a1a04ad2728273035e1c3f3f6e4d0fd63">Google.OrTools.Sat.SumArray.Constant</a></div><div class="ttdeci">long Constant</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00466">IntegerExpressions.cs:466</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html">Google.OrTools.Sat.ObjectiveSolutionPrinter</a></div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00092">SearchHelpers.cs:92</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html_a6b02dc0403a8315bfaa344c3e62ce014"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a6b02dc0403a8315bfaa344c3e62ce014">Google.OrTools.Sat.ProductCst.Coeff</a></div><div class="ttdeci">long Coeff</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00347">IntegerExpressions.cs:347</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html">Google.OrTools.Sat.CpSolverSolutionCallback</a></div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00020">SearchHelpers.cs:20</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html_a1c41e09110665c2c77cd672f6c9c64f0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a1c41e09110665c2c77cd672f6c9c64f0">Google.OrTools.Sat.ObjectiveSolutionPrinter.OnSolutionCallback</a></div><div class="ttdeci">override void OnSolutionCallback()</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00102">SearchHelpers.cs:102</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntVar_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntVar.html">Google.OrTools.Sat.IntVar</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00495">IntegerExpressions.cs:495</a></div></div>
|
|
<div class="ttc" id="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral_html"><div class="ttname"><a href="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral.html">Google.OrTools.Sat.ILiteral</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00042">IntegerExpressions.cs:42</a></div></div>
|
|
<div class="ttc" id="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral_html_a2d4e90d515e1e9f91811cdeea652e742"><div class="ttname"><a href="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral.html#a2d4e90d515e1e9f91811cdeea652e742">Google.OrTools.Sat.ILiteral.GetIndex</a></div><div class="ttdeci">int GetIndex()</div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback_html_a02f75dd2fa406b17fb77769f9e85732c"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a02f75dd2fa406b17fb77769f9e85732c">Google.OrTools.Sat.CpSolverSolutionCallback.Value</a></div><div class="ttdeci">long Value(LinearExpr e)</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00022">SearchHelpers.cs:22</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a623d3c830b19fe51f9fab55f2f33e7dc"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a623d3c830b19fe51f9fab55f2f33e7dc">Google.OrTools.Sat.SolutionCallback.BestObjectiveBound</a></div><div class="ttdeci">double BestObjectiveBound()</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00095">SolutionCallback.cs:95</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html">Google.OrTools.Sat.SumArray</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00356">IntegerExpressions.cs:356</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a1f36f0c7485c747fed2a5aed8f34decf"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a1f36f0c7485c747fed2a5aed8f34decf">Google.OrTools.Sat.SolutionCallback.SolutionIntegerValue</a></div><div class="ttdeci">long SolutionIntegerValue(int index)</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00100">SolutionCallback.cs:100</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html">Google.OrTools.Sat.SolutionCallback</a></div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00017">SolutionCallback.cs:17</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html">Google.OrTools.Sat.LinearExpr</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00049">IntegerExpressions.cs:49</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a05564ff6cc134a3ac8550f25baf9e5b6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a05564ff6cc134a3ac8550f25baf9e5b6">Google.OrTools.Sat.SolutionCallback.SolutionBooleanValue</a></div><div class="ttdeci">bool SolutionBooleanValue(int index)</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00105">SolutionCallback.cs:105</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable.html">Google.OrTools.Sat.NotBooleanVariable</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00571">IntegerExpressions.cs:571</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html_a79a51d9bc940f318cc11230734579033"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a79a51d9bc940f318cc11230734579033">Google.OrTools.Sat.ProductCst.Expr</a></div><div class="ttdeci">LinearExpr Expr</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00342">IntegerExpressions.cs:342</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html">Google.OrTools.Sat.ProductCst</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00333">IntegerExpressions.cs:333</a></div></div>
|
|
<div class="ttc" id="namespaceGoogle_1_1OrTools_1_1Sat_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a></div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l00012">CpModel.pb.cs:12</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a45191b35777ba166341ed94a9c3a2ba2"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a45191b35777ba166341ed94a9c3a2ba2">Google.OrTools.Sat.SolutionCallback.ObjectiveValue</a></div><div class="ttdeci">double ObjectiveValue()</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00090">SolutionCallback.cs:90</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback_html_a1e329c00be8a46032b3edfb455e4631d"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a1e329c00be8a46032b3edfb455e4631d">Google.OrTools.Sat.CpSolverSolutionCallback.BooleanValue</a></div><div class="ttdeci">Boolean BooleanValue(ILiteral literal)</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00077">SearchHelpers.cs:77</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html_a38f66a2e2a0e597ba1c9c11760fbf370"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a38f66a2e2a0e597ba1c9c11760fbf370">Google.OrTools.Sat.ObjectiveSolutionPrinter.ObjectiveSolutionPrinter</a></div><div class="ttdeci">ObjectiveSolutionPrinter()</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00097">SearchHelpers.cs:97</a></div></div>
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html_ae60bdd773dcefdeb2818b679fa34c9c0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#ae60bdd773dcefdeb2818b679fa34c9c0">Google.OrTools.Sat.ObjectiveSolutionPrinter.solutionCount</a></div><div class="ttdeci">int solutionCount()</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div>
|
|
<div id="footer-container">
|
|
<div id="footer">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|