Considering the increasing integration of renewable energies into the power grid, batteries are expected to play a key role in the challenge of compensating the stochastic and intermittent nature of these energy sources. Besides, the deployment of batteries can increase the benefits of a renewable power plant. One way to increase the profits with batteries studied in this paper is performing energy arbitrage. This strategy is based on storing energy at low electricity price moments and selling it when electricity price is high. In this paper, a hybrid renewable energy system consisting of wind and solar power with batteries is studied, and an optimization process is conducted in order to maximize the benefits regarding the dayahead production scheduling of the plant. A multi-objective cost function is proposed, which, on the one hand, maximizes the obtained profit, and, on the other hand, reduces the loss of value of the battery. A particle swarm optimization algorithm is developed and fitted in order to solve this non-linear multi-objective function. With the aim of analyzing the importance of considering both the energy efficiency of the battery and its loss of value, two more simplified cost functions are proposed. Results show the importance of including the energy efficiency in the cost function to optimize. Besides, it is proven that the battery lifetime increases substantially by using the multi-objective cost function, whereas the profitability is similar to the one obtained in case the loss of value is not considered. Finally, due to the small difference in price among hours in the analyzed Iberian electricity market, it is observed that low profits can be provided to the plant by using batteries just for arbitrage purposes in the day-ahead market.