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

Ask Your Question
0

Python syntax to view the result of economic dispatch

asked Mar 7 '4

JQ gravatar image

updated Mar 7 '4

Hi,

I use the following command to run unit commitment and economic dispatch in PSS/E: psspy.ecdi(0,1,3,r"C:\Users\XXX\Documents\PTI\PSSE35\EXAMPLE\savnw.ecd",0,[ 3520, 100.0])

What command shall I use to view the economic dispatch result (real power output of all the generators)?

Thanks, JQ

1 answer

Sort by » oldest newest most voted
0

answered Mar 7 '4

perolofl gravatar image

The new dispatch is in PGEN. Use psspy.macdat(ibus, id, 'P') for an individueal generator.

PGEN for all generators can be retrieved with API's amachint, amachchar and amachreal for ibus, id and PGEN respectively.

Please note that API ecdi must be called four times with APIOPT values 1, ,2, 3, 4 respectively.

link

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: Mar 7 '4

Seen: 164 times

Last updated: Mar 07 '24