Click or drag to resize

OdeMethodOptions Class

Options for explicit Runge-Kutta methods.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.OdeOdeMethodOptions
    Altaxo.Calc.OdeMultiStepMethodOptions

Namespace: Altaxo.Calc.Ode
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class OdeMethodOptions

The OdeMethodOptions type exposes the following members.

Constructors
 NameDescription
Public methodOdeMethodOptionsInitializes a new instance of the OdeMethodOptions class
Top
Properties
 NameDescription
Public propertyAbsoluteTolerance Gets or sets the absolute tolerance for all y-values. Use AbsoluteTolerances if you want to set the absolute tolerance for each individual y-value.
Public propertyAbsoluteTolerances Gets or sets the absolute tolerances. The length of the array must either be 1 (equal tolerances for all y-values), or of length N.
Public propertyAutomaticStepSizeControl Gets or sets a value indicating whether automatic step size control is switched on.
Public propertyErrorNorm Gets or sets the error norm that is used for the evaluation of the relative error, in order to control the step size.
Public propertyIncludeAutomaticStepsInOutput Gets or sets a value indicating whether steps generated by the automatic step size control should be included in the output. This value is true by default. The value is effective only if AutomaticStepSizeControl is set to true. If AutomaticStepSizeControl is true, but this value is false, then MandatorySolutionPoints have to be set.
Public propertyIncludeInitialValueInOutput Gets or sets a value indicating whether the inital point should be included in the output.
Public propertyIncludeMandatorySolutionPointsInOutput Default: true. Gets or sets a value indicating whether the mandatory solution points (see MandatorySolutionPoints) should appear in the output sequence. This value is only effective if AutomaticStepSizeControl is true. Without automatic step size control, mandatory solution points always appear in the output sequence.
Public propertyInitialStepSize Gets or sets the initial step size. This value is effective only if AutomaticStepSizeControl is true.
Public propertyMandatorySolutionPoints Gets or sets the mandatory solution points. Mandatory solution points will be evaluated directly (i.e. not interpolated).
Public propertyMaxStepSize Gets or sets the maximum size of the step. This value is effective only if AutomaticStepSizeControl is true.
Public propertyOptionalSolutionPoints Gets or sets optional solution points. Optional solution points will be not evaluated directly, but interpolated between two real solution points.
Public propertyRelativeTolerance Gets or sets the relative tolerance for all y-values. Use RelativeTolerances if you want to set the relative tolerance for each individual y-value.
Public propertyRelativeTolerances Gets or sets the relative tolerances. The length of the array must either be 1 (equal tolerances for all y-values), or of length N.
Public propertyStepSize Gets or sets the size of the step. This value is effective only if automatic step size control is not active.
Public propertyStepSizeFilter Set the step size filter (determines the variation of step sizes), see StepSizeFilter.
Public propertyStiffnessDetectionEveryNumberOfSteps Gets or sets the number of successful steps between test for stiffness. Setting this value to 0 disables stiffness detection. The default value is 0.
Top
Methods
 NameDescription
Public methodCheckConsistency Checks the consistency of the options. An InvalidOperationException is thrown if some of the parameters exclude each other.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetEquidistantSequence Gets an equidistant sequence, that can be used e.g. for OptionalSolutionPoints or MandatorySolutionPoints.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected field_stepSize 
Top
Remarks
Essentially there are two modi for explicit Runge-Kutta methods:

i) With automatic step size control (AutomaticStepSizeControl = true) and

ii) Without automatic step size control (AutomaticStepSizeControl = false)

With automatic step size control, the following parameters are relevant:

Without automatic step size control, the following parameters are relevant:

  • IncludeInitialValueInOutput determines whether the inital values for x and y should appear as first item in the output sequence.
  • StepSize determines the fixed step size. Set this parameter to null if you only want to output MandatorySolutionPoints.
  • MandatorySolutionPoints are points where the method is forced to have a solution point. At those points the evaluation of the derivative is forced. In mode without automatic step size control, mandatory solution points always appear in the output sequence.
  • OptionalSolutionPoints are points that are evaluated by interpolation between true solution points. Optional solution points always appear in the output sequence.

See Also