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.
  • 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

      protected static long getCPtr​(DefaultPhaseParameters obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class java.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

      public void setDecision_builder​(DecisionBuilder value)
      When defined, this overrides the default impact based decision builder.
    • getDecision_builder

      public DecisionBuilder getDecision_builder()
      When defined, this overrides the default impact based decision builder.