From 3d9cfda7a2f9ac7ecfc54edf3d3f7fc68f5ca500 Mon Sep 17 00:00:00 2001 From: "Adam M. Krajewski" <54290107+amkrajewski@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:24:50 -0500 Subject: [PATCH] (core) improved `geneticSearch` printout --- src/nimcso.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nimcso.nim b/src/nimcso.nim index ab79ebe..0c1a511 100644 --- a/src/nimcso.nim +++ b/src/nimcso.nim @@ -721,6 +721,10 @@ proc geneticSearch*( ## carry over to the next iteration ``searchWidth``, the maximum number of iterations ``maxIterations``, the minimum number of iterations the solution has to fail to improve to be ## considered. let presenceBitArrays = getPresenceBitArrays() + if verbose: + styledEcho "\nRunning Genetic Search algorithm for ", styleBright, fgMagenta, $elementN, resetStyle, " elements and ", styleBright, fgMagenta, $dataN, " data points." + styledEcho "Initiating each level with ", styleBright, fgMagenta, $initialSolutionsN, resetStyle, " random solutions and expanding ", styleBright, fgMagenta, + $searchWidth, resetStyle, " solutions at each level for up to ", styleBright, fgMagenta, $maxIterations, resetStyle, " iterations." benchmarkOnce "Genetic Search", verbose: var solutions = initHeapQueue[ElSolution]()