Regarding Matpower's acopf solver

2018-05-02 Thread Viswanath Hariharan
Hi I was wondering if anyone could explain the mathematical difference between MATLAB's fmincon solver to solve ACOPF and MATPOWER's runopf function/mips to solve the ACOPF problem. If both of them are going to find the local minima, what is the mathematical difference between the both? Thank you.

Re: Regarding adding Constraints

2017-10-22 Thread Viswanath Hariharan
with x and x, lambda as input arguments respectively. Could you guide me as to where I might be going wrong with this? Regards Viswanath On Thu, Oct 19, 2017 at 11:31 AM, Viswanath Hariharan wrote: > Sir > So where does these functions obtain x and where does the hess function > obta

Re: Regarding adding Constraints

2017-10-19 Thread Viswanath Hariharan
ambda and x. Both lambda and x are provided as > inputs, you provide the Hessian of lambda’ * h(x) as output. Since h(x) > (and also lambda) is a scalar in your case, the Hessian is simply lambda * > H. > > 2. I assume N is a constant that is entered as part of your definition of >

Re: Doubt regarding adding constraints

2017-10-18 Thread Viswanath Hariharan
own? > > Ray > > > On Oct 13, 2017, at 11:35 AM, Viswanath Hariharan > wrote: > > 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) >

Re: Regarding adding Constraints

2017-10-18 Thread Viswanath Hariharan
y be > found here: > >https://www.dropbox.com/s/3qkji1cuyi075uj/MATPOWER-manual.pdf?dl=0 > > You’ll probably want to use the method described in Section 7.1.2 for > Nonlinear Constraints. In particular, you’ll want to look at the example > mentioned in t_opf_mips(). > >

Re: Doubt regarding adding constraints

2017-10-13 Thread Viswanath Hariharan
guide me as to how I can overwrite this too? Thank you sir Regards Viswanath On Fri, Oct 13, 2017 at 11:22 AM, Viswanath Hariharan wrote: > Sir > So I used the toggle_myconstraints method you had suggested to add Voltage > angle constraints to the problem. After getting the solution, I

Re: Doubt regarding adding constraints

2017-10-13 Thread Viswanath Hariharan
Oct 13, 2017 at 10:04 AM, Viswanath Hariharan wrote: > 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 solutio

Re: Doubt regarding adding constraints

2017-10-13 Thread Viswanath Hariharan
rees? > >Ray > > > On Oct 11, 2017, at 8:52 PM, Viswanath Hariharan > wrote: > > First, thank you so much for your time, Sir. > So I tried the first approach first. I want to added box constraints for > Voltage angle, -0.26 < theta < 0.26. I created the A m

Re: Doubt regarding adding constraints

2017-10-11 Thread Viswanath Hariharan
ou can simply toggle your constraints on and use runopf() normally. > > mpc = loadcase(''); > mpc = toggle_myconstraints(mpc, 'on'); > results = runopf(mpc); > > Hope this helps, > > Ray > > > > On Oct 5, 2017, at 12:18 PM, Viswanath Hariharan >

Re: Doubt regarding adding constraints

2017-10-05 Thread Viswanath Hariharan
n't getting updated as well. I think I am making some mistake with this line : mpc = get_mpc(om) because om is fine. What am I missing here? Or should I take another approach? Thank you so much for your time Sir. Regards Viswanath Hariharan On Thu, Oct 5, 2017 at 10:27 AM, Ray Zimmerman

Regarding adding Constraints

2017-10-04 Thread Viswanath Hariharan
Hello Sir I want to add non linear cost constraints to the opf solver. cost = x'Hx + C'x + constant <= 2 How do I use the add_constraints function to add this constraint? Should I be adding new fields toom and then should I be passing it to add_constraints? Rega

Re: Doubt regarding adding constraints

2017-10-04 Thread Viswanath Hariharan
? Regards Viswanath Hariharan On Wed, Sep 27, 2017 at 1:39 PM, Ray Zimmerman wrote: > Voltage magnitude constraints are already included. Simply set the VMIN > and VMAX columns in the bus matrix to the desired values. > > For voltage angles, simply define the A, l and u corresponding t

Doubt regarding adding constraints

2017-09-23 Thread Viswanath Hariharan
u mentioned to add these constraints to the case struct which looked pretty simple in the post but I didn't know how to add that to the case struct. I was wondering if you can guide me on how to do it. Hoping to hear from you soon. Regards Viswanath Hariharan Graduate Research Assistant