First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

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

asked Apr 3 '19

Gary22212 gravatar image

updated Apr 4 '19

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

1 answer

Sort by » oldest newest most voted
0

answered Apr 4 '19

jconto gravatar image

updated Apr 5 '19

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
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 gravatar imageGary22212 (Apr 5 '19)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Apr 3 '19

Seen: 262 times

Last updated: Apr 04 '19