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.1
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 
9 package com.google.ortools.constraintsolver;
10 
14 public class DefaultPhaseParameters {
15  private transient long swigCPtr;
16  protected transient boolean swigCMemOwn;
17 
18  protected DefaultPhaseParameters(long cPtr, boolean cMemoryOwn) {
19  swigCMemOwn = cMemoryOwn;
20  swigCPtr = cPtr;
21  }
22 
23  protected static long getCPtr(DefaultPhaseParameters obj) {
24  return (obj == null) ? 0 : obj.swigCPtr;
25  }
26 
27  @SuppressWarnings("deprecation")
28  protected void finalize() {
29  delete();
30  }
31 
32  public synchronized void delete() {
33  if (swigCPtr != 0) {
34  if (swigCMemOwn) {
35  swigCMemOwn = false;
36  mainJNI.delete_DefaultPhaseParameters(swigCPtr);
37  }
38  swigCPtr = 0;
39  }
40  }
41 
45  public void setVarSelectionSchema(int value) {
46  mainJNI.DefaultPhaseParameters_varSelectionSchema_set(swigCPtr, this, value);
47  }
48 
52  public int getVarSelectionSchema() {
53  return mainJNI.DefaultPhaseParameters_varSelectionSchema_get(swigCPtr, this);
54  }
55 
59  public void setValueSelectionSchema(int value) {
60  mainJNI.DefaultPhaseParameters_valueSelectionSchema_set(swigCPtr, this, value);
61  }
62 
66  public int getValueSelectionSchema() {
67  return mainJNI.DefaultPhaseParameters_valueSelectionSchema_get(swigCPtr, this);
68  }
69 
73  public void setInitializationSplits(int value) {
74  mainJNI.DefaultPhaseParameters_initializationSplits_set(swigCPtr, this, value);
75  }
76 
80  public int getInitializationSplits() {
81  return mainJNI.DefaultPhaseParameters_initializationSplits_get(swigCPtr, this);
82  }
83 
87  public void setRunAllHeuristics(boolean value) {
88  mainJNI.DefaultPhaseParameters_runAllHeuristics_set(swigCPtr, this, value);
89  }
90 
94  public boolean getRunAllHeuristics() {
95  return mainJNI.DefaultPhaseParameters_runAllHeuristics_get(swigCPtr, this);
96  }
97 
101  public void setHeuristicPeriod(int value) {
102  mainJNI.DefaultPhaseParameters_heuristicPeriod_set(swigCPtr, this, value);
103  }
104 
108  public int getHeuristicPeriod() {
109  return mainJNI.DefaultPhaseParameters_heuristicPeriod_get(swigCPtr, this);
110  }
111 
115  public void setHeuristicNumFailuresLimit(int value) {
116  mainJNI.DefaultPhaseParameters_heuristicNumFailuresLimit_set(swigCPtr, this, value);
117  }
118 
123  return mainJNI.DefaultPhaseParameters_heuristicNumFailuresLimit_get(swigCPtr, this);
124  }
125 
129  public void setPersistentImpact(boolean value) {
130  mainJNI.DefaultPhaseParameters_persistentImpact_set(swigCPtr, this, value);
131  }
132 
136  public boolean getPersistentImpact() {
137  return mainJNI.DefaultPhaseParameters_persistentImpact_get(swigCPtr, this);
138  }
139 
143  public void setRandomSeed(int value) {
144  mainJNI.DefaultPhaseParameters_randomSeed_set(swigCPtr, this, value);
145  }
146 
150  public int getRandomSeed() {
151  return mainJNI.DefaultPhaseParameters_randomSeed_get(swigCPtr, this);
152  }
153 
157  public void setDisplayLevel(int value) {
158  mainJNI.DefaultPhaseParameters_displayLevel_set(swigCPtr, this, value);
159  }
160 
164  public int getDisplayLevel() {
165  return mainJNI.DefaultPhaseParameters_displayLevel_get(swigCPtr, this);
166  }
167 
171  public void setUseLastConflict(boolean value) {
172  mainJNI.DefaultPhaseParameters_useLastConflict_set(swigCPtr, this, value);
173  }
174 
178  public boolean getUseLastConflict() {
179  return mainJNI.DefaultPhaseParameters_useLastConflict_get(swigCPtr, this);
180  }
181 
185  public void setDecisionBuilder(DecisionBuilder value) {
186  mainJNI.DefaultPhaseParameters_decisionBuilder_set(swigCPtr, this, DecisionBuilder.getCPtr(value), value);
187  }
188 
193  long cPtr = mainJNI.DefaultPhaseParameters_decisionBuilder_get(swigCPtr, this);
194  return (cPtr == 0) ? null : new DecisionBuilder(cPtr, false);
195  }
196 
198  this(mainJNI.new_DefaultPhaseParameters(), true);
199  }
200 
201  // VariableSelection
202  public final static int CHOOSE_MAX_SUM_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_SUM_IMPACT_get();
203  public final static int CHOOSE_MAX_AVERAGE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_AVERAGE_IMPACT_get();
204  public final static int CHOOSE_MAX_VALUE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_VALUE_IMPACT_get();
205 
206  // ValueSelection
207  public final static int SELECT_MIN_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MIN_IMPACT_get();
208  public final static int SELECT_MAX_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MAX_IMPACT_get();
209 
210  // DisplayLevel
211  public final static int NONE = mainJNI.DefaultPhaseParameters_NONE_get();
212  public final static int NORMAL = mainJNI.DefaultPhaseParameters_NORMAL_get();
213  public final static int VERBOSE = mainJNI.DefaultPhaseParameters_VERBOSE_get();
214 
215 }
int getRandomSeed()
Seed used to initialize the random part in some heuristics.
int getValueSelectionSchema()
This parameter describes which value to select for a given var.
boolean getPersistentImpact()
Whether to keep the impact from the first search for other searches, or to recompute the impact for e...
void setHeuristicNumFailuresLimit(int value)
The failure limit for each heuristic that we run.
int getHeuristicNumFailuresLimit()
The failure limit for each heuristic that we run.
void setValueSelectionSchema(int value)
This parameter describes which value to select for a given var.
boolean getRunAllHeuristics()
The default phase will run heuristics periodically.
boolean getUseLastConflict()
Should we use last conflict method.
This struct holds all parameters for the default search.
A DecisionBuilder is responsible for creating the search tree.
void setPersistentImpact(boolean value)
Whether to keep the impact from the first search for other searches, or to recompute the impact for e...
void setInitializationSplits(int value)
Maximum number of intervals that the initialization of impacts will scan per variable.
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.
void setUseLastConflict(boolean value)
Should we use last conflict method.
void setRunAllHeuristics(boolean value)
The default phase will run heuristics periodically.
DecisionBuilder getDecisionBuilder()
When defined, this overrides the default impact based decision builder.
int getDisplayLevel()
This represents the amount of information displayed by the default search.
void setDecisionBuilder(DecisionBuilder value)
When defined, this overrides the default impact based decision builder.
int getHeuristicPeriod()
The distance in nodes between each run of the heuristics.
void setDisplayLevel(int value)
This represents the amount of information displayed by the default search.
void setVarSelectionSchema(int value)
This parameter describes how the next variable to instantiate will be chosen.
void setHeuristicPeriod(int value)
The distance in nodes between each run of the heuristics.
int getVarSelectionSchema()
This parameter describes how the next variable to instantiate will be chosen.