LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
ssa.h File Reference

LINE Agent Language (LAL): on-demand Gillespie simulation of a finite composition (lal/ssa.py). More...

#include <cmath>
#include <limits>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <tuple>
#include <vector>
#include "line/lang/lal/ctmc.h"
Include dependency graph for ssa.h:

Go to the source code of this file.

Classes

struct  line::lal::SSAResult
 The SSA result (LALSSAResult). More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::lal

Functions

SSAResult line::lal::simulate (const Model &snapshot, long events, unsigned long long seed, double warmupfrac=0.0, const std::string &method="ssa")
 Simulate event races without constructing the joint state space (simulate).

Detailed Description

LINE Agent Language (LAL): on-demand Gillespie simulation of a finite composition (lal/ssa.py).

Both the serial direct method and the next reaction method walk the event kernel without building the joint state space.

The random stream is std::mt19937_64 seeded with seed; the Python path draws from numpy's PCG64, so the two agree in distribution, not sample path.

Definition in file ssa.h.