Ask Your Question

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

asked 2019-04-03 08:03:40 -0500

Gary22212 gravatar image

updated 2019-04-04 10:32:50 -0500

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!



edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-04-04 16:40:16 -0500

jconto gravatar image

updated 2019-04-04 20:37:26 -0500

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
edit flag offensive delete link more


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 gravatar imageGary22212 ( 2019-04-05 09:45:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2019-04-03 08:03:40 -0500

Seen: 32 times

Last updated: Apr 04