spice_ev.util.get_cost
- spice_ev.util.get_cost(x, cost_dict)
Return cost based on the cost type.
- Parameters:
x (numeric) – coefficient
cost_dict (dict) – dictionary with costs
- Raises:
NotImplementedError – if costs are neither fixed nor polynomial
- Returns:
cost
- Return type:
numeric