1% @brief MATLAB Coder script to generate MEX functions
for me_
module.
3% This script generates MEX (MATLAB Executable) versions of Maximum Entropy
4% (ME) queueing-network functions for improved performance.
6% See also CODER, CODER.CONFIG, CODER.TYPEOF, CODEGEN.
8%% Create configuration object of class 'coder.CodeConfig'.
9cfg = coder.config('mex','ecoder',false);
10cfg.GenerateReport =
false;
11cfg.ReportPotentialDifferences =
false;
12cfg.GenCodeOnly =
false;
15scal_type = coder.typeof(0);
16mat_type = coder.typeof(0,[Inf Inf],[1 1]);
17mat3_type = coder.typeof(0,[Inf Inf Inf],[1 1 1]);
19% Options
struct: must declare all fields actually accessed.
24opt_type = coder.typeof(S_opt);
26%% ===== Group: Maximum-Entropy Open Queueing Networks =====
28% me_oqn(M, R, lambda0, Ca0, mu, Cs,
P, options)
29% -> [L, W, Ca, Cd, lambda, rho]
30codegen -config cfg me_oqn -args ...
31 {scal_type, scal_type, mat_type, mat_type, mat_type, mat_type, mat3_type, opt_type}