Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.DefaultPhaseParameters Class Reference

Public Member Functions

synchronized void delete ()
 
void keepAliveDecisionBuilder (DecisionBuilder db)
 
void setVarSelectionSchema (int value)
 
int getVarSelectionSchema ()
 
void setValueSelectionSchema (int value)
 
int getValueSelectionSchema ()
 
void setInitializationSplits (int value)
 
int getInitializationSplits ()
 
void setRunAllHeuristics (boolean value)
 
boolean getRunAllHeuristics ()
 
void setHeuristicPeriod (int value)
 
int getHeuristicPeriod ()
 
void setHeuristicNumFailuresLimit (int value)
 
int getHeuristicNumFailuresLimit ()
 
void setPersistentImpact (boolean value)
 
boolean getPersistentImpact ()
 
void setRandomSeed (int value)
 
int getRandomSeed ()
 
void setDisplayLevel (int value)
 
int getDisplayLevel ()
 
void setUseLastConflict (boolean value)
 
boolean getUseLastConflict ()
 
void setDecisionBuilder (DecisionBuilder value)
 
DecisionBuilder getDecisionBuilder ()
 
 DefaultPhaseParameters ()
 

Static Public Attributes

static final int CHOOSE_MAX_SUM_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_SUM_IMPACT_get()
 VariableSelection.
 
static final int CHOOSE_MAX_AVERAGE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_AVERAGE_IMPACT_get()
 
static final int CHOOSE_MAX_VALUE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_VALUE_IMPACT_get()
 
static final int SELECT_MIN_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MIN_IMPACT_get()
 ValueSelection.
 
static final int SELECT_MAX_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MAX_IMPACT_get()
 
static final int NONE = mainJNI.DefaultPhaseParameters_NONE_get()
 DisplayLevel.
 
static final int NORMAL = mainJNI.DefaultPhaseParameters_NORMAL_get()
 
static final int VERBOSE = mainJNI.DefaultPhaseParameters_VERBOSE_get()
 

