Why does Modelica's nonlinear solver Modelica.Math.Nonlinear.solveOneNonlinearEquation
take more time to solve a nonlinear equation than traditional fixed point iterative (FPI) scheme?
The equation
y= arctan(1-x/1+x)-x
solved by the solveOneNonlinearEquation
solver (which basically uses Brent's Method) solves the above equation in 6 iterations whereas traditional iterative approach takes 111 iterations. However, the CPU time taken by the iterative scheme is lesser than that taken by the solveOneNonlinearEquation
solver (see image).
Why is this? Could be due to computational efficiency of the iterative scheme i.e., to say lesser event generation in the iterative scheme?
Modelica.Math.Nonlinear.solveOneNonlinearEquation
withoneSolveNonlinearEquation
, right? – marco