Hi, I was wondering whether there is any way of converting a parameter into a variable in OPF. Say for example, if I want to convert the shunt susceptance which is usually passed as a parameter to the OPF , to a variable, what is the easiest way of doing it.
Currently, I am considering shunts as reactive generators which can only produce reactive power and no real power, to implement that, I have appended new rows equal to the number of shunt buses in the generator section of mpc data. Then I set the 'Pg','Pmax' and 'Pmin' to zero. I collected the voltage from the bus data section and passed it to the 'Vg' of the new added rows. I have also added some rows in the generator cost section (appended at the last of the existing cost of the generators). I have set the 'Qmax' and 'Qmin' from my maximum and minimum shunt susceptance. I have also changed the bus types to 'PV' from 'PQ' mode (in applicable cases). Though I am having an OPF solution but looking at the results there are voltage limit violation in almost every buses. Can you please suggest what could be the solution of this problem? Another issue is, if I add any new generator to the power flow data, then should I add the generator cost information at the end of the existing generator cost or should I insert them as per the index of the generators. Best regards, Morteza Dabbaghjamanesh
