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 
9 package com.google.ortools.constraintsolver;
10 
16 public class DefaultPhaseParameters {
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 setVar_selection_schema(int value) {
49  mainJNI.DefaultPhaseParameters_var_selection_schema_set(swigCPtr, this, value);
50  }
51 
56  public int getVar_selection_schema() {
57  return mainJNI.DefaultPhaseParameters_var_selection_schema_get(swigCPtr, this);
58  }
59 
63  public void setValue_selection_schema(int value) {
64  mainJNI.DefaultPhaseParameters_value_selection_schema_set(swigCPtr, this, value);
65  }
66 
71  return mainJNI.DefaultPhaseParameters_value_selection_schema_get(swigCPtr, this);
72  }
73 
78  public void setInitialization_splits(int value) {
79  mainJNI.DefaultPhaseParameters_initialization_splits_set(swigCPtr, this, value);
80  }
81 
86  public int getInitialization_splits() {
87  return mainJNI.DefaultPhaseParameters_initialization_splits_get(swigCPtr, this);
88  }
89 
95  public void setRun_all_heuristics(boolean value) {
96  mainJNI.DefaultPhaseParameters_run_all_heuristics_set(swigCPtr, this, value);
97  }
98 
104  public boolean getRun_all_heuristics() {
105  return mainJNI.DefaultPhaseParameters_run_all_heuristics_get(swigCPtr, this);
106  }
107 
113  public void setHeuristic_period(int value) {
114  mainJNI.DefaultPhaseParameters_heuristic_period_set(swigCPtr, this, value);
115  }
116 
122  public int getHeuristic_period() {
123  return mainJNI.DefaultPhaseParameters_heuristic_period_get(swigCPtr, this);
124  }
125 
129  public void setHeuristic_num_failures_limit(int value) {
130  mainJNI.DefaultPhaseParameters_heuristic_num_failures_limit_set(swigCPtr, this, value);
131  }
132 
137  return mainJNI.DefaultPhaseParameters_heuristic_num_failures_limit_get(swigCPtr, this);
138  }
139 
144  public void setPersistent_impact(boolean value) {
145  mainJNI.DefaultPhaseParameters_persistent_impact_set(swigCPtr, this, value);
146  }
147 
152  public boolean getPersistent_impact() {
153  return mainJNI.DefaultPhaseParameters_persistent_impact_get(swigCPtr, this);
154  }
155 
159  public void setRandom_seed(int value) {
160  mainJNI.DefaultPhaseParameters_random_seed_set(swigCPtr, this, value);
161  }
162 
166  public int getRandom_seed() {
167  return mainJNI.DefaultPhaseParameters_random_seed_get(swigCPtr, this);
168  }
169 
174  public void setDisplay_level(int value) {
175  mainJNI.DefaultPhaseParameters_display_level_set(swigCPtr, this, value);
176  }
177 
182  public int getDisplay_level() {
183  return mainJNI.DefaultPhaseParameters_display_level_get(swigCPtr, this);
184  }
185 
189  public void setUse_last_conflict(boolean value) {
190  mainJNI.DefaultPhaseParameters_use_last_conflict_set(swigCPtr, this, value);
191  }
192 
196  public boolean getUse_last_conflict() {
197  return mainJNI.DefaultPhaseParameters_use_last_conflict_get(swigCPtr, this);
198  }
199 
204  mainJNI.DefaultPhaseParameters_decision_builder_set(swigCPtr, this, DecisionBuilder.getCPtr(value), value);
205  }
206 
211  long cPtr = mainJNI.DefaultPhaseParameters_decision_builder_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 }
void setHeuristic_period(int value)
The distance in nodes between each run of the heuristics.
static final int NORMAL
int getHeuristic_num_failures_limit()
The failure limit for each heuristic that we run.
void setHeuristic_num_failures_limit(int value)
The failure limit for each heuristic that we run.
int getVar_selection_schema()
This parameter describes how the next variable to instantiate will be chosen.
DefaultPhaseParameters()
boolean getPersistent_impact()
Whether to keep the impact from the first search for other searches, or to recompute the impact for ...
void setInitialization_splits(int value)
Maximum number of intervals that the initialization of impacts will scan per variable.
static final int SELECT_MAX_IMPACT
void setPersistent_impact(boolean value)
Whether to keep the impact from the first search for other searches, or to recompute the impact for ...
static final int VERBOSE
A DecisionBuilder is responsible for creating the search tree.
static final int CHOOSE_MAX_VALUE_IMPACT
int getValue_selection_schema()
This parameter describes which value to select for a given var.
static final int NONE
This struct holds all parameters for the default search.
void setRandom_seed(int value)
Seed used to initialize the random part in some heuristics.
void setUse_last_conflict(boolean value)
Should we use last conflict method.
DecisionBuilder getDecision_builder()
When defined, this overrides the default impact based decision builder.
void setRun_all_heuristics(boolean value)
The default phase will run heuristics periodically.
int getHeuristic_period()
The distance in nodes between each run of the heuristics.
void setDecision_builder(DecisionBuilder value)
When defined, this overrides the default impact based decision builder.
static final int CHOOSE_MAX_SUM_IMPACT
void setDisplay_level(int value)
This represents the amount of information displayed by the default search.
int getRandom_seed()
Seed used to initialize the random part in some heuristics.
static final int SELECT_MIN_IMPACT
void setVar_selection_schema(int value)
This parameter describes how the next variable to instantiate will be chosen.
boolean getRun_all_heuristics()
The default phase will run heuristics periodically.
static final int CHOOSE_MAX_AVERAGE_IMPACT
int getInitialization_splits()
Maximum number of intervals that the initialization of impacts will scan per variable.
DefaultPhaseParameters(long cPtr, boolean cMemoryOwn)
boolean getUse_last_conflict()
Should we use last conflict method.
void setValue_selection_schema(int value)
This parameter describes which value to select for a given var.
int getDisplay_level()
This represents the amount of information displayed by the default search.