NDSolve::ivres

Details

  • This message occurs when NDSolve is unable to get an consistent set of initial conditions for a general differential algebraic equation written in residual form .
  • The message is issued when the specified initial conditions are found to be inconsistent with the underlying DAE system.
  • The message warns that the specified initial conditions have been modified to generate a consistent set of initial conditions.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[NDSolve::ivres].

Examples

Basic Examples  (1)

For the single-pendulum problem, the initial condition is inconsistent with the algebraic equation since has to evaluate to a real-valued number:

Both the initial conditions are modified to ensure consistent initial conditions:

Provide consistent initial conditions to resolve the issue: