Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change all buses load P and Q injections

Hi,

I have two csv files; one has 10k rows and 16k columns represent samples of P injections The other has the same size but represents samples of Q injections I have a .raw file (working case) that I wish to change the bus load injections (P and Q one row at a time) for all the buses and then run OPF to save the buses voltages and branch currents mag and angles in spreadsheets.

In the sampled data files, each row represents a an OPF run. Thus, each element in the row is a bus injection

I could not find an API function that changes all the buses power injections at once. Can anyone help me with this please? I need to write this in a python script that changes all the buses loads at once then run an OPF.

Thanks in advance

Change all buses load P and Q injections

Hi,

I have two csv files; one has 10k rows and 16k columns represent samples of P injections injections.

The other has the same size but represents samples of Q injections injections.

I have a .raw file (working case) that I wish to change the bus load injections (P and Q one row at a time) for all the buses and then run OPF to save the buses voltages and branch currents mag and angles in spreadsheets.

In the sampled data files, each row represents a an OPF run. Thus, each element in the row is a bus injection injection.

I could not find an API function that changes all the buses power injections at once. Can anyone help me with this please? I need to write this in a python script that changes all the buses loads at once then run an OPF.

Thanks in advance