Optibess Algorithm is a python 3.10+ library for simulating and optimizing a photovoltaic system with power storage. It uses data from pvgis and algorithms from the pvlib and Nevergrad python libraries, and is the backend part of the Optibess site.
Optibess Algorithm can be installed with:
pip install Optibess_algorithm
You can run an optimization on an example system with:
import logging
import time
from Optibess_algorithm.power_system_optimizer import NevergradOptimizer
# make info logging show
logging.getLogger().setLevel(logging.INFO)
# start optimization
start_time = time.time()
optimizer = NevergradOptimizer(budget=100)
opt_output, res = optimizer.run()
# print results
print(optimizer.get_candid(opt_output), res)
print(f"Optimization took {time.time() - start_time} seconds")
Check out our documentation. There are example of how to use the different modules for simulation and optimization
Optibess Algorithm is licensed under the MIT license