api.lsn
- mexify_lsn
@brief MATLAB Coder script to generate MEX functions for lsn_ module.
This script generates MEX (MATLAB Executable) versions of LSN (Layered Software Network) functions for improved performance.
- Skipped functions (Coder-incompatible):
- lsn_max_multiplicity - Uses LayeredNetworkElement OOP enum and a
heterogeneous lsn struct with cell-array field ‘arrival’, neither of which is supported by MATLAB Coder.
See also
CODER,CODER.CONFIG,CODER.TYPEOF,CODEGEN.
- lsn_max_multiplicity(lsn)
Computes maximum multiplicity (concurrency level) for LSN nodes
Computes the maximum multiplicity (throughput capacity) for each node in a Layered Software Network (LSN). Uses Kahn’s algorithm for topological sorting to propagate constraints through the network.
- Parameters:
lsn – Layered Software Network structure
- Returns:
outflow – Maximum multiplicity (throughput capacity) for each node
Examples
outflow = lsn_max_multiplicity(lsn)
- lsn_host_reach_mult(lsn, idx)
M = LSN_HOST_REACH_MULT(LSN, IDX) Servers of the host of element IDX that its work can reach.
The divisor of every LQN Util column (SolverLN, SolverLQNS, SolverLDES): lsn.maxmult capped by the declared multiplicity, and 1 at an infinite server, whose stored multiplicity is finite but meaningless, or where the element has no host. IDX is a 1-based absolute element index.