Method: Longjing::Search::Base#log_progress
- Defined in:
- lib/longjing/search/base.rb
#log_progress(state) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/longjing/search/base.rb', line 21 def log_progress(state) return if @best <= state.cost @best = state.cost log { msg = [ "#{statistics.generated} generated", "#{statistics.evaluated} evaluated", "#{statistics.} expanded", "h=#{@best}", "#{state.path.size} steps", "t=#{Time.now - @t}" ].join(', ') } end |