LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mexify.m
1% @brief MATLAB Coder script to generate MEX functions for me_ module.
2%
3% This script generates MEX (MATLAB Executable) versions of Maximum Entropy
4% (ME) queueing-network functions for improved performance.
5%
6% See also CODER, CODER.CONFIG, CODER.TYPEOF, CODEGEN.
7
8%% Create configuration object of class 'coder.CodeConfig'.
9cfg = coder.config('mex','ecoder',false);
10cfg.GenerateReport = false;
11cfg.ReportPotentialDifferences = false;
12cfg.GenCodeOnly = false;
13
14%% Define common types
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]);
18
19% Options struct: must declare all fields actually accessed.
20S_opt = struct();
21S_opt.tol = 0;
22S_opt.maxiter = 0;
23S_opt.verbose = false;
24opt_type = coder.typeof(S_opt);
25
26%% ===== Group: Maximum-Entropy Open Queueing Networks =====
27
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}