Class InitStateTwins

java.lang.Object
jline.examples.parity.InitStateTwins

public final class InitStateTwins extends Object
python/examples/advanced/initState/: the initial state a transient starts from, and the priors that select it.

THE GOLDEN IS THE LAST POINT OF ONE CURVE. The reference prints SteadyStateQLen[<solver>/<prior>]: <v> for the queue-length trajectory of station 2, class 1, and parse_transient_points reads exactly that line; everything else the example prints is prose. So the twin's job is to reach the same trajectory under each of the reference's priors -- initDefault, initFromMarginal and a uniform state prior -- and report its last value at the reference's precision.

A SOLVER MUST BE RESET BETWEEN PRIORS. Changing the model's state does not invalidate a solver's cached result, so a second getTranAvg on the same object would report the FIRST prior's curve under the second prior's caption. The reference calls solver.reset(); a fresh solver per prior is the same thing and cannot be forgotten.

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    init_state_fcfs_exp.py: one closed class of five jobs over a delay and an FCFS queue, under the default prior and a marginal one.
    static void
    init_state_fcfs_nonexp.py: two classes over a three-server FCFS queue with Erlang service, under three priors -- the default, the first state of a marginal, and the uniform law over that marginal's states.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • initStateFcfsExp

      public static void initStateFcfsExp() throws Exception
      init_state_fcfs_exp.py: one closed class of five jobs over a delay and an FCFS queue, under the default prior and a marginal one.
      Throws:
      Exception
    • initStateFcfsNonexp

      public static void initStateFcfsNonexp() throws Exception
      init_state_fcfs_nonexp.py: two classes over a three-server FCFS queue with Erlang service, under three priors -- the default, the first state of a marginal, and the uniform law over that marginal's states.
      Throws:
      Exception