kinsol_basic.py

assimulo.examples.kinsol_basic.run_example(with_plots=True)[source]

Example to demonstrate the use of the Sundials solver Kinsol for the simple equation \(0 = 1 - y\)

on return:

  • alg_mod problem instance
  • alg_solver solver instance

Final Run Statistics: Simple KINSOL Example 

 Number of function evaluations              : 2
 Number of Nonlinear Iterations              : 1
 Number of Backtrack Operations (Linesearch) : 0
 Number of Beta-condition Failures           : 0
 Number of Jacobian evaluations              : 1
 Number of F-eval during Jac-eval            : 1

Solver options:

 Solver                  : Kinsol
 Linear Solver           : DENSE
 Globalization Strategy  : LINESEARCH
 Function Tolerances     : 6.05545445239e-06
 Step Tolerances         : 3.6668528625e-11
 Variable Scaling        : [ 1.]
 Function Scaling        : [ 1.]

Elapsed simulation time: 0.000121116638184 seconds.
/home/chria/Development/Assimulo/Assimulo-3.0.x/doc/sphinx/source/kinsol_basic.png

Note

Press [source] (to the top right) to view the example.