Class DefaultPhaseParameters
java.lang.Object
com.google.ortools.constraintsolver.DefaultPhaseParameters
public class DefaultPhaseParameters
extends java.lang.Object
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
Fields Modifier and Type Field Description static intCHOOSE_MAX_AVERAGE_IMPACTstatic intCHOOSE_MAX_SUM_IMPACTstatic intCHOOSE_MAX_VALUE_IMPACTstatic intNONEstatic intNORMALstatic intSELECT_MAX_IMPACTstatic intSELECT_MIN_IMPACTprotected booleanswigCMemOwnstatic intVERBOSE -
Constructor Summary
Constructors Modifier Constructor Description DefaultPhaseParameters()protectedDefaultPhaseParameters(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(DefaultPhaseParameters obj)DecisionBuildergetDecision_builder()When defined, this overrides the default impact based decision builder.intgetDisplay_level()This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.intgetHeuristic_num_failures_limit()The failure limit for each heuristic that we run.intgetHeuristic_period()The distance in nodes between each run of the heuristics.intgetInitialization_splits()Maximum number of intervals that the initialization of impacts will scan
per variable.booleangetPersistent_impact()Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search.intgetRandom_seed()Seed used to initialize the random part in some heuristics.booleangetRun_all_heuristics()The default phase will run heuristics periodically.booleangetUse_last_conflict()Should we use last conflict method.intgetValue_selection_schema()This parameter describes which value to select for a given var.intgetVar_selection_schema()This parameter describes how the next variable to instantiate
will be chosen.voidsetDecision_builder(DecisionBuilder value)When defined, this overrides the default impact based decision builder.voidsetDisplay_level(int value)This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.voidsetHeuristic_num_failures_limit(int value)The failure limit for each heuristic that we run.voidsetHeuristic_period(int value)The distance in nodes between each run of the heuristics.voidsetInitialization_splits(int value)Maximum number of intervals that the initialization of impacts will scan
per variable.voidsetPersistent_impact(boolean value)Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search.voidsetRandom_seed(int value)Seed used to initialize the random part in some heuristics.voidsetRun_all_heuristics(boolean value)The default phase will run heuristics periodically.voidsetUse_last_conflict(boolean value)Should we use last conflict method.voidsetValue_selection_schema(int value)This parameter describes which value to select for a given var.voidsetVar_selection_schema(int value)This parameter describes how the next variable to instantiate
will be chosen.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
protected DefaultPhaseParameters(long cPtr, boolean cMemoryOwn) -
DefaultPhaseParameters
public DefaultPhaseParameters()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete() -
setVar_selection_schema
public void setVar_selection_schema(int value)This parameter describes how the next variable to instantiate
will be chosen. -
getVar_selection_schema
public int getVar_selection_schema()This parameter describes how the next variable to instantiate
will be chosen. -
setValue_selection_schema
public void setValue_selection_schema(int value)This parameter describes which value to select for a given var. -
getValue_selection_schema
public int getValue_selection_schema()This parameter describes which value to select for a given var. -
setInitialization_splits
public void setInitialization_splits(int value)Maximum number of intervals that the initialization of impacts will scan
per variable. -
getInitialization_splits
public int getInitialization_splits()Maximum number of intervals that the initialization of impacts will scan
per variable. -
setRun_all_heuristics
public void setRun_all_heuristics(boolean value)The default phase will run heuristics periodically. This parameter
indicates if we should run all heuristics, or a randomly selected
one. -
getRun_all_heuristics
public boolean getRun_all_heuristics()The default phase will run heuristics periodically. This parameter
indicates if we should run all heuristics, or a randomly selected
one. -
setHeuristic_period
public void setHeuristic_period(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. -
getHeuristic_period
public int getHeuristic_period()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. -
setHeuristic_num_failures_limit
public void setHeuristic_num_failures_limit(int value)The failure limit for each heuristic that we run. -
getHeuristic_num_failures_limit
public int getHeuristic_num_failures_limit()The failure limit for each heuristic that we run. -
setPersistent_impact
public void setPersistent_impact(boolean value)Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search. -
getPersistent_impact
public boolean getPersistent_impact()Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search. -
setRandom_seed
public void setRandom_seed(int value)Seed used to initialize the random part in some heuristics. -
getRandom_seed
public int getRandom_seed()Seed used to initialize the random part in some heuristics. -
setDisplay_level
public void setDisplay_level(int value)This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information. -
getDisplay_level
public int getDisplay_level()This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information. -
setUse_last_conflict
public void setUse_last_conflict(boolean value)Should we use last conflict method. The default is false. -
getUse_last_conflict
public boolean getUse_last_conflict()Should we use last conflict method. The default is false. -
setDecision_builder
When defined, this overrides the default impact based decision builder. -
getDecision_builder
When defined, this overrides the default impact based decision builder.
-