针对分布式电源控制系统种类多样、采用基于控制系统基本元件的用户自定义模型影响仿真效率的问题,提出了控制系统组合建模方法。该方法将基本元件组合成若干函数进行建模。将自动微分技术与该建模方法相结合,利用自动微分技术可准确、高效地求取对应组合函数值及导数信息,有效提高了仿真程序的计算效率,同时保持了仿真程序代码的可维护性和可扩展性。算例测试验证了该方法的高效性。
In view of the diversity of the distributed generation control system and the influence on the simulation efficiency due to adoption of the user-defined model based on the basic elements of control systems,a control system compositional modeling method is proposed that consists in combining the basic elements into a number of functions.The corresponding compositional function values and derivatives can be accurately and highly efficiently found using the automatic differentiation technique,effectively increasing the computational efficiency of the simulation program while maintaining the code maintainability and scalability.This method is validated with an example.