Optimization of the Spanish market sequence by a price-taker generating firm