|
摘要: |
电力系统分析软件广泛使用面向对象的程序设计方法(OOP),采用C++语言按面向对象思想提出了一种稀疏线方程类的构造方法,该类提供了统一接口,可以方便地应用于电力系统分析计算的各个方面,而不必考虑其实现细节,并且易于修改、升级。为了有效地使用稀疏向量法,利用数级型链表来存储稀疏矩阵,用数组型序列链表来存储路径并集,这种存储结构具有节省内存、存取速度快的特点。实践证明,这样构造的类能取得良好的效果。 |
关键词: 面向对象 编程方法 稀疏线性方程 电力系统 |
DOI: |
分类号:TP311.1 TM769 |
基金项目: |
|
Study on Class Constructing of Sparse Matrix Equations in Object-Oriented Programming |
GUO Qing yang WU Ye kai YU Wei yong
|
Abstract: |
Object oriented programming (OOP) is widely adopted in the software of power system analysis. The class constructing method of sparse matrix equation is presented, which is based on OOP concept with C++ programming language. It supplies a unique interface that can be easily used in analysis calculation of power system without considering the detail of realization. Its modification and upgrade are easy. In order to use effectively the sparse vector method, the array type link table is applied for sparse matrix storage and the array type link table of sequence for path and set storage. This storage structure saves memory and has fast accessing ability. The practice shows that the class constructed in such a way can get excellent effectiveness. |
Key words: OOP,sparse vector method,power system |