Good evening,
Thanks for the questions, I have examined your project file and think I can explain the behavior you see.
The peak-shaving dispatch model seeks to reduce peak power demand (kW) from the grid as much as possible over 24-hours, but it does not care about reducing energy (kWh). It also considers the peak demand so far in the month and doesn't bother discharging if the daily peak is less than the monthly peak in order to preserve battery life. This, with the assumption that reducing demand charges rather than energy charges will be the most economic use of the battery system. What this really points out is that SAM does not currently perform a cost-based optimization when choosing the dispatch strategy, rather, it uses a set of heuristics focused on reducing grid-power.
I'm not sure what you mean by changing the dispatch model to look at rates, do you mean performing multiple dispatches considering different utility rate structures? If so, you can certainly do this by changing the rate on the "Electricity Rates" page, but we don't have a way for you to do this easily in parametric form currently.
If you want to examine energy charges specifically, it will be better to use the manual dispatch controller as you suggested you tried, where you schedule to discharge the battery at specific times. In your case however, the most expensive energy is only $0.08/kWh, while the most expensive demand is $21/kW, so I don't believe it would be more economic to focus on reducing kWh, and you result in cycling the battery much more.
In general, energy arbitrage between peak and offpeak periods is not a very lucrative endeavor for a battery system due to round-trip efficiency losses and wear-and-tear on the battery, unless the difference in price between these periods is very high (perhaps >$0.20-$.30/kWh). The manual dispatch strategy isn't effective in this case, because you probably don't reduce the peak demand (kW) as much as the automated controller.
So, unfortunately SAM doesn't currently have a way to co-optimize battery usage to reduce demand and energy charges as much as possible, but can give you insight on what to do. If you have very high demand charges, I'd use the Peak Shaving control. If you don't have demand charges, you can use the manual dispatch controller. Also, consider that your battery dispatch will be dependent on the controls avaiable, and will likely not be operating optimally at all times, considering that PV production and electric load are variable quantities.
Hopefully that helped give some insight into what the model is doing. Please let us know if you have additional questions. I'd also encourage you to check out the following reports:
www.nrel.gov/docs/fy15osti/64641.pdf
,
www.nrel.gov/docs/fy16osti/64987.pdf
.
Best regards,
Nick