Optimization problem
1 view (last 30 days)
Show older comments
Hello all,
I am new matlab user and i need to solve an optimization problem with matlab for my MS thesis. Can you pleas show me a way to do it? I am feeling so helpless now. Here is the optimization problem:
Min ∑〖Xa(t).Ca(t)〗 (t is time(hour), t= 0 to 8760, which means a year)
Bounds:
R(t) + Hü(t).Y(t) + Xa(t) = PG(t) + Ht(t).Z(t) + Xs(t)
Smin ≤S(t)≤Smax
S(t+1)=S(t) -Sç(t+1) +Sg(t+1) S(0)=Sbegin
Sg(t+1)=α.Z(t)
Sç(t+1)=α.Y(t)
Z,y=(0,1)
Hü(t)= 1250 kW/saat
Ht(t)= 1785 kW/saat
Cs(t)= 13,14 dolar/kW
Ca(t1)= 15,708 dolar/kW( between 06:00-17:00 hours,(t=6-t=17,t=30-t=41.....)
Ca(t2)=28,029 dolar/kW(between17:00-22:00 hours)
Ca(t3)=6,824 dolar/kW (between 22:00-06:00 hours)
R(t): is hourly wind data, will be red from excel file.
Xs(t) :is the amount of energy whicht is sold to the electrical network wtih a fix price (kW/h).
Xa(t) :is the amount of energy bought from the electrical network.
Hü(t): Energy obtained from storage system(is fix: 1250 kW/h)
Ht(t): Energy used by storage system( is fix: 1780 kW/h)
PG(t): Energy demand of the city (kW/hour, will be red from excel file)
S(t): Fullness ratio of the energy storage system
Smin: Min. Fullness ratio of the energy storage system
Smax: Max. Fullness ratio of the energy storage system
Sg(t) :Energy, which is given to storage system(α=20, hourly %20 of the storage capacity is filled)
Sc= Ratio of the energy substracted from storage system ((α=20, hourly %20 of the storage capacity is given out)
Ca(t)= Price of the energy bough from the electrical network (hourly, kW/h, one fix price)
Cs(t)= Price of the energy sold to the electrical network (hourly, kW/h, three different price periods)
Remind that PG(t) and R(t) will be red from the EXCEL file.
I will be very very thank full if you help me. I even can write your name to my MS thesis in the section where i will thank to people :))
Thank you.
0 Comments
Answers (1)
Taniadi
on 3 May 2012
I can't help you since I don't understand your problem. But after reading your explanation, I think that you have to write a M-file to define your objective function, and use IF to define cost that depends on time. And the only function I know for constrained optimization problem is fmincon.
0 Comments
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!