Did I find the right examples for you? yes no

All Samples(11)  |  Call(7)  |  Derive(0)  |  Import(4)

src/a/s/Assimulo-2.5.1/assimulo/examples/kinsol_ors.py   Assimulo(Download)
import os
from assimulo.solvers import KINSOL
from assimulo.problem import Algebraic_Problem
import warnings
import scipy.sparse
 
    #Define an Assimulo problem
    alg_mod = Algebraic_Problem(res, y0=y0, jac=jac, jacv=jacv, name = 'ORS Example')
    alg_mod_prec = Algebraic_Problem(res, y0=y0, jac=jac, jacv=jacv, prec_solve=prec_solve, prec_setup=prec_setup, name = 'ORS Example (Preconditioned)')
 

src/a/s/Assimulo-2.5.1/assimulo/examples/kinsol_with_jac.py   Assimulo(Download)
import nose
from assimulo.solvers import KINSOL
from assimulo.problem import Algebraic_Problem
 
def run_example(with_plots=True):
 
    #Define an Assimulo problem
    alg_mod = Algebraic_Problem(res, y0=[0,0], jac=jac, name='KINSOL example with Jac')
 
    #Define the KINSOL solver

src/a/s/Assimulo-2.5.1/assimulo/examples/kinsol_basic.py   Assimulo(Download)
import nose
from assimulo.solvers import KINSOL
from assimulo.problem import Algebraic_Problem
 
def run_example(with_plots=True):
 
    #Define an Assimulo problem
    alg_mod = Algebraic_Problem(res, y0=0, name = 'Simple KINSOL Example')
 
    #Define the KINSOL solver

src/a/s/Assimulo-2.5.1/assimulo/tests/solvers/test_kinsol.py   Assimulo(Download)
from assimulo import testattr
from assimulo.solvers.kinsol import *
from assimulo.problem import Algebraic_Problem
from assimulo.exception import *
 
    def test_problem_name_attribute(self):
        res = lambda y: y
        model  = Algebraic_Problem(res, 1)
        assert model.name == "---"
        model  = Algebraic_Problem(res, 1, name="Test")
    def test_properties_simple(self):
        res = lambda y: y
        model  = Algebraic_Problem(res, 1)
        solver = KINSOL(model)