Technical report: models and algorithms for FLEX4FACT cluster flexibility optimization in the internal/external markets

Summary
Description of the mathematical models developed for finding the optimal solution(s)from the cluster/markets point of view, favouring the use of RESs and the self-consumption of the energy produced by RESs themselves