0

Is there any chance to shut down the output of OPF?

  • retag add tags

Hi everyone,

Thank you for coming to see my question.

In my study, I am carrying out thousands of Monte Carlo transient simulations using API, before which I need to calculate the optimal power flow (OPF) as the initial states for the simulations.

My question is there any chance to shut down the output of OPF? The IDE console prints too much output from OPF calculation, which slows down the simulation speed and floods my own output as well.

I tried psspy.progress_output(ISLCT = 6) but it does not work for OPF output.

Any help would be appreciated!

Cheers,

Gary

Gary22212's avatar
26
Gary22212
asked 2019-04-03 08:03:40 -0500, updated 2019-04-04 10:32:50 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

What "IDE console" are you using?

If you can run in a DOS window and execute OPF runs from the line command then all output will be suppressed (going to the NUL device) with the following:

c:\..\>psse33 abc def > nul
jconto's avatar
2.9k
jconto
answered 2019-04-04 16:40:16 -0500, updated 2019-04-04 20:37:26 -0500
edit flag offensive 0 remove flag delete link

Comments

Hi, Mr. Conto, Thank you for your answer. I am using spyder to run the script. Yes, your method can suppress all of the output, including my own prints, which I want to keep. Thank you as well!

Gary22212's avatar Gary22212 (2019-04-05 09:45:01 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer