Class: FeldtRuby::Optimize::TerminationCriterion
- Defined in:
- lib/feldtruby/optimize/max_steps_termination_criterion.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#continue_optimization? ⇒ Boolean
Inverse of terminate?, i.e.
-
#terminate?(optimizer) ⇒ Boolean
Default termination criterion is to never terminate.
Instance Method Details
#continue_optimization? ⇒ Boolean
Inverse of terminate?, i.e. should we continue optimizing?
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
5 6 7 |
# File 'lib/feldtruby/optimize/max_steps_termination_criterion.rb', line 5 def terminate?(optimizer) false end |