LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
pollingSet.m
1function space_var = pollingSet(pinfo, space_var, pos, swk, ctr)
2% SPACE_VAR = POLLINGSET(PINFO, SPACE_VAR, POS, SWK, CTR)
3%
4% Write the polling controller into the local-variable columns of a state row.
5% Columns that State.pollingInfo elides are dropped: they are reconstructible
6% from the rest of the state (see State.pollingGet), so materializing them
7% would split each state into copies that no observation can tell apart.
8
9% Copyright (c) 2012-2026, Imperial College London
10% All rights reserved.
11
12if pinfo.ipos > 0
13 space_var(:, pinfo.ipos) = pos;
14end
15if pinfo.iswk > 0
16 space_var(:, pinfo.iswk) = swk;
17end
18if pinfo.ictr > 0
19 space_var(:, pinfo.ictr) = ctr;
20end
21end
Definition Station.m:245