Did I find the right examples for you? yes no

# assimulo.problem.Implicit_Problem

All Samples(52)  |  Call(34)  |  Derive(4)  |  Import(14)

import nose
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem

def run_example(with_plots=True):


#Define an Assimulo problem
imp_mod = Implicit_Problem(f,t0=5, y0=0.02695, yd0=-0.02695,
name = 'IDA Example: $\dot y + y = 0$ (reverse time)')



import nose
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem

def run_example(with_plots=True):


#Create an Assimulo implicit problem
imp_mod = Implicit_Problem(f,y0,yd0,p0=p0,name='Example: Computing Sensitivities')

#Sets the options to the problem


import nose
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem

def run_example(with_plots=True):


#Create an Assimulo implicit problem
imp_mod = Implicit_Problem(f, y0, yd0,p0=p0)

#Create an Assimulo implicit solver (IDA)


import nose
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem



#Defines an Assimulo implicit problem
imp_mod = Implicit_Problem(res,y0,yd0,name = 'Example using the Jacobian Vector product')

imp_mod.jacv = jacv #Sets the jacobian


import pylab as P
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem
import nose



#Create an Assimulo implicit problem
imp_mod = Implicit_Problem(f,y0,yd0,name = 'Example using an analytic Jacobian')

#Sets the options to the problem


import nose
from assimulo.solvers import GLIMDA,IDA
from assimulo.problem import Implicit_Problem

def run_example(with_plots=True):


#Define an Assimulo problem
imp_mod = Implicit_Problem(f,y0,yd0,
name = 'Glimbda Example: Van der Pol (implicit)')



import nose
from assimulo.problem import Implicit_Problem

def run_example(with_plots=True):


#Define an Assimulo problem
imp_mod = Implicit_Problem(f,y0,yd0)
imp_mod.name = 'Van der Pol (implicit)'



import nose
from assimulo.problem import Implicit_Problem

class VanDerPolProblem(Implicit_Problem):


import nose
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem

"""

class Extended_Problem(Implicit_Problem):

#Sets the initial conditons directly into the problem
y0 = [0.0, -1.0, 0.0]
yd0 = [-1.0, 0.0, 0.0]


from assimulo.solvers.sundials import *
from assimulo.problem import Explicit_Problem
from assimulo.problem import Implicit_Problem
from assimulo.exception import *


        yd0 = [1.0]

self.problem = Implicit_Problem(f,y0,yd0)
self.simulator = IDA(self.problem)

@testattr(stddist = True)
def test_time_limit(self):
f = lambda t,y,yd: yd-y

exp_mod = Implicit_Problem(f,1.0,1.0)

        f = lambda t,y,yd: y**0.25-yd

prob = Implicit_Problem(f,[1.0],[1.0])

sim = IDA(prob)

            assert solver.t == t

prob = Implicit_Problem(f, [1.0],[1.0])
prob.handle_result = handle_result



1 | 2  Next