commonpower.control.util.single_step_cost_callback

single_step_cost_callback(ctrl, sys_inst) float[source]

Computes the cost for a controller as the actual cost for the current time step.

Parameters:
  • ctrl (BaseController) – controller for which we will compute the cost

  • sys_inst (System) – the system within which the controller operates some subsystem

Returns:

float – cost of controlling the subsystem