Class: FeldtRuby::Optimize::TerminationCriterion

Inherits:
Object
  • Object
show all
Defined in:
lib/feldtruby/optimize/max_steps_termination_criterion.rb

Direct Known Subclasses

MaxStepsTerminationCriterion

Instance Method Summary collapse

Instance Method Details

#continue_optimization?Boolean

Inverse of terminate?, i.e. should we continue optimizing?

Returns:

  • (Boolean)


10
11
12
# File 'lib/feldtruby/optimize/max_steps_termination_criterion.rb', line 10

def continue_optimization?
	!terminate?
end

#terminate?(optimizer) ⇒ Boolean

Default termination criterion is to never terminate

Returns:

  • (Boolean)


5
6
7
# File 'lib/feldtruby/optimize/max_steps_termination_criterion.rb', line 5

def terminate?(optimizer)
	false
end