IP#
Integer Programming pricing implementation.
API path: apem.unit_based_model.pricing.algorithms.ip
- class IP[source]#
Bases:
PricingAlgorithmImplementation of Integer Programming Pricing.
- compute_prices(
- allocation,
- scenario,
- configuration,
- file_prices=None,
- fixed_prices=None,
Formulates and solves an IP problem similar to the one from “Pricing Optimal Outcomes in Coupled and Non-Convex Markets: Theory and Applications to Electricity Markets” (Appendix D, https://arxiv.org/abs/2209.07386). The method can also be used to compute the LLOCs for an allocation-prices pair.
- Parameters:
allocation (Allocation) – allocation for which supporting prices are computed
scenario (Scenario) – scenario for which prices are computed
configuration (SolverConfiguration) – configuration object containing the parameters for the pricing algorithm
file_prices (str | None) – name of the file in which results are written
fixed_prices (Pricing | None) – prices for which LLOCs should be computed
- Returns:
Pricing object if prices could be computed or Error object otherwise
- Return type: