Scrigroup - Documente si articole

Username / Parola inexistente      

Home Documente Upload Resurse Alte limbi doc  
AccessAdobe photoshopAlgoritmiAutocadBaze de dateCC sharp
CalculatoareCorel drawDot netExcelFox proFrontpageHardware
HtmlInternetJavaLinuxMatlabMs dosPascal
PhpPower pointRetele calculatoareSqlTutorialsWebdesignWindows
WordXml

AspAutocadCDot netExcelFox proHtmlJava
LinuxMathcadPhotoshopPhpSqlVisual studioWindowsXml

Integrator Diagnostic Functions

c



+ Font mai mare | - Font mai mic



Integrator Diagnostic Functions

Table 13 lists the integrator diagnostic functions. These functions return information about the current health of the integrator, such as how many steps have been taken, how many times the derivative function has been evaluated, and how far the integration has proceeded.

Table 13 Integrator Diagnostic Functions.



Function

Description

GetStepsTaken

Returns the number of integration steps which have been taken so far.

GetMaxSteps

Returns the maximum number of integration steps that will be allowed.

GetNumRejectedSteps

Returns the number of rejected step sizes for the last integration step.

GetTotalRejectedSteps

Returns the total number of rejected step sizes so far.

GetMaxRejectedSteps

Returns the maximum number of rejected steps sizes that will be allowed.

GetNumFunctionEvals

Returns the number of times the derivative function has been evaluated.

GetPercentComplete

Returns how much of integration is complete, as a percent.

GetFractionComplete

Returns how much of integration is complete, as a fraction, 0 1.

GetStepsTaken

Usage

steps = pInteg->GetStepsTaken();

Arguments

None.

Return Value

Type

Description

int

Number of integration steps taken so far.

Notes

This diagnostic function is useful mainly in determining how well a variable step size method has performed. A large number of steps is an indication that the ODE may be ill behaved.

GetMaxSteps

Usage

steps = pInteg->GetMaxSteps ();

Arguments

None.

Return Value

Type

Description

int

Maximum number of integration steps that will be allowed.

Notes

This function shows how many steps will be allowed as set with SetMaxSteps( .

GetNumRejectedSteps

Usage

steps = pInteg->GetNumRejectedSteps ();

Arguments

None.

Return Value

Type

Description

int



Number of rejected step sizes for the current integration step.

Notes

This diagnostic function is useful mainly in determining how well a variable step size method has performed, and a large number of rejected steps is an indication that the ODE may have a discontinuity near the current time.

GetTotalRejectedSteps

Usage

steps = pInteg->GetTotalRejectedSteps ();

Arguments

None.

Return Value

Type

Description

int

Number of rejected step sizes for the entire integration.

Notes

None.

GetMaxRejectedSteps

Usage

steps = pInteg->GetMaxRejectedSteps ();

Arguments

None.

Return Value

Type

Description

int

Maximum number of rejected step sizes that will be allowed.

Notes

This function shows how many rejected step sizes will be allowed as set with SetMaxRejectedSteps( .

GetNumFunctionEvals

Usage

NumEvals = pInteg->GetNumFunctionEvals();

Arguments

None.

Return Value

Type

Description

int

Number of evaluations of the derivative function.

Notes

This diagnostic function is useful in determining the computational expense of the integration. The evaluation of the derivative function is often the most expensive part of the integration. A large number of function evaluations may indicate a need to improve the efficiency of that operation. It can also be used as a tool in selecting from a variety of integration methods to see which is most efficient.

GetPercentComplete

Usage

pct = pInteg->GetPercentComplete();

Arguments

None.

Return Value

Type

Description

int

How far the integration has proceeded, as a percent.

Notes

This function returns the percent of the integration completed (defined from t0 to the final requested output time). This function can be useful for updating progress bars and the like.

GetFractionComplete

Usage

frac = pInteg->GetFractionComplete();

Arguments

None.

Return Value

Type

Description

double

How far the integration has proceeded, as a fraction (0.0 to 1.0).

Notes

This function returns the fraction of the integration completed (defined from t0 to the final requested output time). This function can be useful for updating progress bars and the like.





Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 540
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved