kinsol_with_jac.py

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

Example to demonstrate the use of the Sundials solver Kinsol with a user provided Jacobian.

on return:

  • alg_mod problem instance
  • alg_solver solver instance

Final Run Statistics: KINSOL example with Jac 

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

Solver options:

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

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

Note

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