![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
LQN2PN: LayeredNetwork to Petri net (GSPN) translator. More...
#include <algorithm>#include <cctype>#include <cmath>#include <cstddef>#include <cstdio>#include <functional>#include <iostream>#include <limits>#include <map>#include <set>#include <string>#include <utility>#include <vector>#include "line/io/lqn2qn.h"#include "line/lang/lqn/lqn_reader.h"#include "line/lang/lqn/lqn_struct.h"#include "line/lang/qn/network_builder.h"#include "line/num/number.h"#include "line/util/error.h"Go to the source code of this file.
Classes | |
| struct | line::io::Lqn2PnCell |
| A (place, class) pair of the Petri net, by node and class NAME. More... | |
| struct | line::io::Lqn2PnProcessor |
| Where to read a processor replica. More... | |
| struct | line::io::Lqn2PnTask |
| Where to read a task replica. More... | |
| struct | line::io::Lqn2PnElement |
| The (place, class) copies of an entry or activity whose Tput sums to its throughput. More... | |
| struct | line::io::Lqn2PnMap |
| The result map of LQN2PN, the twin of the Python return_map dictionary, insertion-ordered. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::io |
Functions | |
| template<class T> | |
| qn::Network< T > | line::io::lqn2pn (const lqn::LqnModel< T > &lqn, const std::string &replication="auto", const std::string &name="model", std::vector< std::string > *warnings=nullptr, Lqn2PnMap *map=nullptr) |
| Port of Python LQN2PN(lqn, replication, return_map) and MATLAB LQN2PN: convert a layered network into a Petri net (Place and Transition nodes, a GSPN) that keeps every layer at once. | |
| template<class T> | |
| qn::Network< T > | line::io::lqn2pn (const lqn::LqnStruct< T > &lsn, const std::string &replication="auto", const std::string &name="model", std::vector< std::string > *warnings=nullptr, Lqn2PnMap *map=nullptr) |
| LQN2PN over an already flattened LqnStruct. | |
LQN2PN: LayeredNetwork to Petri net (GSPN) translator.
Port of python/line_solver/io/lqn2pn.py and matlab/src/io/LQN2PN.m; the three must stay in step and produce the same net: the same node list, class list, populations and transition modes, in the same order. See _kb/06-solver-catalog.md (LQN2PN) for the construction and its caveats.
Construction, in brief:
Refused by name, as LINE:unsupported:<kind>: cache tasks (CacheTask), setup tasks (SetupTask), admission constraints (AdmissionConstraint), load, class and joint dependence (LoadDependence), server pools (ServerPools), scheduling other than FCFS, SIRO, PS and INF, plus REF on tasks (SchedStrategy), an AND-join quorum below its branch count (AndJoinQuorum), a host demand on a PS processor that is not a renewal phase-type law (PSNonPhaseType: MAP, ME, RAP, Det, Uniform, Gamma, ...) and the unrepresentable fork/join shapes (Structure). A phase-type demand (alpha, S) on a PS processor is expanded into one place <A>_ph<k> per phase, entered by alpha through <A>_start and left through exponential modes <A>_run<k> (rates S(k,j) and the exit rates) scaled by min(1, c/n): exact PS with phase-type service.
Definition in file lqn2pn.h.