梯级水库群运行调度涉及变量众多、约束复杂,具有很强的物理背景,尤其在当前各种优化调度规则和手段逐步走向实际运行的趋势下,水电系统的运行仿真面临着一系列的技术挑战。本文针对目前普遍存在的优化调度算法和水库群运行仿真平台不统一的现状,建立了基于MATLAB和C++程序的混合编程平台,将基于MATLAB的调度规则提取算法编译为C++动态库,使其能够在C++主程序平台中实现数据传输,从而指导水电站水库群滚动运行仿真。以金沙江中下游大型梯级水库站群为仿真对象,研究结果表明,该仿真平台能够实现不同优化调度规则和不同研究对象组合的仿真运行,显著提高编程效率,同时拓宽了优化理论在实际应用中的兼容性和可扩展性,为我国水库群实际调度运行水平的提高起着重要的技术支撑和决策支撑作用。
The actual operation of hydropower stations has the characteristics of complicated constraints, close hydraulic relationships between reservoirs, and numerous decision variables. Especially when various optimal operating rules and means applied in actual operations, the simulation of hydropower system is facing a number of technical challenges. This paper focuses on the status that most optimal operation algorithms and reservoirs' operation simulation platforms are not uniform, establishes a hybrid programming platform based on MATLAB and C++ computer language, which transfers the MATLAB based on operating rules derivation function into a dynamic library routine. The routine can be adopted by hydropower system simulation model in C++ environment, thus the operating rules can be derived in real time and motivate the hydropower actual operation and simulation. A case study of the large-scale giant reservoirs system for Jinsha River shows that the integrat- ed platform can implement simulation of various operating rules and various hydropower stations, which has increased the coding efficiency significantly, and broadened the compatibility and scalability of optimization theory in practical application, thus offered important technical support and decision support for the increase of actual hydropower stations operation level in China.