Module Hexaly.Phase

type t
val create : optimizer -> t

Create and append a new phase to the optimizer. The phase's index in declaration order matters for execution sequence.

val get : optimizer -> int -> t

Retrieve an existing phase by its 0-based index.

val nb_phases : optimizer -> int
val set_time_limit : t -> int -> unit
val time_limit : t -> int
val set_iteration_limit : t -> int64 -> unit
val iteration_limit : t -> int64
val set_optimized_objective : t -> int -> unit

Which objective (0-based index in declaration order) this phase optimizes.

val optimized_objective : t -> int
val set_enabled : t -> bool -> unit
val is_enabled : t -> bool
val to_string : t -> string
val pp : Stdlib.Format.formatter -> t -> unit