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

This function 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)