OdeMethodOptions Type

Options for explicit Runge-Kutta methods.

Essentially there are two modi for explicit Runge-Kutta methods:

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

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

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

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

Constructors

Constructor Description

OdeMethodOptions()

Full Usage: OdeMethodOptions()

Instance members

Instance member Description

this.AbsoluteTolerance

Full Usage: this.AbsoluteTolerance

Gets or sets the absolute tolerance for all y-values. Use OdeMethodOptions.AbsoluteTolerances if you want to set the absolute tolerance for each individual y-value.

ArgumentException Must be >= 0 - AbsoluteTolerance

this.AbsoluteTolerances

Full Usage: this.AbsoluteTolerances

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.

this.AutomaticStepSizeControl

Full Usage: this.AutomaticStepSizeControl

Gets or sets a value indicating whether automatic step size control is switched on.

this.CheckConsistency

Full Usage: this.CheckConsistency

Modifiers: abstract

Checks the consistency of the options. An InvalidOperationException is thrown if some of the parameters exclude each other.

this.ErrorNorm

Full Usage: this.ErrorNorm

Gets or sets the error norm that is used for the evaluation of the relative error, in order to control the step size.

this.IncludeAutomaticStepsInOutput

Full Usage: this.IncludeAutomaticStepsInOutput

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 OdeMethodOptions.AutomaticStepSizeControl is set to true. If OdeMethodOptions.AutomaticStepSizeControl is true, but this value is false, then OdeMethodOptions.MandatorySolutionPoints have to be set.

this.IncludeInitialValueInOutput

Full Usage: this.IncludeInitialValueInOutput

Gets or sets a value indicating whether the inital point should be included in the output.

this.IncludeMandatorySolutionPointsInOutput

Full Usage: this.IncludeMandatorySolutionPointsInOutput

Default: true. Gets or sets a value indicating whether the mandatory solution points (see OdeMethodOptions.MandatorySolutionPoints) should appear in the output sequence. This value is only effective if OdeMethodOptions.AutomaticStepSizeControl is true. Without automatic step size control, mandatory solution points always appear in the output sequence.

this.InitialStepSize

Full Usage: this.InitialStepSize

Gets or sets the initial step size. This value is effective only if OdeMethodOptions.AutomaticStepSizeControl is true.

this.MandatorySolutionPoints

Full Usage: this.MandatorySolutionPoints

Gets or sets the mandatory solution points. Mandatory solution points will be evaluated directly (i.e. not interpolated).

this.MaxStepSize

Full Usage: this.MaxStepSize

Gets or sets the maximum size of the step. This value is effective only if OdeMethodOptions.AutomaticStepSizeControl is true.

this.OptionalSolutionPoints

Full Usage: this.OptionalSolutionPoints

Gets or sets optional solution points. Optional solution points will be not evaluated directly, but interpolated between two real solution points.

this.RelativeTolerance

Full Usage: this.RelativeTolerance

Gets or sets the relative tolerance for all y-values. Use OdeMethodOptions.RelativeTolerances if you want to set the relative tolerance for each individual y-value.

ArgumentException Must be >= 0 - RelativeTolerance

this.RelativeTolerances

Full Usage: this.RelativeTolerances

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.

this.StepSize

Full Usage: this.StepSize

Gets or sets the size of the step. This value is effective only if automatic step size control is not active.

this.StepSizeFilter

Full Usage: this.StepSizeFilter

Set the step size filter (determines the variation of step sizes), see OdeMethodOptions.StepSizeFilter.

this.StiffnessDetectionEveryNumberOfSteps

Full Usage: this.StiffnessDetectionEveryNumberOfSteps

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.