Folks:
I would like to model a CT stochastic process as follows:

Two states - ON, and OFF with output values of 1 and 0 respectively
process randomly transitions from ON to OFF state.
duration of ON state should be exponentially distributed
duration of OFF state should be uniformly distributed

I am hoping that I can achieve this by modifying the three state
Continuous Clock example by Haiyang Zheng.  Does this make sense? Are
there better ways to achieve what I want?

As a test, I deleted state3 in that example and changed the state2 -->
state1 transition guardExpression from " time == timeInterval"  to
"time == timeInterval + random()"  to make it random.  I got the
following from the CT Director:

ptolemy.kernel.util.IllegalActionException: The refined step size is
less than the minimum time resolution, at time 3.7096332590000003
  in .vj_ContinuousClock.CT Director
        at 
ptolemy.domains.ct.kernel.CTMultiSolverDirector._refinedStepWRTOutput(CTMultiSolverDirector.java:1257)
        at 
ptolemy.domains.ct.kernel.CTMultiSolverDirector._resolveInitialStates(CTMultiSolverDirector.java:1567)
        at 
ptolemy.domains.ct.kernel.CTMultiSolverDirector._continuousPhaseExecution(CTMultiSolverDirector.java:900)
        at 
ptolemy.domains.ct.kernel.CTMultiSolverDirector.fire(CTMultiSolverDirector.java:367)
        at 
ptolemy.domains.ct.kernel.CTMixedSignalDirector.fire(CTMixedSignalDirector.java:189)
        at ptolemy.actor.CompositeActor.fire(CompositeActor.java:329)
        at ptolemy.actor.Manager.iterate(Manager.java:601)
        at ptolemy.actor.Manager.execute(Manager.java:319)
        at ptolemy.actor.Manager.run(Manager.java:951)
        at ptolemy.actor.Manager$2.run(Manager.java:1003)

Why am I getting this error? How can I avoid it?
Any help would be greatly appreciated.

Vijaya Poudyal


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to