The algorithm of this system is based on day ahead wind commitment, which aims to maximize profit of the energy storage system on specified days, 24 hours.

Users of this system can select their desired system-options to simulate various scenarios of energy flow optimization for wind farm based on stochastic dynamic programming.

Wayne Hung (juh296@psu.edu), Veck Hsiao (102753014@nccu.edu.tw)

Reference paper：Approximate Dynamic Programming for Storage Problems, Lauren A. Hannah, David B. Dunson, Duke University, Durham, NC 27708 USA, 2011.

The actual energy commitment of this wind farm, *yti*, is normal distributed with its mean value equal to 1000 Kwh/hr. And because of the discontinuity and volatility of the wind resource, the power generator decides to use energy storage device to help achieve decided commit energy flow, *xti*, per hour, every day.

The energy price,*pti*, is normal distributed with its mean value equal to $0.055/kwh cross *t* days. The system total revenue is defined as commit energy flow decision, *xti*, times its price, *pti*. The commit energy flow decision *xti* is composed by *yti*, the actual winds power commitment to client, *Δzti*, energy storage level changes, and adding energy flow from winds power to battery, and unmet uncertainty.

There is uncertainty of unmet energy with beta random process and 1% energy loses as heat while crossing each hour, therefore, the profit of this energy system in current period is deducted by two future factors*fd* (energy loses) and *fu* (unmet) in the next period, which are quantity *yd* and *yu* times prices at *t* day and *i* hour. And, the energy storage level of the system may not exceed battery capacity and lower than zero. The system owner is aiming to find the max reward each period with consideration of these conditions by backward recursion.

The energy price,

There is uncertainty of unmet energy with beta random process and 1% energy loses as heat while crossing each hour, therefore, the profit of this energy system in current period is deducted by two future factors