Min Absolute Cost#
Minimum absolute-cost redispatch algorithm.
API path: apem.unit_based_model.allocation.algorithms.zonal_clearing.redispatch.min_abs_cost
- class MinAbsCostRD[source]#
Bases:
RedispatchAlgorithmComputes a redispatch solution that minimizes the total absolute redispatch costs. Assumes that: - all generators can be redispatched - redispatch costs are based on the production costs from the zonal clearing stage.
- compute_redispatch(
- nodal_scenario,
- zonal_allocation,
- configuration,
- path,
- redispatch_constraint_units,
- redispatch_threshold,
Computes a redispatch solution for a given zonal solution. The redispatch solution satisfies the constraints formulated based on a nodal scenario.
- Parameters:
nodal_scenario (Scenario) – nodal scenario based on which constraints are formulated
zonal_allocation (SellersAllocation) – allocation computed with zonal clearing
configuration (SolverConfiguration) – values of some parameters to be set in the optimizer
path (str) – path to store the results
redispatch_constraint_units (bool) – True if all units can be used for redispatch, False otherwise
redispatch_threshold (float) – production threshold for filtering what units can be redispatched
- Returns:
redispatch allocation or error
- Return type: