Exception: Optimize::Pipeline::FixedPointOverflow

Inherits:
StandardError
  • Object
show all
Defined in:
lib/optimize/pipeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(function_name:, iterations:) ⇒ FixedPointOverflow

Returns a new instance of FixedPointOverflow.



18
19
20
21
22
# File 'lib/optimize/pipeline.rb', line 18

def initialize(function_name:, iterations:)
  super("pipeline did not converge after #{iterations} iterations on function #{function_name.inspect}")
  @function_name = function_name
  @iterations = iterations
end

Instance Attribute Details

#function_nameObject (readonly)

Returns the value of attribute function_name.



23
24
25
# File 'lib/optimize/pipeline.rb', line 23

def function_name
  @function_name
end

#iterationsObject (readonly)

Returns the value of attribute iterations.



23
24
25
# File 'lib/optimize/pipeline.rb', line 23

def iterations
  @iterations
end