programming approaches. The paper is organized as
follows: Section II gives the definition of Economic
dispatch problem. Section III covers concepts and
architecture of PED_Frame. Section IV includes the
implementation detail in PED_Frame. Lastly there is
conclusion.
2 ECONMIC DISPATCH
PROBLEM
The Economic Dispatch in its simplest form is
formulated as:
Minimize
∑
=
=
N
1i
iiT
)P(CC
(1)
Subject to equality constraint:
∑
=
=+
N
1i
iLD
PPP (2)
Inequality constraints:
P
i (min)
≤ P
i
≤ P
i (max)
(3)
Where: C
T
Total cost, C
i
generator fuel cost of the
ith generating unit, P
D
total load, P
i(min)
the
minimum generation power, P
i (max)
the maximum
generation power, and P
L
transmission loss given by
∑∑
=
ij
j
j
iiL
PaPP
Where: a
ij
: transmission loss coefficient.
3 PROPOSED
FRAMEWORK - “PED_Frame”
Framework is a set of cooperating classes that
makeup reusable design for a specific class of
software and defines overall structure of application,
it’s partitioning in classes and objects (Gamma,
1995). A framework can be customized to a
particular application by creating application
specific subclasses of abstract classes targeting a
specific group of applications, which have similar
architecture design. A fairly large number of useful
frameworks are available for application builders.
One of these frameworks is Microsoft’s Document-
View architecture.
The proposed framework “PED_Frame” targets
power economic dispatch software application
development. It provides white-box reuse
mechanism for incorporating new algorithms. All
inputs and outputs are handled through a grid.
PED_Frame provides extremely efficient component
for status visualization.
Standard Template Library (STL) is used as base
for the development of the vector-matrix library.
This library gives efficient algorithm
implementation for vectors and matrices. Document-
View Architecture acts as container for PED_Frame
and provides base services. These are primarily in
the form of messaging mechanisms, and threading
support. The class diagram of PED_Frame is shown
in figure 1.
3.1 Input/Output Using Grid
CPEDGrid class acts as interface for grid, which
provides functionality like input, formatted output,
print and data validation checks. It extends grid
functionality to link its services with other parts of
the PED_Frame. These are:
a. Data present in Grid is transferred to a matrix,
which can act as data communicator.
b. Data present in matrix is formatted in grid for
display and printing purposes.
c. Data editing and data validation checks.
PED_Frame creates three instances for grid class -
-- Machine data, B-Coefficients and output.
3.2 Analysis Status Visualization
Analysis status visualization is implemented in class
CPEDAnalysisStatus derived from CDialog class of
MFC. This dialog window contains progress
indicators showing current state of convergence,
iteration count, and time elapsed.
3.3 Analysis
This part of the framework is responsible for actual
implementation of algorithm. The analysis is
accomplished through following classes:
a. CPEDAnalysisBase class is derived from
CWinThread so acting as independent thread of
execution. It contains references to matrices for
input, B-Coefficient and output, Machines
count, maximum iterations count, power
demand and error tolerance. It also provides
virtual functions for start analysis,
communicating status information and
formatting output.
b. CPEDGABased is derived from
CPEDAnalysisBase and works as base for
implementation of genetic algorithm. This class
contains information for Genetic Algorithm
(GA) parameters. A new class can be derived
ICINCO 2006 - INTELLIGENT CONTROL SYSTEMS AND OPTIMIZATION
192