spice_ev.util.get_power

spice_ev.util.get_power(y, cost_dict)

Return power for a given price.

Parameters:
  • y (numeric) – price

  • cost_dict (dict) – dictionary with costs

Raises:

NotImplementedError – if costs are neither fixed nor polynomial

Returns:

power

Return type:

numeric