Question: Need matlab code: Problem 2 : Storage control We consider the use of a storage device ( say , a battery ) to reduce the
Need matlab code: Problem : Storage control
We consider the use of a storage device say a battery to reduce the total cost of electricity
consumed over one day. We divide the day into time periods, and let denote the
positive timevarying electricity price and denote the nonnegative load, in period
for dots, Without the use of a battery, the total cost is
Let denote the nonnegative energy stored in the battery in period For simplicity,
we neglect energy loss although this is easily handled as well so we have
dots, where is the charging of the battery in period if ;
means the battery is discharged. With the battery operating, the net consumption
in period is ; we require this to be nonnegative ie in this case, the utility does
not allow selling back to the grid The total cost is then
The battery is characterized by three parameters: The capacity where ;
the maximum charge rate where ; and the maximum discharge rate where
The parameters and are nomegative.
The initial storage level is Since we are not dealing with generator dispatch directly,
it's convenient to work with energy in instead of power in Hence all units in
this problem is including the units of load and storage control The unit of price
is
a Formulate an optimization to find the charging profile and associated stored
energy profile that minimizes the total cost, subject to the constraints.
b Solve the problem instance with data and given in storagedata.m and
Plot and versus
c Plot the minimum total cost versus the storage capacity using and from storagedata.m
and chargedischarge limits Repeat for chargedischarge limits
Put these two tradeoff curves on the same plot. Give an interpretation of the
endpoints of the tradeoff curves.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
