207 lines
37 KiB
HTML
207 lines
37 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"/>-->
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.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="banner-container">
|
|
<div id="banner">
|
|
<span id="sfml">Google OR-Tools 9.2</span>
|
|
</div>
|
|
</div>
|
|
<div id="content" style="width: 100%; overflow: hidden;">
|
|
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
|
|
<h2>DotNet Reference</h2>
|
|
<ul>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Sat.html">CP-SAT</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Graph.html">Graph</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Algorithms.html">Knapsack solver</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Linear solver</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">Routing</a></li>
|
|
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Util.html">Util</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="content">
|
|
<div align="center">
|
|
<h1 style="color: #145A32;">.Net Reference</h1>
|
|
</div>
|
|
<!-- Generated by Doxygen 1.9.3 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('CpSatHelper_8cs_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">CpSatHelper.cs</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="CpSatHelper_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// <auto-generated /></span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// This file was automatically generated by SWIG (http://www.swig.org).</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">// Version 4.0.2</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">// Do not make changes to this file unless you know what you are doing--modify</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// the SWIG interface file instead.</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a> {</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">using</span> <a class="code hl_namespace" href="namespaceGoogle.html">Google</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Util.html">Util</a>;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html"> 15</a></span><span class="keyword">public</span> <span class="keyword">class </span><a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html">CpSatHelper</a> : global::System.IDisposable {</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">private</span> global::System.Runtime.InteropServices.HandleRef swigCPtr;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#abc050282310ee35f8b4bac77b6103375"> 17</a></span> <span class="keyword">protected</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a>;</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">internal</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#add425685f2de2a85dd35ab321a396a83">CpSatHelper</a>(global::System.IntPtr cPtr, <span class="keywordtype">bool</span> cMemoryOwn) {</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <a class="code hl_variable" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a> = cMemoryOwn;</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> swigCPtr = <span class="keyword">new</span> global::System.Runtime.InteropServices.HandleRef(<span class="keyword">this</span>, cPtr);</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> }</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">internal</span> <span class="keyword">static</span> global::System.Runtime.InteropServices.HandleRef getCPtr(<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html">CpSatHelper</a> obj) {</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keywordflow">return</span> (obj == <span class="keyword">null</span>) ? <span class="keyword">new</span> global::System.Runtime.InteropServices.HandleRef(<span class="keyword">null</span>, global::System.IntPtr.Zero) : obj.swigCPtr;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> }</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> ~CpSatHelper() {</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Dispose</a>(<span class="keyword">false</span>);</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> }</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a6e2d745cdb7a7b983f861ed6a9a541a7"> 32</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Dispose</a>() {</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Dispose</a>(<span class="keyword">true</span>);</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> global::System.GC.SuppressFinalize(<span class="keyword">this</span>);</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a8ad4348ef0f9969025bab397e7e27e26"> 37</a></span> <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a8ad4348ef0f9969025bab397e7e27e26">Dispose</a>(<span class="keywordtype">bool</span> disposing) {</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> lock(<span class="keyword">this</span>) {</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">if</span> (swigCPtr.Handle != global::System.IntPtr.Zero) {</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a>) {</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_variable" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#abc050282310ee35f8b4bac77b6103375">swigCMemOwn</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#a99a1b551d623c83768433ad06bd3be75">delete_CpSatHelper</a>(swigCPtr);</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> swigCPtr = <span class="keyword">new</span> global::System.Runtime.InteropServices.HandleRef(<span class="keyword">null</span>, global::System.IntPtr.Zero);</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> }</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#aadde3d053f50ca4c30c759c034fd6146"> 49</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#aadde3d053f50ca4c30c759c034fd6146">ModelStats</a>(<a class="code hl_namespace" href="namespaceGoogle.html">Google</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Sat</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html">CpModelProto</a> model_proto) {</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">string</span> ret = <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#a0b505646413a3535155aa015c774264b">CpSatHelper_ModelStats</a>(model_proto.CalculateSize(), <a class="code hl_class" href="classGoogle_1_1OrTools_1_1ProtoHelper.html">ProtoHelper</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1ProtoHelper.html#a095630d14c43e4045834a37bfdf93216">ProtoToByteArray</a>(model_proto));</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a957f70f331c34e513cb17f681c5262da"> 54</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a957f70f331c34e513cb17f681c5262da">SolverResponseStats</a>(<a class="code hl_namespace" href="namespaceGoogle.html">Google</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Sat</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverResponse.html">CpSolverResponse</a> response) {</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">string</span> ret = <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#ab7f01b0ad522853a9c9e2823a38e4115">CpSatHelper_SolverResponseStats</a>(response.CalculateSize(), <a class="code hl_class" href="classGoogle_1_1OrTools_1_1ProtoHelper.html">ProtoHelper</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1ProtoHelper.html#a095630d14c43e4045834a37bfdf93216">ProtoToByteArray</a>(response));</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a85b3e080a08a4262b7225b0352e5c9f1"> 59</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a85b3e080a08a4262b7225b0352e5c9f1">ValidateModel</a>(<a class="code hl_namespace" href="namespaceGoogle.html">Google</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Sat</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html">CpModelProto</a> model_proto) {</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">string</span> ret = <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#ae7e9b3b523ef32e68abf80788648a499">CpSatHelper_ValidateModel</a>(model_proto.CalculateSize(), <a class="code hl_class" href="classGoogle_1_1OrTools_1_1ProtoHelper.html">ProtoHelper</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1ProtoHelper.html#a095630d14c43e4045834a37bfdf93216">ProtoToByteArray</a>(model_proto));</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> }</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#aa2c7ec37757bd9a0519f2abda62ed7f1"> 64</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Util_1_1Domain.html">Domain</a> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#aa2c7ec37757bd9a0519f2abda62ed7f1">VariableDomain</a>(<a class="code hl_namespace" href="namespaceGoogle.html">Google</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Sat</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1IntegerVariableProto.html">IntegerVariableProto</a> variable_proto) {</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Util_1_1Domain.html">Domain</a> ret = <span class="keyword">new</span> <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Util_1_1Domain.html">Domain</a>(<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#a484bf851e821f987a2b057d3d8d581d5">CpSatHelper_VariableDomain</a>(variable_proto.CalculateSize(), <a class="code hl_class" href="classGoogle_1_1OrTools_1_1ProtoHelper.html">ProtoHelper</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1ProtoHelper.html#a095630d14c43e4045834a37bfdf93216">ProtoToByteArray</a>(variable_proto)), <span class="keyword">true</span>);</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a9a630422593b1475a3e9103e858709d2"> 69</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a9a630422593b1475a3e9103e858709d2">WriteModelToFile</a>(<a class="code hl_namespace" href="namespaceGoogle.html">Google</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code hl_namespace" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Sat</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html">CpModelProto</a> model_proto, <span class="keywordtype">string</span> filename) {</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">bool</span> ret = <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#adae3619c0c7ed8d4194cd2797282bfa7">CpSatHelper_WriteModelToFile</a>(model_proto.CalculateSize(), <a class="code hl_class" href="classGoogle_1_1OrTools_1_1ProtoHelper.html">ProtoHelper</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1ProtoHelper.html#a095630d14c43e4045834a37bfdf93216">ProtoToByteArray</a>(model_proto), filename);</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html">SWIGPendingException</a>.<a class="code hl_property" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html#a7c98814d2667a9273c95e975fd320b6c">Pending</a>) <span class="keywordflow">throw</span> <a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html">SWIGPendingException</a>.<a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html#a99561aa89dd816ba2dd85af036e32227">Retrieve</a>();</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#add425685f2de2a85dd35ab321a396a83"> 75</a></span> <span class="keyword">public</span> <a class="code hl_function" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#add425685f2de2a85dd35ab321a396a83">CpSatHelper</a>() : this(<a class="code hl_class" href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">operations_research_satPINVOKE</a>.new_CpSatHelper(), true) {</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>}</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span>}</div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1ProtoHelper_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ProtoHelper.html">Google.OrTools.ProtoHelper</a></div><div class="ttdef"><b>Definition:</b> <a href="ProtoHelper_8cs_source.html#l00020">ProtoHelper.cs:21</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1ProtoHelper_html_a095630d14c43e4045834a37bfdf93216"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ProtoHelper.html#a095630d14c43e4045834a37bfdf93216">Google.OrTools.ProtoHelper.ProtoToByteArray</a></div><div class="ttdeci">static byte[] ProtoToByteArray(IMessage message)</div><div class="ttdef"><b>Definition:</b> <a href="ProtoHelper_8cs_source.html#l00022">ProtoHelper.cs:22</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpModelProto_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html">Google.OrTools.Sat.CpModelProto</a></div><div class="ttdoc">A constraint programming problem.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l08639">CpModel.pb.cs:8643</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html">Google.OrTools.Sat.CpSatHelper</a></div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00015">CpSatHelper.cs:15</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_a6e2d745cdb7a7b983f861ed6a9a541a7"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a6e2d745cdb7a7b983f861ed6a9a541a7">Google.OrTools.Sat.CpSatHelper.Dispose</a></div><div class="ttdeci">void Dispose()</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00032">CpSatHelper.cs:32</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_a85b3e080a08a4262b7225b0352e5c9f1"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a85b3e080a08a4262b7225b0352e5c9f1">Google.OrTools.Sat.CpSatHelper.ValidateModel</a></div><div class="ttdeci">static string ValidateModel(Google.OrTools.Sat.CpModelProto model_proto)</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00059">CpSatHelper.cs:59</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_a8ad4348ef0f9969025bab397e7e27e26"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a8ad4348ef0f9969025bab397e7e27e26">Google.OrTools.Sat.CpSatHelper.Dispose</a></div><div class="ttdeci">virtual void Dispose(bool disposing)</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00037">CpSatHelper.cs:37</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_a957f70f331c34e513cb17f681c5262da"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a957f70f331c34e513cb17f681c5262da">Google.OrTools.Sat.CpSatHelper.SolverResponseStats</a></div><div class="ttdeci">static string SolverResponseStats(Google.OrTools.Sat.CpSolverResponse response)</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00054">CpSatHelper.cs:54</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_a9a630422593b1475a3e9103e858709d2"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#a9a630422593b1475a3e9103e858709d2">Google.OrTools.Sat.CpSatHelper.WriteModelToFile</a></div><div class="ttdeci">static bool WriteModelToFile(Google.OrTools.Sat.CpModelProto model_proto, string filename)</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00069">CpSatHelper.cs:69</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_aa2c7ec37757bd9a0519f2abda62ed7f1"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#aa2c7ec37757bd9a0519f2abda62ed7f1">Google.OrTools.Sat.CpSatHelper.VariableDomain</a></div><div class="ttdeci">static Domain VariableDomain(Google.OrTools.Sat.IntegerVariableProto variable_proto)</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00064">CpSatHelper.cs:64</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_aadde3d053f50ca4c30c759c034fd6146"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#aadde3d053f50ca4c30c759c034fd6146">Google.OrTools.Sat.CpSatHelper.ModelStats</a></div><div class="ttdeci">static string ModelStats(Google.OrTools.Sat.CpModelProto model_proto)</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00049">CpSatHelper.cs:49</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_abc050282310ee35f8b4bac77b6103375"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#abc050282310ee35f8b4bac77b6103375">Google.OrTools.Sat.CpSatHelper.swigCMemOwn</a></div><div class="ttdeci">bool swigCMemOwn</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00017">CpSatHelper.cs:17</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper_html_add425685f2de2a85dd35ab321a396a83"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSatHelper.html#add425685f2de2a85dd35ab321a396a83">Google.OrTools.Sat.CpSatHelper.CpSatHelper</a></div><div class="ttdeci">CpSatHelper()</div><div class="ttdef"><b>Definition:</b> <a href="CpSatHelper_8cs_source.html#l00075">CpSatHelper.cs:75</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1CpSolverResponse_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverResponse.html">Google.OrTools.Sat.CpSolverResponse</a></div><div class="ttdoc">The response returned by a solver trying to solve a CpModelProto.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l09379">CpModel.pb.cs:9383</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1IntegerVariableProto_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntegerVariableProto.html">Google.OrTools.Sat.IntegerVariableProto</a></div><div class="ttdoc">An integer variable.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l00268">CpModel.pb.cs:272</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html">Google.OrTools.Sat.operations_research_satPINVOKE.SWIGPendingException</a></div><div class="ttdef"><b>Definition:</b> <a href="operations__research__satPINVOKE_8cs_source.html#l00127">operations_research_satPINVOKE.cs:127</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException_html_a7c98814d2667a9273c95e975fd320b6c"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html#a7c98814d2667a9273c95e975fd320b6c">Google.OrTools.Sat.operations_research_satPINVOKE.SWIGPendingException.Pending</a></div><div class="ttdeci">static bool Pending</div><div class="ttdef"><b>Definition:</b> <a href="operations__research__satPINVOKE_8cs_source.html#l00133">operations_research_satPINVOKE.cs:133</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException_html_a99561aa89dd816ba2dd85af036e32227"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_1_1SWIGPendingException.html#a99561aa89dd816ba2dd85af036e32227">Google.OrTools.Sat.operations_research_satPINVOKE.SWIGPendingException.Retrieve</a></div><div class="ttdeci">static global::System.Exception Retrieve()</div><div class="ttdef"><b>Definition:</b> <a href="operations__research__satPINVOKE_8cs_source.html#l00152">operations_research_satPINVOKE.cs:152</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html">Google.OrTools.Sat.operations_research_satPINVOKE</a></div><div class="ttdef"><b>Definition:</b> <a href="operations__research__satPINVOKE_8cs_source.html#l00013">operations_research_satPINVOKE.cs:13</a></div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html_a0b505646413a3535155aa015c774264b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#a0b505646413a3535155aa015c774264b">Google.OrTools.Sat.operations_research_satPINVOKE.CpSatHelper_ModelStats</a></div><div class="ttdeci">static string CpSatHelper_ModelStats(int model_proto_size, byte[] jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html_a484bf851e821f987a2b057d3d8d581d5"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#a484bf851e821f987a2b057d3d8d581d5">Google.OrTools.Sat.operations_research_satPINVOKE.CpSatHelper_VariableDomain</a></div><div class="ttdeci">static global::System.IntPtr CpSatHelper_VariableDomain(int variable_proto_size, byte[] jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html_a99a1b551d623c83768433ad06bd3be75"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#a99a1b551d623c83768433ad06bd3be75">Google.OrTools.Sat.operations_research_satPINVOKE.delete_CpSatHelper</a></div><div class="ttdeci">static void delete_CpSatHelper(global::System.Runtime.InteropServices.HandleRef jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html_ab7f01b0ad522853a9c9e2823a38e4115"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#ab7f01b0ad522853a9c9e2823a38e4115">Google.OrTools.Sat.operations_research_satPINVOKE.CpSatHelper_SolverResponseStats</a></div><div class="ttdeci">static string CpSatHelper_SolverResponseStats(int response_size, byte[] jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html_adae3619c0c7ed8d4194cd2797282bfa7"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#adae3619c0c7ed8d4194cd2797282bfa7">Google.OrTools.Sat.operations_research_satPINVOKE.CpSatHelper_WriteModelToFile</a></div><div class="ttdeci">static bool CpSatHelper_WriteModelToFile(int model_proto_size, byte[] jarg1, string jarg2)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE_html_ae7e9b3b523ef32e68abf80788648a499"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1operations__research__satPINVOKE.html#ae7e9b3b523ef32e68abf80788648a499">Google.OrTools.Sat.operations_research_satPINVOKE.CpSatHelper_ValidateModel</a></div><div class="ttdeci">static string CpSatHelper_ValidateModel(int model_proto_size, byte[] jarg1)</div></div>
|
|
<div class="ttc" id="aclassGoogle_1_1OrTools_1_1Util_1_1Domain_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Util_1_1Domain.html">Google.OrTools.Util.Domain</a></div><div class="ttdef"><b>Definition:</b> <a href="util_2Domain_8cs_source.html#l00017">util/Domain.cs:17</a></div></div>
|
|
<div class="ttc" id="anamespaceGoogle_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="anamespaceGoogle_1_1OrTools_1_1Util_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1Util.html">Google.OrTools.Util</a></div><div class="ttdef"><b>Definition:</b> <a href="util_2Domain_8cs_source.html#l00011">util/Domain.cs:11</a></div></div>
|
|
<div class="ttc" id="anamespaceGoogle_1_1OrTools_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools.html">Google.OrTools</a></div><div class="ttdef"><b>Definition:</b> <a href="IntArrayHelper_8cs_source.html#l00014">IntArrayHelper.cs:15</a></div></div>
|
|
<div class="ttc" id="anamespaceGoogle_html"><div class="ttname"><a href="namespaceGoogle.html">Google</a></div><div class="ttdef"><b>Definition:</b> <a href="IntArrayHelper_8cs_source.html#l00014">IntArrayHelper.cs:15</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
</div>
|
|
</div>
|
|
<div id="footer-container">
|
|
<div id="footer">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|