OptValuePiecewise

Description

Returns a slot variable’s piecewise approximation value as calculated during the last Optimization run.

Type

NUMERIC

Arguments

Type

Meaning

1

SLOT

Desired Slot

2

DATETIME

Date at which to return the value

Evaluation

Given a SeriesSlot and a date, this function returns the piecewise approximation of the slot at the given date, as computed during the most recent problem solution of the last optimization run.

For more information see the Optimization section .

Comments

The function will fail if the variables associated with the slot are not approximated (i.e., are decision variables or are replaced by a linear combination of other variables).

If there is no approximation value available, perhaps because the quantity was not referenced in the optimization policy or there has been not been a successful optimization run, the function returns an invalid value.

 
OptValuePiecewise(%"Kumquat Reservoir.Power", @”18:00 Jan 23, 2009” )
 
6.1 "MW"