Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Programmatic access to Newton solution results

Is there a way, from within python, to access solution results after performing a newton solution? The things I would like for my programs to access are:

  1. Number of iterations to solve (if solved)
  2. Largest MW/MVAR mismatch
  3. Individual iteration largest change - P,Q,V,A as reported in progress window.

I could theoretically get the number of iterations by repeated resolving the case while varying the iteration limit and checking psspy.solved() for non-convergence but this is somewhat ridiculous.

The only way that I can think of to get this information is to direct the progress device to a file and then parse the data from the file. Has anyone written code for doing this? Could you share it?

Programmatic access to Newton solution results

Is there a way, from within python, to access solution results after performing a newton solution? The things I would like for my programs to access are:

  1. Number of iterations to solve (if solved)
  2. Largest MW/MVAR mismatch
  3. Individual iteration largest change - P,Q,V,A as reported in progress window.

I could theoretically get the number of iterations by repeated resolving repeatedly solving the case while varying the iteration limit and checking psspy.solved() for non-convergence but this is somewhat ridiculous.

The only way that I can think of to get this information is to direct the progress device to a file and then parse the data from the file. Has anyone written code for doing this? Could you share it?