CATEGORII DOCUMENTE |
Asp | Autocad | C | Dot net | Excel | Fox pro | Html | Java |
Linux | Mathcad | Photoshop | Php | Sql | Visual studio | Windows | Xml |
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. |
steps = pInteg->GetStepsTaken();
None.
Type |
Description |
int |
Number of integration steps taken so far. |
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.
steps = pInteg->GetMaxSteps ();
None.
Type |
Description |
int |
Maximum number of integration steps that will be allowed. |
This function shows how many steps will be allowed as set with SetMaxSteps( .
steps = pInteg->GetNumRejectedSteps ();
None.
Type |
Description |
int |
Number of rejected step sizes for the current integration step. |
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.
steps = pInteg->GetTotalRejectedSteps ();
None.
Type |
Description |
int |
Number of rejected step sizes for the entire integration. |
None.
steps = pInteg->GetMaxRejectedSteps ();
None.
Type |
Description |
int |
Maximum number of rejected step sizes that will be allowed. |
This function shows how many rejected step sizes will be allowed as set with SetMaxRejectedSteps( .
NumEvals = pInteg->GetNumFunctionEvals();
None.
Type |
Description |
int |
Number of evaluations of the derivative function. |
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.
pct = pInteg->GetPercentComplete();
None.
Type |
Description |
int |
How far the integration has proceeded, as a percent. |
This function returns the percent of the integration completed (defined from t_{0} to the final requested output time). This function can be useful for updating progress bars and the like.
frac = pInteg->GetFractionComplete();
None.
Type |
Description |
double |
How far the integration has proceeded, as a fraction (0.0 to 1.0). |
This function returns the fraction of the integration completed (defined from t_{0} 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 |
Vizualizari: 559
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved