It indicates some error in the conversion from external to internal indexing, but I don’t know the cause without the information to reproduce it myself.
Ray On Mar 1, 2022, at 9:39 AM, AKHILESH IIT BHU <akhileshkb.rs.ee...@itbhu.ac.in<mailto:akhileshkb.rs.ee...@itbhu.ac.in>> wrote: What following error means? How can I short out this problem? Index in position 1 exceeds array bounds (must not exceed 2). Error in get_reorder (line 29) B = subsref(A, s); Error in e2i_data (line 73) v = get_reorder(val, b+(1:n), dim); Error in e2i_field (line 52) mpc.(field) = e2i_data(mpc, mpc.(field), ordering, dim); Error in ext2int (line 198) mpc = e2i_field(mpc, 'gencost', ordering); Error in runpfbyopf14 (line 43) mpci = ext2int(mpc); Thanks & Regards: Akhilesh Kumar Barnwal Research Scholar Dept. of Electrical Engg. IIT-BHU, Varanasi E-mail: akhileshkb.rs.ee...@iitbhu.ac.in<mailto:akhileshkb.rs.ee...@iitbhu.ac.in> Contact: +91-75001 86505 On Tue, Aug 10, 2021 at 8:54 PM Ray Daniel Zimmerman <r...@cornell.edu<mailto:r...@cornell.edu>> wrote: You need to free the bus voltage at bus 10 and the active power at the slack bus. Try the attached version … Ray On Aug 10, 2021, at 5:31 AM, akhil <akhil...@gmail.com<mailto:akhil...@gmail.com>> wrote: Hi MATPOWER users, 1. I am trying to keep the bus voltage of bus 33 to fix at 0.94, without defining bus 33 as a PV bus. 2. To keep the voltage of bus 33 constant, I am adding a generator at bus-10. The generator on this bus should only inject reactive power (no or 0 real power injection by this source and also voltage at this generator bus should not be kept fixed). but I am not getting the result. But I am can not figure out the problem incurred at the solution is not obtained. can you please look the m file uploaded and suggest me a solution. thanks and regards <runpfbyopf.m>