Did I find the right examples for you? yes no

assimulo.problem.Algebraic_Problem

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

```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)')

```

```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
```

```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
```

```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)

```