Sunteți pe pagina 1din 2

Energy Management system using particle swarm optimization for Microgrid

Please don’t use MATLAB toolbox or any other kind of toolbox. Write MATLAB code
for particle swarm optimization in one m.file and objective function in second m.file and
constraints in third m.file. Also use the Matric or vector encoding technique.

Objective Function:

T
f = min  PG (t )CG + [ PBESS _ ch arg e (t ) + PBESS _dis ch arg e (t )]CBESS + X (t )*0 + EBESS (t )*0
t =1

There are four variables in objective function. PG , PBESS _ ch arg e and PBESS _dis ch arg e will be between
maximum and minimum power and EBESS will calculate using battery energy storage system (BESS)
constraint and should be between maximum and minimum limit while X is Binary decision variable
(Charge = 1, Discharge = 0).

PG is grid power which will between maximum and minimum power of grid and depend on load
power.

PBESS _ ch arg e and PBESS _dis ch arg e is battery charge and discharge power which will between maximum
and minimum power of battery and depend on load power. Battery is discharge if EBESS >= 72000
and battery is charge if EBESS <= 8000.

X is Binary decision variable (Charge = 1, Discharge = 0)


EBESS is battery capacity which is determine using BESS constraint.

CG is the cost of purchasing power from the main grid at time interval t.

CBESS are the operational and maintenance cost of the output power of battery energy storage
system (BESS).

T is the total time of optimisation problem from 1 to 48.

Constraints:

Power Balance Constraint:

PG (t ) = PLoad (t ) − PPV (t ) − PBESS _dis ch arg e (t ) + PBESS _ ch arg e (t )

BESS Constraint:

EBESS (t ) = EBESS (t − 1) − PBESS _dis ch arg e (t ) + PBESS _ ch arg e (t )

In Power balance constraint, the load power ( PLoad )and PV power ( PPV ) are fixed which will take
from excel file while PG , PBESS _ ch arg e and PBESS _dis ch arg e will calculated between maximum and
minimum value which is given in Parameters Table.
BESS constraint is required for measuring the EBESS at each interval (t) from t= 2 to 48 and EBESS is
40000 at t = 1. But MATLAB didn’t accept indexing zero therefore BESS constraint is required for
measuring the EBESS at each interval (t) from t= 3 to 49 and EBESS is 40000 at t = 2.

Parameters:

Parameters Value Parameters Value


PBESS _charge_ min 0 EBESS _start 40000
PBESS _charge_ max 5000 CPV 0.01
PBESS _discharge_ min 0 CBESS 0.01
PBESS _discharge_ max 5000 CG if t<14 and t> 40 0.090
PG_ min 0 CG if t>14 and t<40 0.060
PG_ max if t<14 and t> 40 9000 t 1
PG_ max if t>14 and t<40 7000 T 48
EBESS _ min 8000
EBESS _ max 72000

S-ar putea să vă placă și