DispatchEndDate

This function returns the last timestep in the model for which dispatching is allowed.

Description

The last dispatch timestep.

Type

DATETIME

Arguments

Type

Meaning

Evaluation

Returns the DATETIME that is the last timestep at which the current controller allows dispatching. If this function is called from a context in which the current controller does not have a last dispatch timestep (i.e. optimization), then the end date of the run is returned.

Comments

The Number of Post-Run Dispatch Timesteps is set on the Run Control Parameters dialog for Simulation or Rulebased Simulation. For more information on changing the Number of Post-Run Dispatch Timesteps , click

 
DispatchEndDate()
 

If the Run Finish is March 19, 2011 (daily timestep) and the Number of Post-Run Dispatch Timesteps is 3, the function will return:

24:00 March 22, 2011