<ahref="SolutionCollector_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_1SolutionCollector.html"> 14</a></span> <spanclass="keyword">public</span><spanclass="keyword">class </span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html">SolutionCollector</a><spanclass="keyword">extends</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SearchMonitor.html">SearchMonitor</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_1SolutionCollector.html#ae4f879954b0fcd52dc028c2d38e302d6"> 17</a></span> <spanclass="keyword">protected</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#ae4f879954b0fcd52dc028c2d38e302d6">SolutionCollector</a>(<spanclass="keywordtype">long</span> cPtr, <spanclass="keywordtype">boolean</span> cMemoryOwn) {</div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span>  super(mainJNI.SolutionCollector_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_1SolutionCollector.html">SolutionCollector</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="lin
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Solver_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Solver.html">com.google.ortools.constraintsolver.Solver</a></div><divclass="ttdoc">Solver Class A solver represents the main computation engine.</div><divclass="ttdef"><b>Definition:</b><ahref="Solver_8java_source.html#l00057">Solver.java:57</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a857c9448c7fbe67b94370b78e21c8a12"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a857c9448c7fbe67b94370b78e21c8a12">com.google.ortools.constraintsolver.SolutionCollector.solutionCount</a></div><divclass="ttdeci">int solutionCount()</div><divclass="ttdoc">Returns how many solutions were stored during the search.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00095">SolutionCollector.java:95</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a7c4d49070eb5ed8169c066c8fcdf1595"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a7c4d49070eb5ed8169c066c8fcdf1595">com.google.ortools.constraintsolver.SolutionCollector.branches</a></div><divclass="ttdeci">long branches(int n)</div><divclass="ttdoc">Returns the number of branches when the nth solution was found.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00117">SolutionCollector.java:117</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a2f6013632417e12fe9bbfa3cccb93453"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a2f6013632417e12fe9bbfa3cccb93453">com.google.ortools.constraintsolver.SolutionCollector.failures</a></div><divclass="ttdeci">long failures(int n)</div><divclass="ttdoc">Returns the number of failures encountered at the time of the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00124">SolutionCollector.java:124</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntervalVar_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntervalVar.html">com.google.ortools.constraintsolver.IntervalVar</a></div><divclass="ttdoc">Interval variables are often used in scheduling.</div><divclass="ttdef"><b>Definition:</b><ahref="gen_2com_2google_2ortools_2constraintsolver_2IntervalVar_8java_source.html#l00014">gen/com/google/ortools/constraintsolver/IntervalVar.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a4d4e7493343146487c7e1980e5d7078c"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a4d4e7493343146487c7e1980e5d7078c">com.google.ortools.constraintsolver.SolutionCollector.objectiveValue</a></div><divclass="ttdeci">long objectiveValue(int n)</div><divclass="ttdoc">Returns the objective value of the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00131">SolutionCollector.java:131</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a9d62d71381c04c307bfe16952b0826f1"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a9d62d71381c04c307bfe16952b0826f1">com.google.ortools.constraintsolver.SolutionCollector.value</a></div><divclass="ttdeci">long value(int n, IntVar var)</div><divclass="ttdoc">This is a shortcut to get the Value of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00138">SolutionCollector.java:138</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a4e17b60c41ae411ea9851694f932841d"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a4e17b60c41ae411ea9851694f932841d">com.google.ortools.constraintsolver.SolutionCollector.wallTime</a></div><divclass="ttdeci">long wallTime(int n)</div><divclass="ttdoc">Returns the wall time in ms for the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00110">SolutionCollector.java:110</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_ad35e48c31c7fa15c333f0236348d2c1e"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#ad35e48c31c7fa15c333f0236348d2c1e">com.google.ortools.constraintsolver.SolutionCollector.startValue</a></div><divclass="ttdeci">long startValue(int n, IntervalVar var)</div><divclass="ttdoc">This is a shortcut to get the StartValue of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00145">SolutionCollector.java:145</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_ac5956c1e28a13932d9b695127becfb8a"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#ac5956c1e28a13932d9b695127becfb8a">com.google.ortools.constraintsolver.SolutionCollector.backwardSequence</a></div><divclass="ttdeci">int [] backwardSequence(int n, SequenceVar var)</div><divclass="ttdoc">This is a shortcut to get the BackwardSequence of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00180">SolutionCollector.java:180</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a7aa8db81fe86b2351410f72c9917d671"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a7aa8db81fe86b2351410f72c9917d671">com.google.ortools.constraintsolver.SolutionCollector.forwardSequence</a></div><divclass="ttdeci">int [] forwardSequence(int n, SequenceVar var)</div><divclass="ttdoc">This is a shortcut to get the ForwardSequence of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00173">SolutionCollector.java:173</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntVar_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntVar.html">com.google.ortools.constraintsolver.IntVar</a></div><divclass="ttdoc">The class IntVar is a subset of IntExpr.</div><divclass="ttdef"><b>Definition:</b><ahref="gen_2com_2google_2ortools_2constraintsolver_2IntVar_8java_source.html#l00014">gen/com/google/ortools/constraintsolver/IntVar.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_afa47c2156335ccf7e0a0a108d9aef603"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#afa47c2156335ccf7e0a0a108d9aef603">com.google.ortools.constraintsolver.SolutionCollector.enterSearch</a></div><divclass="ttdeci">void enterSearch()</div><divclass="ttdoc">Beginning of the search.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00088">SolutionCollector.java:88</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SearchMonitor_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SearchMonitor.html">com.google.ortools.constraintsolver.SearchMonitor</a></div><divclass="ttdoc">A search monitor is a simple set of callbacks to monitor all search events.</div><divclass="ttdef"><b>Definition:</b><ahref="SearchMonitor_8java_source.html#l00014">SearchMonitor.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a9f9e628b0da0b754a4ca5cf632b2b78f"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a9f9e628b0da0b754a4ca5cf632b2b78f">com.google.ortools.constraintsolver.SolutionCollector.performedValue</a></div><divclass="ttdeci">long performedValue(int n, IntervalVar var)</div><divclass="ttdoc">This is a shortcut to get the PerformedValue of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00166">SolutionCollector.java:166</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SequenceVar_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SequenceVar.html">com.google.ortools.constraintsolver.SequenceVar</a></div><divclass="ttdoc">A sequence variable is a variable whose domain is a set of possible orderings of the interval variabl...</div><divclass="ttdef"><b>Definition:</b><ahref="SequenceVar_8java_source.html#l00014">SequenceVar.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a1be835ee05627046de3e904133354d0e"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a1be835ee05627046de3e904133354d0e">com.google.ortools.constraintsolver.SolutionCollector.durationValue</a></div><divclass="ttdeci">long durationValue(int n, IntervalVar var)</div><divclass="ttdoc">This is a shortcut to get the DurationValue of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00159">SolutionCollector.java:159</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_1SolutionCollector_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html">com.google.ortools.constraintsolver.SolutionCollector</a></div><divclass="ttdoc">This class is the root class of all solution collectors.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00014">SolutionCollector.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector_html_a9700f84dc120785c116d0602adb30f07"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1SolutionCollector.html#a9700f84dc120785c116d0602adb30f07">com.google.ortools.constraintsolver.SolutionCollector.unperformed</a></div><divclass="ttdeci">int [] unperformed(int n, SequenceVar var)</div><divclass="ttdoc">This is a shortcut to get the list of unperformed of 'var' in the nth solution.</div><divclass="ttdef"><b>Definition:</b><ahref="SolutionCollector_8java_source.html#l00187">SolutionCollector.java:187</a></div></div>