  The article describes the algorithm used to define the electricity price in
day-ahead and itraday energy markets in Italy. Details of Matlab implementation
of one of its simplified versions, capable of producing good results in a
extremely short time, are then provided and numerical results are discussed.
