Skip to content

Commit

Permalink
(core) improved geneticSearch printout
Browse files Browse the repository at this point in the history
  • Loading branch information
amkrajewski committed Mar 1, 2024
1 parent b211524 commit 3d9cfda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nimcso.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]()
Expand Down

0 comments on commit 3d9cfda

Please sign in to comment.