GetPaybackDebt

This function evaluates to the value of the debt slot of the given exchange payback source at the given timestep.

Description

The debt at a payback source.

Type

NUMERIC

Arguments

Type

Meaning

1

STRING

the payback source supply whose debt to calculate

2

DATETIME

the timestep at which to calculate the debt

Evaluation

The function begins by verifying that the string argument is an accounting supply, and that this supply is a payback source. If so, the function evaluates to the value of the payback’s debt slot at the given timestep.

Mathematical
Expression

 

Comments

If the string argument is not a valid supply, or the supply is not a payback source, this function aborts the run with an error. If the debt slot of the payback for which this supply is a source does not contain a value at the given timestep, the function evaluates to zero.

 
GetPaybackDebt("Heron SanJuan to WillowAndRioChama SanJuan.Supply",
@"t")
 
1.823 "m3"