A thermal-management system for a vehicle comprising: - at least one calories and/or frigories storage (S1, S2) forming a source of calories or frigories, - at least one element (M1, M2, M3) of the vehicle to be heated or cooled, - at least one additional source (M1, M2, M3, RE1, RE2, RE3) of calories or frigories, - detection means adapted to detect whether calories or frigories are available at one of the said sources, - control means able to distribute the calories or frigories available at the sources to the elements to be heated or cooled, according to transient or nominal needs, comprising prediction means capable of making at least one prediction aimed at determining: • whether calories or frigories will be available at a later date from any of the said sources and/or, • whether a need for calories or frigories will exist at a later date at one of the said elements to be heated or cooled. and in that it comprises management means capable of: - defining a thermal need for one or more of the elements of the vehicle to be heated or cooled and/or an electrical need for one or more of the elements of the vehicle to be supplied electrically, on the basis of input data relating to the state of the elements of the vehicle to be heated or cooled, and relating to the state of the sources of calories or frigories, of a request from a user and/or of a prediction, - defining an operating mode of the system on the basis of the said thermal need, the said electrical need and/or a prediction, - operating the system's actuators, so as to operate the system according to the chosen operating mode, characterized in that said system implements a hierarchical thermal-management strategy in three levels of control, - a first level, dedicated to prediction to optimize the thermal-management of the system, said prediction being based on a model and/or collected data, which are processed by learning algorithms and/or artificial intelligence techniques to obtain a model of the system, in this case the vehicle and in particular the elements to be cooled and heated and the thermal-management system, - a second level, defining the thermal-management of the system in real-time, said second level selecting a suitable and optimized thermal mode to ensure the proper operation of system elements and vehicle elements by taking into consideration the thermal state of the system elements and vehicle elements in real-time, as well as the prediction data of the first level of the strategy, - a third level, defining the control laws for activating or deactivating the selected components according to the thermal mode selected at the second level. - at least one calories and/or frigories storage (S1, S2) forming a source of calories or frigories, - at least one element (M1, M2, M3) of the vehicle to be heated or cooled, - at least one additional source (M1, M2, M3, RE1, RE2, RE3) of calories or frigories, - detection means adapted to detect whether calories or frigories are available at one of the said sources, - control means able to distribute the calories or frigories available at the sources to the elements to be heated or cooled, according to transient or nominal needs, • whether calories or frigories will be available at a later date from any of the said sources and/or, • whether a need for calories or frigories will exist at a later date at one of the said elements to be heated or cooled. - defining a thermal need for one or more of the elements of the vehicle to be heated or cooled and/or an electrical need for one or more of the elements of the vehicle to be supplied electrically, on the basis of input data relating to the state of the elements of the vehicle to be heated or cooled, and relating to the state of the sources of calories or frigories, of a request from a user and/or of a prediction, - defining an operating mode of the system on the basis of the said thermal need, the said electrical need and/or a prediction, - operating the system's actuators, so as to operate the system according to the chosen operating mode, - a first level, dedicated to prediction to optimize the thermal-management of the system, said prediction being based on a model and/or collected data, which are processed by learning algorithms and/or artificial intelligence techniques to obtain a model of the system, in this case the vehicle and in particular the elements to be cooled and heated and the thermal-management system, - a second level, defining the thermal-management of the system in real-time, said second level selecting a suitable and optimized thermal mode to ensure the proper operation of system elements and vehicle elements by taking into consideration the thermal state of the system elements and vehicle elements in real-time, as well as the prediction data of the first level of the strategy, - a third level, defining the control laws for activating or deactivating the selected components according to the thermal mode selected at the second level.