<ahref="SolutionPool_8java.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/* ----------------------------------------------------------------------------</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * Version 4.0.0</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * Do not make changes to this file unless you know what you are doing--modify</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment"> * the SWIG interface file instead.</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment"> * ----------------------------------------------------------------------------- */</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> </div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="keyword">package </span>com.google.ortools.constraintsolver;</div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> </div><divclass="line"><aname="l00014"></a><spanclass="lineno"><aclass="line"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html"> 14</a></span> <spanclass="keyword">public</span><spanclass="keyword">class </span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html">SolutionPool</a><spanclass="keyword">extends</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1BaseObject.html">BaseObject</a> {</div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="keyword">private</span><spanclass="keyword">transient</span><spanclass="keywordtype">long</span> swigCPtr;</div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> </div><divclass="line"><aname="l00017"></a><spanclass="lineno"><aclass="line"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html#ac404ed5863de296e141cb92c3e78d9f7"> 17</a></span> <spanclass="keyword">protected</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html#ac404ed5863de296e141cb92c3e78d9f7">SolutionPool</a>(<spanclass="keywordtype">long</span> cPtr, <spanclass="keywordtype">boolean</span> cMemoryOwn) {</div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span>  super(mainJNI.SolutionPool_SWIGUpcast(cPtr), cMemoryOwn);</div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span>  swigCPtr = cPtr;</div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span>  }</div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> </div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="keyword">protected</span><spanclass="keyword">static</span><spanclass="keywordtype">long</span> getCPtr(<aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html">SolutionPool</a> obj) {</div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="keywordflow">return</span> (obj == <spanclass="keyword">null</span>) ? 0 : obj.swigCPtr;</div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span>  }</div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> </div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span>  @SuppressWarnings(<spanclass="
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool_html_a8578b5cf4cc4aef46fc5d6521dc1c7d6"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html#a8578b5cf4cc4aef46fc5d6521dc1c7d6">com.google.ortools.constraintsolver.SolutionPool.registerNewSolution</a></div><divclass="ttdeci">void registerNewSolution(Assignment assignment)</div><divclass="ttdoc">This method is called when a new solution has been accepted by the local search.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionPool_8java_source.html#l00052">SolutionPool.java:52</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool_html_a97ff5b58e1e7a98870317b6a7f28a3ee"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html#a97ff5b58e1e7a98870317b6a7f28a3ee">com.google.ortools.constraintsolver.SolutionPool.getNextSolution</a></div><divclass="ttdeci">void getNextSolution(Assignment assignment)</div><divclass="ttdoc">This method is called when the local search starts a new neighborhood to initialize the default assig...</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionPool_8java_source.html#l00059">SolutionPool.java:59</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html">com.google.ortools.constraintsolver.SolutionPool</a></div><divclass="ttdoc">This class is used to manage a pool of solutions.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionPool_8java_source.html#l00014">SolutionPool.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Assignment_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Assignment.html">com.google.ortools.constraintsolver.Assignment</a></div><divclass="ttdoc">An Assignment is a variable -> domains mapping, used to report solutions to the user.</div><divclass="ttdef"><b>Definition:</b><ahref="Assignment_8java_source.html#l00014">Assignment.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool_html_a297072e460a7a8a8da18cc4e716b3f6c"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html#a297072e460a7a8a8da18cc4e716b3f6c">com.google.ortools.constraintsolver.SolutionPool.initialize</a></div><divclass="ttdeci">void initialize(Assignment assignment)</div><divclass="ttdoc">This method is called to initialize the solution pool with the assignment from the local search.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionPool_8java_source.html#l00045">SolutionPool.java:45</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool_html_a0a93caa20d0687c1ca1c75b9e2471797"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionPool.html#a0a93caa20d0687c1ca1c75b9e2471797">com.google.ortools.constraintsolver.SolutionPool.syncNeeded</a></div><divclass="ttdeci">boolean syncNeeded(Assignment local_assignment)</div><divclass="ttdoc">This method checks if the local solution needs to be updated with an external one.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionPool_8java_source.html#l00066">SolutionPool.java:66</a></div></div>