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 setVar_selection_schema(int value) {
46  mainJNI.DefaultPhaseParameters_var_selection_schema_set(swigCPtr, this, value);
47  }
48 
52  public int getVar_selection_schema() {
53  return mainJNI.DefaultPhaseParameters_var_selection_schema_get(swigCPtr, this);
54  }
55 
59  public void setValue_selection_schema(int value) {
60  mainJNI.DefaultPhaseParameters_value_selection_schema_set(swigCPtr, this, value);
61  }
62 
67  return mainJNI.DefaultPhaseParameters_value_selection_schema_get(swigCPtr, this);
68  }
69 
73  public void setInitialization_splits(int value) {
74  mainJNI.DefaultPhaseParameters_initialization_splits_set(swigCPtr, this, value);
75  }
76 
80  public int getInitialization_splits() {
81  return mainJNI.DefaultPhaseParameters_initialization_splits_get(swigCPtr, this);
82  }
83 
87  public void setRun_all_heuristics(boolean value) {
88  mainJNI.DefaultPhaseParameters_run_all_heuristics_set(swigCPtr, this, value);
89  }
90 
94  public boolean getRun_all_heuristics() {
95  return mainJNI.DefaultPhaseParameters_run_all_heuristics_get(swigCPtr, this);
96  }
97 
101  public void setHeuristic_period(int value) {
102  mainJNI.DefaultPhaseParameters_heuristic_period_set(swigCPtr, this, value);
103  }
104 
108  public int getHeuristic_period() {
109  return mainJNI.DefaultPhaseParameters_heuristic_period_get(swigCPtr, this);
110  }
111 
115  public void setHeuristic_num_failures_limit(int value) {
116  mainJNI.DefaultPhaseParameters_heuristic_num_failures_limit_set(swigCPtr, this, value);
117  }
118 
123  return mainJNI.DefaultPhaseParameters_heuristic_num_failures_limit_get(swigCPtr, this);
124  }
125 
129  public void setPersistent_impact(boolean value) {
130  mainJNI.DefaultPhaseParameters_persistent_impact_set(swigCPtr, this, value);
131  }
132 
136  public boolean getPersistent_impact() {
137  return mainJNI.DefaultPhaseParameters_persistent_impact_get(swigCPtr, this);
138  }
139 
143  public void setRandom_seed(int value) {
144  mainJNI.DefaultPhaseParameters_random_seed_set(swigCPtr, this, value);
145  }
146 
150  public int getRandom_seed() {
151  return mainJNI.DefaultPhaseParameters_random_seed_get(swigCPtr, this);
152  }
153 
157  public void setDisplay_level(int value) {
158  mainJNI.DefaultPhaseParameters_display_level_set(swigCPtr, this, value);
159  }
160 
164  public int getDisplay_level() {
165  return mainJNI.DefaultPhaseParameters_display_level_get(swigCPtr, this);
166  }
167 
171  public void setUse_last_conflict(boolean value) {
172  mainJNI.DefaultPhaseParameters_use_last_conflict_set(swigCPtr, this, value);
173  }
174 
178  public boolean getUse_last_conflict() {
179  return mainJNI.DefaultPhaseParameters_use_last_conflict_get(swigCPtr, this);
180  }
181 
186  mainJNI.DefaultPhaseParameters_decision_builder_set(swigCPtr, this, DecisionBuilder.getCPtr(value), value);
187  }
188 
193  long cPtr = mainJNI.DefaultPhaseParameters_decision_builder_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 }
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 e...
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 e...
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.