Ask Your Question

What is the default integer value in PSSE?

asked 2012-03-01 07:01:32 -0500

JervisW gravatar image

I heard once that the default integer _i had a value of -9999 or some number that is extremely unlikely to occur in practice.

How can I check what its value is now, does anyone have any clues?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-03-22 10:01:06 -0500

chip gravatar image

updated 2012-03-22 10:09:47 -0500

How about this:

In [31]: int(psspy._i)
Out[31]: 2147483647

The number 2,147,483,647, is the largest [32bit signed number](, but I still haven't completely figured out what PSSE does with it. For example, if I create a machine and don't specify any values I get the following defaults:

  • Pmax = 9999.0
  • Pmin = -9999.0

I still haven't figured it out completely, but it is a start. Right now it looks like PSSE replaces psspy._i with the default specific to a certain model/parameter.

edit flag offensive delete link more


Cheers. Your answer has me thinking too about where PSSE swaps the 2147483647 for the 9999: - In the psspy Python code; - In the belly of the FORTRAN code; or - Someplace else.

JervisW gravatar imageJervisW ( 2012-03-22 17:27:31 -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


Asked: 2012-03-01 07:01:32 -0500

Seen: 247 times

Last updated: Mar 22 '12