Enum Class VerbosityLevel

java.lang.Object
java.lang.Enum<VerbosityLevel>
org.ddolib.util.verbosity.VerbosityLevel
All Implemented Interfaces:
Serializable, Comparable<VerbosityLevel>, Constable

public enum VerbosityLevel extends Enum<VerbosityLevel>
Defines the different verbosity levels controlling the amount of information printed during the execution of a solver.

The verbosity level determines how much runtime feedback is displayed while solving an optimization problem. This can range from completely silent operation to detailed tracing of solver progress and subproblem development.

Typical usage involves selecting an appropriate verbosity level in the model configuration (see Model.verbosityLevel()), depending on whether the focus is on performance, debugging, or visualization of the search process.

  • Enum Constant Details

    • SILENT

      public static final VerbosityLevel SILENT
      No output is produced.

      This mode is intended for fully silent execution, where performance measurements or logs are not required.

    • NORMAL

      public static final VerbosityLevel NORMAL
      Displays important progress updates.

      In this mode, the solver prints a message each time a new best objective value is found during the search.

    • LARGE

      public static final VerbosityLevel LARGE
      Displays detailed runtime information for debugging or analysis purposes.

      In this mode, the solver outputs:

      • A message whenever a new best objective is found.
      • Periodic statistics about the search frontier (approximately every 0.5 seconds).
      • Information about each developed subproblem as the search progresses.
      This mode provides the highest level of detail and is useful for performance analysis and algorithmic tuning.
    • EXPORT

      public static final VerbosityLevel EXPORT
      Same that LARGE but save the logs into logs.txt files.
  • Method Details

    • values

      public static VerbosityLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VerbosityLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null