commonpower.control.util
Helper functions for control module.
Functions
Generates a new model instance from the given top-level nodes while also cloning their children. |
|
Computes the cost for a controller as the actual cost for the current time step and the predicted cost over the rest of the forecast horizon. |
|
Computes the cost for a controller as the actual cost for the current time step. |
|
Transform a torch tensor to a numpy array. |