Java Reference

Java Reference

DefaultPhaseParameters.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 4.0.2
4 *
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package com.google.ortools.constraintsolver;
10
17 private transient long swigCPtr;
18 protected transient boolean swigCMemOwn;
19
20 protected DefaultPhaseParameters(long cPtr, boolean cMemoryOwn) {
21 swigCMemOwn = cMemoryOwn;
22 swigCPtr = cPtr;
23 }
24
25 protected static long getCPtr(DefaultPhaseParameters obj) {
26 return (obj == null) ? 0 : obj.swigCPtr;
27 }
28
29 @SuppressWarnings("deprecation")
30 protected void finalize() {
31 delete();
32 }
33
34 public synchronized void delete() {
35 if (swigCPtr != 0) {
36 if (swigCMemOwn) {
37 swigCMemOwn = false;
38 mainJNI.delete_DefaultPhaseParameters(swigCPtr);
39 }
40 swigCPtr = 0;
41 }
42 }
43
48 public void setVarSelectionSchema(int value) {
49 mainJNI.DefaultPhaseParameters_varSelectionSchema_set(swigCPtr, this, value);
50 }
51
56 public int getVarSelectionSchema() {
57 return mainJNI.DefaultPhaseParameters_varSelectionSchema_get(swigCPtr, this);
58 }
59
63 public void setValueSelectionSchema(int value) {
64 mainJNI.DefaultPhaseParameters_valueSelectionSchema_set(swigCPtr, this, value);
65 }
66
71 return mainJNI.DefaultPhaseParameters_valueSelectionSchema_get(swigCPtr, this);
72 }
73
78 public void setInitializationSplits(int value) {
79 mainJNI.DefaultPhaseParameters_initializationSplits_set(swigCPtr, this, value);
80 }
81
87 return mainJNI.DefaultPhaseParameters_initializationSplits_get(swigCPtr, this);
88 }
89
95 public void setRunAllHeuristics(boolean value) {
96 mainJNI.DefaultPhaseParameters_runAllHeuristics_set(swigCPtr, this, value);
97 }
98
104 public boolean getRunAllHeuristics() {
105 return mainJNI.DefaultPhaseParameters_runAllHeuristics_get(swigCPtr, this);
106 }
107
113 public void setHeuristicPeriod(int value) {
114 mainJNI.DefaultPhaseParameters_heuristicPeriod_set(swigCPtr, this, value);
115 }
116
122 public int getHeuristicPeriod() {
123 return mainJNI.DefaultPhaseParameters_heuristicPeriod_get(swigCPtr, this);
124 }
125
129 public void setHeuristicNumFailuresLimit(int value) {
130 mainJNI.DefaultPhaseParameters_heuristicNumFailuresLimit_set(swigCPtr, this, value);
131 }
132
137 return mainJNI.DefaultPhaseParameters_heuristicNumFailuresLimit_get(swigCPtr, this);
138 }
139
144 public void setPersistentImpact(boolean value) {
145 mainJNI.DefaultPhaseParameters_persistentImpact_set(swigCPtr, this, value);
146 }
147
152 public boolean getPersistentImpact() {
153 return mainJNI.DefaultPhaseParameters_persistentImpact_get(swigCPtr, this);
154 }
155
159 public void setRandomSeed(int value) {
160 mainJNI.DefaultPhaseParameters_randomSeed_set(swigCPtr, this, value);
161 }
162
166 public int getRandomSeed() {
167 return mainJNI.DefaultPhaseParameters_randomSeed_get(swigCPtr, this);
168 }
169
174 public void setDisplayLevel(int value) {
175 mainJNI.DefaultPhaseParameters_displayLevel_set(swigCPtr, this, value);
176 }
177
182 public int getDisplayLevel() {
183 return mainJNI.DefaultPhaseParameters_displayLevel_get(swigCPtr, this);
184 }
185
189 public void setUseLastConflict(boolean value) {
190 mainJNI.DefaultPhaseParameters_useLastConflict_set(swigCPtr, this, value);
191 }
192
196 public boolean getUseLastConflict() {
197 return mainJNI.DefaultPhaseParameters_useLastConflict_get(swigCPtr, this);
198 }
199
204 mainJNI.DefaultPhaseParameters_decisionBuilder_set(swigCPtr, this, DecisionBuilder.getCPtr(value), value);
205 }
206
211 long cPtr = mainJNI.DefaultPhaseParameters_decisionBuilder_get(swigCPtr, this);
212 return (cPtr == 0) ? null : new DecisionBuilder(cPtr, false);
213 }
214
216 this(mainJNI.new_DefaultPhaseParameters(), true);
217 }
218
219 // VariableSelection
220 public final static int CHOOSE_MAX_SUM_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_SUM_IMPACT_get();
221 public final static int CHOOSE_MAX_AVERAGE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_AVERAGE_IMPACT_get();
222 public final static int CHOOSE_MAX_VALUE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_VALUE_IMPACT_get();
223
224 // ValueSelection
225 public final static int SELECT_MIN_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MIN_IMPACT_get();
226 public final static int SELECT_MAX_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MAX_IMPACT_get();
227
228 // DisplayLevel
229 public final static int NONE = mainJNI.DefaultPhaseParameters_NONE_get();
230 public final static int NORMAL = mainJNI.DefaultPhaseParameters_NORMAL_get();
231 public final static int VERBOSE = mainJNI.DefaultPhaseParameters_VERBOSE_get();
232
233}
A DecisionBuilder is responsible for creating the search tree.
This struct holds all parameters for the default search.
int getRandomSeed()
Seed used to initialize the random part in some heuristics.
void setVarSelectionSchema(int value)
This parameter describes how the next variable to instantiate will be chosen.
int getDisplayLevel()
This represents the amount of information displayed by the default search.
void setPersistentImpact(boolean value)
Whether to keep the impact from the first search for other searches, or to recompute the impact for ...
DecisionBuilder getDecisionBuilder()
When defined, this overrides the default impact based decision builder.
int getHeuristicPeriod()
The distance in nodes between each run of the heuristics.
void setUseLastConflict(boolean value)
Should we use last conflict method.
void setRandomSeed(int value)
Seed used to initialize the random part in some heuristics.
int getInitializationSplits()
Maximum number of intervals that the initialization of impacts will scan per variable.
boolean getPersistentImpact()
Whether to keep the impact from the first search for other searches, or to recompute the impact for ...
void setValueSelectionSchema(int value)
This parameter describes which value to select for a given var.
boolean getUseLastConflict()
Should we use last conflict method.
void setRunAllHeuristics(boolean value)
The default phase will run heuristics periodically.
void setHeuristicNumFailuresLimit(int value)
The failure limit for each heuristic that we run.
void setInitializationSplits(int value)
Maximum number of intervals that the initialization of impacts will scan per variable.
void setDisplayLevel(int value)
This represents the amount of information displayed by the default search.
void setHeuristicPeriod(int value)
The distance in nodes between each run of the heuristics.
void setDecisionBuilder(DecisionBuilder value)
When defined, this overrides the default impact based decision builder.
boolean getRunAllHeuristics()
The default phase will run heuristics periodically.
int getVarSelectionSchema()
This parameter describes how the next variable to instantiate will be chosen.
int getValueSelectionSchema()
This parameter describes which value to select for a given var.
int getHeuristicNumFailuresLimit()
The failure limit for each heuristic that we run.