NestedConsoleSolverStateTracker

class NestedConsoleSolverStateTracker(macroSolver: Solver, microSolver: Solver, macroFormatStrategy: (SolverStateSnapshot, TrackingContext) -> String = ::defaultMacroFormat, microFormatStrategy: (SolverStateSnapshot, TrackingContext) -> String = ::defaultMicroFormat, macroLifecycleFormatStrategy: (SolverStatus, TrackingContext) -> String? = ::defaultMacroLifecycleFormat) : AbstractNestedSolverStateTracker(source)

A persistent nested tracker that prints both macro and micro iterations to the console. Automatically displays run numbers and experiment names across multiple autonomous runs. Micro iterations are indented for clear visual hierarchy.

Parameters

macroSolver

The outer solver managing the restarts/macro-steps.

microSolver

The inner solver executing the optimization.

macroFormatStrategy

Formatter for macro-level snapshots. Defaults to defaultMacroFormat.

microFormatStrategy

Formatter for micro-level snapshots. Defaults to defaultMicroFormat.

macroLifecycleFormatStrategy

Formatter for macro lifecycle events. Defaults to defaultMacroLifecycleFormat.

Constructors

Link copied to clipboard
constructor(macroSolver: Solver, microSolver: Solver, macroFormatStrategy: (SolverStateSnapshot, TrackingContext) -> String = ::defaultMacroFormat, microFormatStrategy: (SolverStateSnapshot, TrackingContext) -> String = ::defaultMicroFormat, macroLifecycleFormatStrategy: (SolverStatus, TrackingContext) -> String? = ::defaultMacroLifecycleFormat)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
protected open override fun consumeMacro(outerSnapshot: SolverStateSnapshot)
Link copied to clipboard
protected open override fun consumeMicro(innerSnapshot: SolverStateSnapshot)
Link copied to clipboard
protected open override fun onMacroLifecycleEvent(status: SolverStatus)