Class DefaultPhaseParameters
java.lang.Object
com.google.ortools.constraintsolver.DefaultPhaseParameters
This struct holds all parameters for the default search.
DefaultPhaseParameters is only used by Solver::MakeDefaultPhase methods.
Note this is for advanced users only.
DefaultPhaseParameters is only used by Solver::MakeDefaultPhase methods.
Note this is for advanced users only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
protected boolean
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
protected void
finalize()
static long
When defined, this overrides the default impact based decision builder.int
This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.int
The failure limit for each heuristic that we run.int
The distance in nodes between each run of the heuristics.int
Maximum number of intervals that the initialization of impacts will scan
per variable.boolean
Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search.int
Seed used to initialize the random part in some heuristics.boolean
The default phase will run heuristics periodically.boolean
Should we use last conflict method.int
This parameter describes which value to select for a given var.int
This parameter describes how the next variable to instantiate
will be chosen.void
void
When defined, this overrides the default impact based decision builder.void
setDisplayLevel
(int value) This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.void
setHeuristicNumFailuresLimit
(int value) The failure limit for each heuristic that we run.void
setHeuristicPeriod
(int value) The distance in nodes between each run of the heuristics.void
setInitializationSplits
(int value) Maximum number of intervals that the initialization of impacts will scan
per variable.void
setPersistentImpact
(boolean value) Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search.void
setRandomSeed
(int value) Seed used to initialize the random part in some heuristics.void
setRunAllHeuristics
(boolean value) The default phase will run heuristics periodically.void
setUseLastConflict
(boolean value) Should we use last conflict method.void
setValueSelectionSchema
(int value) This parameter describes which value to select for a given var.void
setVarSelectionSchema
(int value) This parameter describes how the next variable to instantiate
will be chosen.static long
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn -
CHOOSE_MAX_SUM_IMPACT
public static final int CHOOSE_MAX_SUM_IMPACT -
CHOOSE_MAX_AVERAGE_IMPACT
public static final int CHOOSE_MAX_AVERAGE_IMPACT -
CHOOSE_MAX_VALUE_IMPACT
public static final int CHOOSE_MAX_VALUE_IMPACT -
SELECT_MIN_IMPACT
public static final int SELECT_MIN_IMPACT -
SELECT_MAX_IMPACT
public static final int SELECT_MAX_IMPACT -
NONE
public static final int NONE -
NORMAL
public static final int NORMAL -
VERBOSE
public static final int VERBOSE
-
-
Constructor Details
-
DefaultPhaseParameters
public DefaultPhaseParameters(long cPtr, boolean cMemoryOwn) -
DefaultPhaseParameters
public DefaultPhaseParameters()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
-
delete
public void delete() -
keepAliveDecisionBuilder
-
setVarSelectionSchema
public void setVarSelectionSchema(int value) This parameter describes how the next variable to instantiate
will be chosen. -
getVarSelectionSchema
public int getVarSelectionSchema()This parameter describes how the next variable to instantiate
will be chosen. -
setValueSelectionSchema
public void setValueSelectionSchema(int value) This parameter describes which value to select for a given var. -
getValueSelectionSchema
public int getValueSelectionSchema()This parameter describes which value to select for a given var. -
setInitializationSplits
public void setInitializationSplits(int value) Maximum number of intervals that the initialization of impacts will scan
per variable. -
getInitializationSplits
public int getInitializationSplits()Maximum number of intervals that the initialization of impacts will scan
per variable. -
setRunAllHeuristics
public void setRunAllHeuristics(boolean value) The default phase will run heuristics periodically. This parameter
indicates if we should run all heuristics, or a randomly selected
one. -
getRunAllHeuristics
public boolean getRunAllHeuristics()The default phase will run heuristics periodically. This parameter
indicates if we should run all heuristics, or a randomly selected
one. -
setHeuristicPeriod
public void setHeuristicPeriod(int value) The distance in nodes between each run of the heuristics. A
negative or null value will mean that we will not run heuristics
at all. -
getHeuristicPeriod
public int getHeuristicPeriod()The distance in nodes between each run of the heuristics. A
negative or null value will mean that we will not run heuristics
at all. -
setHeuristicNumFailuresLimit
public void setHeuristicNumFailuresLimit(int value) The failure limit for each heuristic that we run. -
getHeuristicNumFailuresLimit
public int getHeuristicNumFailuresLimit()The failure limit for each heuristic that we run. -
setPersistentImpact
public void setPersistentImpact(boolean value) Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search. -
getPersistentImpact
public boolean getPersistentImpact()Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search. -
setRandomSeed
public void setRandomSeed(int value) Seed used to initialize the random part in some heuristics. -
getRandomSeed
public int getRandomSeed()Seed used to initialize the random part in some heuristics. -
setDisplayLevel
public void setDisplayLevel(int value) This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information. -
getDisplayLevel
public int getDisplayLevel()This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information. -
setUseLastConflict
public void setUseLastConflict(boolean value) Should we use last conflict method. The default is false. -
getUseLastConflict
public boolean getUseLastConflict()Should we use last conflict method. The default is false. -
setDecisionBuilder
When defined, this overrides the default impact based decision builder. -
getDecisionBuilder
When defined, this overrides the default impact based decision builder.
-