The present invention is directed to electronic devices, systems, and methods for optimizing dispatch schedules for an
electric vehicle battery in communication with the electronic device to maximize the revenue generation from vehicle-to-grid activities at
a site while also preserving battery health. The devices, systems, and methods may determine, using an optimization
algorithm, the dispatch schedule for the
electric vehicle battery and control a charge or
discharge of the
electric vehicle battery based on the dispatch schedule. The optimization
algorithm may determine the dispatch schedule based on forecasts for future anticipated energy needs of the site and forecasts for future anticipated energy production of the site. The optimization
algorithm may include an objective function including one or more variables. The devices, systems, and methods may introduce a
heuristic term to the objective function or penalize the first derivative of a variable of the objective function to optimize the dispatch schedule.