Protected Member Functions

 DefaultPhaseParameters (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (DefaultPhaseParameters obj)
 
static long swigRelease (DefaultPhaseParameters obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

This struct holds all parameters for the default search.
DefaultPhaseParameters is only used by Solver::MakeDefaultPhase methods.
Note this is for advanced users only.

Definition at line 19 of file DefaultPhaseParameters.java.

Constructor & Destructor Documentation

◆ DefaultPhaseParameters() [1/2]

com.google.ortools.constraintsolver.DefaultPhaseParameters.DefaultPhaseParameters ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 23 of file DefaultPhaseParameters.java.

◆ DefaultPhaseParameters() [2/2]

com.google.ortools.constraintsolver.DefaultPhaseParameters.DefaultPhaseParameters ( )

Definition at line 244 of file DefaultPhaseParameters.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.constraintsolver.DefaultPhaseParameters.delete ( )

Definition at line 49 of file DefaultPhaseParameters.java.

◆ finalize()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.finalize ( )
protected

Definition at line 45 of file DefaultPhaseParameters.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.DefaultPhaseParameters.getCPtr ( DefaultPhaseParameters obj)
staticprotected

Definition at line 28 of file DefaultPhaseParameters.java.

◆ getDecisionBuilder()

DecisionBuilder com.google.ortools.constraintsolver.DefaultPhaseParameters.getDecisionBuilder ( )

When defined, this overrides the default impact based decision builder.

Definition at line 239 of file DefaultPhaseParameters.java.

◆ getDisplayLevel()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.getDisplayLevel ( )

This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.

Definition at line 207 of file DefaultPhaseParameters.java.

◆ getHeuristicNumFailuresLimit()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.getHeuristicNumFailuresLimit ( )

The failure limit for each heuristic that we run.

Definition at line 161 of file DefaultPhaseParameters.java.

◆ getHeuristicPeriod()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.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.

Definition at line 147 of file DefaultPhaseParameters.java.

◆ getInitializationSplits()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.getInitializationSplits ( )

Maximum number of intervals that the initialization of impacts will scan
per variable.

Definition at line 111 of file DefaultPhaseParameters.java.

◆ getPersistentImpact()

boolean com.google.ortools.constraintsolver.DefaultPhaseParameters.getPersistentImpact ( )

Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search.

Definition at line 177 of file DefaultPhaseParameters.java.

◆ getRandomSeed()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.getRandomSeed ( )

Seed used to initialize the random part in some heuristics.

Definition at line 191 of file DefaultPhaseParameters.java.

◆ getRunAllHeuristics()

boolean com.google.ortools.constraintsolver.DefaultPhaseParameters.getRunAllHeuristics ( )

The default phase will run heuristics periodically. This parameter
indicates if we should run all heuristics, or a randomly selected
one.

Definition at line 129 of file DefaultPhaseParameters.java.

◆ getUseLastConflict()

boolean com.google.ortools.constraintsolver.DefaultPhaseParameters.getUseLastConflict ( )

Should we use last conflict method. The default is false.

Definition at line 221 of file DefaultPhaseParameters.java.

◆ getValueSelectionSchema()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.getValueSelectionSchema ( )

This parameter describes which value to select for a given var.

Definition at line 95 of file DefaultPhaseParameters.java.

◆ getVarSelectionSchema()

int com.google.ortools.constraintsolver.DefaultPhaseParameters.getVarSelectionSchema ( )

This parameter describes how the next variable to instantiate
will be chosen.

Definition at line 81 of file DefaultPhaseParameters.java.

◆ keepAliveDecisionBuilder()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.keepAliveDecisionBuilder ( DecisionBuilder db)

Definition at line 62 of file DefaultPhaseParameters.java.

◆ setDecisionBuilder()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setDecisionBuilder ( DecisionBuilder value)

When defined, this overrides the default impact based decision builder.

Definition at line 228 of file DefaultPhaseParameters.java.

◆ setDisplayLevel()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setDisplayLevel ( int value)

This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.

Definition at line 199 of file DefaultPhaseParameters.java.

◆ setHeuristicNumFailuresLimit()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setHeuristicNumFailuresLimit ( int value)

The failure limit for each heuristic that we run.

Definition at line 154 of file DefaultPhaseParameters.java.

◆ setHeuristicPeriod()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.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.

Definition at line 138 of file DefaultPhaseParameters.java.

◆ setInitializationSplits()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setInitializationSplits ( int value)

Maximum number of intervals that the initialization of impacts will scan
per variable.

Definition at line 103 of file DefaultPhaseParameters.java.

◆ setPersistentImpact()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setPersistentImpact ( boolean value)

Whether to keep the impact from the first search for other searches,
or to recompute the impact for each new search.

Definition at line 169 of file DefaultPhaseParameters.java.

◆ setRandomSeed()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setRandomSeed ( int value)

Seed used to initialize the random part in some heuristics.

Definition at line 184 of file DefaultPhaseParameters.java.

◆ setRunAllHeuristics()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setRunAllHeuristics ( boolean value)

The default phase will run heuristics periodically. This parameter
indicates if we should run all heuristics, or a randomly selected
one.

Definition at line 120 of file DefaultPhaseParameters.java.

◆ setUseLastConflict()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setUseLastConflict ( boolean value)

Should we use last conflict method. The default is false.

Definition at line 214 of file DefaultPhaseParameters.java.

◆ setValueSelectionSchema()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setValueSelectionSchema ( int value)

This parameter describes which value to select for a given var.

Definition at line 88 of file DefaultPhaseParameters.java.

◆ setVarSelectionSchema()

void com.google.ortools.constraintsolver.DefaultPhaseParameters.setVarSelectionSchema ( int value)

This parameter describes how the next variable to instantiate
will be chosen.

Definition at line 73 of file DefaultPhaseParameters.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.DefaultPhaseParameters.swigRelease ( DefaultPhaseParameters obj)
staticprotected

Definition at line 32 of file DefaultPhaseParameters.java.

Member Data Documentation

◆ CHOOSE_MAX_AVERAGE_IMPACT

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.CHOOSE_MAX_AVERAGE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_AVERAGE_IMPACT_get()
static

Definition at line 250 of file DefaultPhaseParameters.java.

◆ CHOOSE_MAX_SUM_IMPACT

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.CHOOSE_MAX_SUM_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_SUM_IMPACT_get()
static

VariableSelection.

Definition at line 249 of file DefaultPhaseParameters.java.

◆ CHOOSE_MAX_VALUE_IMPACT

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.CHOOSE_MAX_VALUE_IMPACT = mainJNI.DefaultPhaseParameters_CHOOSE_MAX_VALUE_IMPACT_get()
static

Definition at line 251 of file DefaultPhaseParameters.java.

◆ NONE

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.NONE = mainJNI.DefaultPhaseParameters_NONE_get()
static

DisplayLevel.

Definition at line 258 of file DefaultPhaseParameters.java.

◆ NORMAL

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.NORMAL = mainJNI.DefaultPhaseParameters_NORMAL_get()
static

Definition at line 259 of file DefaultPhaseParameters.java.

◆ SELECT_MAX_IMPACT

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.SELECT_MAX_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MAX_IMPACT_get()
static

Definition at line 255 of file DefaultPhaseParameters.java.

◆ SELECT_MIN_IMPACT

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.SELECT_MIN_IMPACT = mainJNI.DefaultPhaseParameters_SELECT_MIN_IMPACT_get()
static

ValueSelection.

Definition at line 254 of file DefaultPhaseParameters.java.

◆ swigCMemOwn

transient boolean com.google.ortools.constraintsolver.DefaultPhaseParameters.swigCMemOwn
protected

Definition at line 21 of file DefaultPhaseParameters.java.

◆ VERBOSE

final int com.google.ortools.constraintsolver.DefaultPhaseParameters.VERBOSE = mainJNI.DefaultPhaseParameters_VERBOSE_get()
static

Definition at line 260 of file DefaultPhaseParameters.java.


The documentation for this class was generated from the following file: