Model state and lookups¶
Read an auxiliary, delay, level, flow, series, table, variable, conversion or the path network.
Each value is the expression read as an auxiliary at t = 20 of a small model (time step 0.5) with a resource Desk of capacity 2 and a stream of arrivals that outruns it, a level Tank filled by the flow fill, a conversion Digester into the level Holder, a delay, a series, a table, a variable, a power draw, a two-node network and a subscript region with three elements.
AUX¶
AUX("name"): 1 argument.
auxiliary NAME, evaluated on read.
Example: AUX("base") * 2 gives 8.
Used in the bundled models Supply line: order-rate management game, Bass diffusion, Inventory with lead time, Population (logistic) and 3 more.
CONV¶
CONV("name"): 1 argument.
the product rate of delayed conversion NAME right now, per its time_unit.
Example: CONV("Digester") gives 47.62.
Used in the bundled models Biogas digester, holder and CHP, Biogas plant (library assets).
DELAY¶
DELAY("name"): 1 argument.
output of delay NAME.
Example: DELAY("pipe") gives 9.765.
DISTANCE¶
DISTANCE("a", "b"): 2 arguments.
shortest path along the path network between two nodes, stations or aliases.
Example: DISTANCE("dock", "yard") gives 100.
FLOW¶
FLOW("name"): 1 argument.
the rate flow NAME moves right now, after saturation, per its rate_time_unit.
Example: FLOW("fill") gives 2.
Used in the bundled models Berth: shore power, Biogas digester, holder and CHP, Biogas plant (library assets), Depot: PV, EV charging and heat pump and 5 more.
FLOWSUM¶
FLOWSUM("tag"[, p]): 1 to 2 arguments.
the rates of every flow tagged TAG (priority below p), per their rate_time_unit.
Example: FLOWSUM("water") gives 2.
Used in the bundled models Berth: shore power, Biogas plant (library assets), Depot: PV, EV charging and heat pump, PV + battery site (library assets) and 2 more.
FRACTION¶
FRACTION("name", "component"): 2 arguments.
the share of blended level (or conversion) NAME that is COMPONENT.
Example: FRACTION("Holder", "ch4") gives 0.5864.
Used in the bundled models Biogas digester, holder and CHP, Biogas plant (library assets).
LEVEL¶
LEVEL("name"): 1 argument.
the current value of level NAME.
Example: LEVEL("Tank") gives 80.
Used in the bundled models Biogas digester, holder and CHP, Biogas plant (library assets), Depot: PV, EV charging and heat pump, Supply line: order-rate management game and 7 more.
POWER¶
POWER("name"): 1 argument.
kW resource, fleet or charger NAME draws now, from its "power" per state; a flow it feeds takes rate_time_unit hours.
Example: POWER("Pump") gives 1.
Used in the bundled models Hub day: electrifying the ground support equipment, Container terminal: electrification.
TABLE¶
TABLE("name", key1[, key2]): 2 to 3 arguments.
a value from the model's lookup table NAME, by 1 or 2 keys.
Example: TABLE("curve", 2.5) gives 25.
Used in the bundled models Hub day: electrifying the ground support equipment, Hub day: turnaround workload (crews, ground equipment, on-time departures), Job shop (routed, per-product sequences), Job shop with MES digital twin and 1 more.
TABLE_EXTRAPOLATE¶
TABLE_EXTRAPOLATE("name", k1[, k2]): 2 to 3 arguments.
like TABLE, but a linear axis continues past its ends along its last slope instead of clamping.
Example: TABLE_EXTRAPOLATE("curve", 12) gives 64.
TS¶
TS("name"[, t]): 1 to 2 arguments.
time-series input NAME now, or at time t.
Example: TS("demand", 2.5) gives 10.
Used in the bundled models Berth: shore power, Biogas digester, holder and CHP, Biogas plant (library assets), Depot: PV, EV charging and heat pump and 6 more.
VAR¶
VAR("name"): 1 argument.
model variable NAME, for a name a bare name cannot spell.
Example: VAR("batch_size") gives 12.
Used in the bundled models Berth: shore power, Biogas plant (library assets), PV + battery site (library assets), Hub day: electrifying the ground support equipment and 1 more.