Documente Academic
Documente Profesional
Documente Cultură
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.
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).
Constraints:
BESS Constraint:
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: