CATEGORII DOCUMENTE |
Asp | Autocad | C | Dot net | Excel | Fox pro | Html | Java |
Linux | Mathcad | Photoshop | Php | Sql | Visual studio | Windows | Xml |
Table 12 lists the integrator limit functions. These functions set limits on how far the integration will be allowed to proceed to prevent a runaway condition should an error occur or if the ODE is ill conditioned.
Table 12 Integrator Limit Functions.
Function |
Description |
SetMaxSteps |
Sets the maximum number of integration steps which will be allowed. |
SetMaxRejectedSteps |
Sets the maximum number of rejected steps which will be allowed for a given step. |
pInteg->SetMaxSteps();
pInteg->SetMaxSteps(iMaxSteps);
Variable |
Type |
Description |
iMaxSteps |
int |
(Optional). Maximum number of integration steps to be allowed. Default: 500. |
None.
This function limits the number of integration steps the integrator is allowed to take. This is to keep the integrator from taking too many steps because the step size becomes so small that it essentially takes forever to complete integration. This value can be set arbitrarily large for fixed step size methods or if the variable-step method is expected to be benign.
pInteg->SetMaxRejectedSteps();
pInteg->SetMaxRejectedSteps(iMaxReject);
Variable |
Type |
Description |
iMaxReject |
int |
(Optional). Maximum allowable number of rejected step sizes for a single integration step. Default: 100. |
None.
This function limits the number of times the integrator can reject the step size selection for a given integration step. When using a variable step size method, the step size for the next step is chosen based on the error tolerance of the step. Occasionally, especially near discontinuities, the step size may have to be drastically reduced to meet the error requirements on the current step. If the function is too ill behaved, a large number of steps are rejected.
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 646
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved