利用混合整数线性规划优化能源资产
Documentation: energypylinear.adgefficiency.com
A Python library for optimizing energy assets with mixed-integer linear programming:
Assets can be optimized to either maximize profit or minimize carbon emissions, or for user defined custom objective functions. Custom constraints can be used to further constrain asset behaviour.
A site is a collection of assets that can be optimized together. Sites can use custom objectives and constraints.
Energy balances are performed on electricity, high, and low temperature heat.
Requires Python 3.11 or 3.12:
$ pip install energypylinearThe asset API allows optimizing a single asset at once:
import energypylinear as epl
# 2.0 MW, 4.0 MWh battery
asset = epl.Battery(
power_mw=2,
capacity_mwh=4,
efficiency_pct=0.9,
# different electricity prices for each interval
# length of electricity_prices is the length of the simulation
electricity_prices=[100.0, 50, 200, -100, 0, 200, 100, -100],
# a constant value for each interval
export_electricity_prices=40,
)
simulation = asset.optimize()The site API allows optimizing multiple assets together:
…See more asset types & use cases in the documentation.
$ make test暂无开放 Issues,或尚未同步最近议题。