Exception: Optimize::Pipeline::FixedPointOverflow
- Inherits:
-
StandardError
- Object
- StandardError
- Optimize::Pipeline::FixedPointOverflow
- Defined in:
- lib/optimize/pipeline.rb
Instance Attribute Summary collapse
-
#function_name ⇒ Object
readonly
Returns the value of attribute function_name.
-
#iterations ⇒ Object
readonly
Returns the value of attribute iterations.
Instance Method Summary collapse
-
#initialize(function_name:, iterations:) ⇒ FixedPointOverflow
constructor
A new instance of FixedPointOverflow.
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_name ⇒ Object (readonly)
Returns the value of attribute function_name.
23 24 25 |
# File 'lib/optimize/pipeline.rb', line 23 def function_name @function_name end |
#iterations ⇒ Object (readonly)
Returns the value of attribute iterations.
23 24 25 |
# File 'lib/optimize/pipeline.rb', line 23 def iterations @iterations end |