Method: Longjing::Search::Base#log_solution
- Defined in:
- lib/longjing/search/base.rb
#log_solution(steps) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/longjing/search/base.rb', line 36 def log_solution(steps) log { "Solution found!" } log { "Actual search time: #{Time.now - @t}" } log { "Plan length: #{steps.size} step(s)." } log { "Expanded #{statistics.expanded} state(s)." } log { "Evaluated #{statistics.evaluated} state(s)." } log { "Generated #{statistics.generated} state(s)." } log { "Solution:" } steps.each_with_index do |step, i| log { "#{i}. #{step}" } end end |