MATPOWER / most

MOST – MATPOWER Optimal Scheduling Tool, for steady-state power systems scheduling problems.
https://matpower.org/
Other
31 stars 12 forks source link

Can't add storage to a MOST Multi-Period OPF test #2

Closed rdzman closed 7 years ago

rdzman commented 7 years ago

(@DiogoFreitas60, I'm copying what you submitted in MATPOWER/matpower#28 here, since it's a MOST issue, rather than a core MATPOWER issue)


Greetings Everyone

I am doing a dissertation on energy storage systems influence on Multi-period OPF and i'm trying to use MOST to solve the OPF and use it's functionalities for adding storage and solving the multi-period OPF easier.

However, im having problems adding the storage to the test case while using the addstorage function. I might be doing something wrong so i'll try and add the scripts i am using in attatch.

Would be very appreciate of any help

Best Regards Storage_test.zip

DiogoFreitas60 commented 7 years ago

Thank you Dr.Ray

I wasnt sure where to post the question, so thank you fo redirecting me to the currect place

rdzman commented 7 years ago

Have a look at at help addstorage and/or Section 6.2 in the User's Manual for the details of the return arguments from addstorage. I suspect you will want the form with all four return arguments.

Let me know if that resolves the question for you.

DiogoFreitas60 commented 7 years ago

Im deeply sorry

I have been caught in a lot of other work so i haven't checked your reply.

I tried adding an xgd struct but when running the DC OPF i come up with another error: "

Error in most (line 546) om.init_indexed_name('var', 'Va', {nt, nj_max, nc_max+1});"

Not sure what can be causing this. I am not the most experience Matlab programmer, so i apologize for the lack of knowledge in this area.

I can supply the code im using if it's needed.

thank you so much for you help Best Regards

Diogo

2017-10-16 21:21 GMT+01:00 Ray Zimmerman notifications@github.com:

Closed #2 https://github.com/MATPOWER/most/issues/2.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MATPOWER/most/issues/2#event-1295617101, or mute the thread https://github.com/notifications/unsubscribe-auth/AfOUyYcF7FnanyMqq2l9ho3Zs-C9Q3Pdks5ss7rBgaJpZM4P3Gvi .

rdzman commented 7 years ago

No problem. If you are using the latest GItHub version of MOST, you will also need the latest GitHub version of MATPOWER. I suspect the new error is caused by using the latest MOST with an earlier MATPOWER.

DiogoFreitas60 commented 7 years ago

Thank you Ray!

I have been tweaking some stuff since yesterday and i already have some results. But i will try and update both of my Matpower and MOST versions!

Thank you very much!

Em 17/10/2017 12:04, "Ray Zimmerman" notifications@github.com escreveu:

No problem. If you are using the latest GItHub version of MOST, you will also need the latest GitHub version of MATPOWER. I suspect the new error is caused by using the latest MOST with an earlier MATPOWER.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MATPOWER/most/issues/2#issuecomment-337196623, or mute the thread https://github.com/notifications/unsubscribe-auth/AfOUyfpy6d2I1Wv1gjOz2zbGi5dR3XjPks5stImkgaJpZM4P3Gvi .