Matpower on Matlab 2017 and Debian/GNU/Linux

2017-10-13 Thread Eliel Júnior
Hello, I tried to install Matpower on my Debian/GNU/Linux runing the 2017 version of Matlab, but it just doesen't work. I have no ideas on how to proced now, and I wonder if there is an incompatibility. Should I try an older version of Matlab? I'm having these messages when I run test_matpower:

Re: Doubt regarding adding constraints

2017-10-13 Thread Viswanath Hariharan
Thank you for your help sir. I think I was doing something wrong. It works alright now. Regards Viswanath On Oct 12, 2017 10:03 AM, "Ray Zimmerman" wrote: > Are you saying that your solution includes voltage angles whose absolute > value is greater than 0.26 radians or 14.9

Storage on Redispatch

2017-10-13 Thread Stephen Suffian
Hey everyone, I have a question regarding how storage is calculated for each time step during an economic dispatch run. I am attempting to simulate a 24-hour economic dispatch followed by hourly re-dispatch of units with an updated load forecast. With an identical forecast, I would assume that

Querry to add renewable generators in the caseformat

2017-10-13 Thread Charalambos Ioannou
Dear Ray, I am trying to add renewable generators into the case format. For example the following is what i am trying to do: function mpc = michalis() % bus Capacity(MW) Curtailment(0==no, 1==yes) Priority mpc.renwgen = [ 2 20 1 1 3 10 1 1

Re: Doubt regarding adding constraints

2017-10-13 Thread Viswanath Hariharan
I tried getting out of the problem by assigning allow_multiple = 1 for add_userfcn. But I couldn't get past this error: Error using opt_model/add_constraints (line 87) Error detected on worker 4. @opt_model/add_constraints: linear constraint set named 'Va' already exists Could you guide me as to

Re: Doubt regarding adding constraints

2017-10-13 Thread Monisha Raju
I think I was doing something wrong. It works perfectly fine now. Thank you so much, Sir. Regards Viswanath On Oct 12, 2017 10:02 AM, "Ray Zimmerman" wrote: > Are you saying that your solution includes voltage angles whose absolute > value is greater than 0.26 radians or 14.9

Re: Querry to add renewable generators in the caseformat

2017-10-13 Thread Ray Zimmerman
Since MATPOWER does not have any mechanism to automatically handle renewable generators in the way you envision, you have to implement that functionality yourself. And, of course, you are free to specify the data where you like. If you want to specify it as a renwgen field in the MATPOWER case

Re: Doubt regarding adding constraints

2017-10-13 Thread Viswanath Hariharan
Sir So I used the toggle_myconstraints method you had suggested to add Voltage angle constraints to the problem. After getting the solution, I update the constraints set and call toggle_myconstraints again. But this time, I get an error : Caused by: Error using add_userfcn (line 119)

Re: Matpower on Matlab 2017 and Debian/GNU/Linux

2017-10-13 Thread Ray Zimmerman
I’m not aware of any incompatibility with Matlab R2017a or R2017b. I suspect it is something related to unexpected things in your Matlab path. Answering a couple of questions could help us track down the problem … - What is the output of the following command? v = ver('optim') - What