OptValue

Description

Returns a slot variable’s optimal 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

This function returns the optimal value for the given slot at the given timestep as part of the most recent optimization problem solution of the last run using the Optimization controller. For more information see the Optimization section .

Comments

If there is no optimum value for the slot at that timestep, an invalid value is returned.

This function supports the return of slot values which correspond to decision variables, that is to variables which are contained in the problem and are not replaced with linear combinations of other variables. If called for slots whose variables are not decision variables, an error message will be posted and the run will be aborted. Note that the OptValuePiecewise function allows access to the the piecewise approximation of non-decision variables for which the piecewise approximation technique is applicable.

 
OptValue(%"Norris.Outflow", @”18:00 Jan 23, 2009” )
 
152.23 "cms"