LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
infer_lqn_findbyname.m
1function el = infer_lqn_findbyname(container, name)
2% INFER_LQN_FINDBYNAME Locate an LQN element by name in a cell container.
3%
4% EL = INFER_LQN_FINDBYNAME(CONTAINER, NAME) returns the first element of
5% the cell array CONTAINER whose .name equals NAME, or [] if none matches.
6% Used by the LQN parameter identification helpers to resolve activities and
7% tasks referenced by name in a parameter specification (see INFER_LQN).
8%
9% Copyright (c) 2012-2026, Imperial College London
10% All rights reserved.
11
12el = [];
13for k = 1:numel(container)
14 if strcmp(container{k}.name, name)
15 el = container{k};
16 return
17 end
18end
19end
Definition Station.m:245