This article proposes a real-time implementation of distributed model predictive controllers to maximize the thermal energy generated by parabolic trough collector fields. For this control strategy, we consider that each loop of the solar collector field is individually managed by a controller, which can form coalition with other controllers to attain its local goals while contributing to the overall objective. The formation of coalitions is based on a market-based mechanism in which the heat transfer fluid is traded. To relieve the computational burden online, we propose a learning-based approach that approximates optimization problems so that the controller can be applied in real time. Finally, simulations in a -loop solar collector field are used to assess the coalitional strategy based on neural networks in comparison with the coalitional model predictive control. The results show that the coalitional strategy based on neural networks provides a reduction in computing time of up to and a minimal reduction in performance compared to the coalitional model predictive controller used as the baseline.Unión Europea 78905Ministerio de Ciencia e Innovación PID2020-119476RB-I00Ministerio de Ciencia e Innovación IJC2018-035395-IMinisterio de Ciencia e Innovación FPU18/04476Ministerio de Ciencia e Innovación FPU20/0195