snl.ccss.jpowerflow.util
Class Utilities

java.lang.Object
  extended by snl.ccss.jpowerflow.util.Utilities

public class Utilities
extends Object

This class is a place holder for common utilities needed by either the solvers created in this package or by other classes that might use this package. All methods should be static.

Author:
Bryan T. Richardson - Sandia National Laboratories

Field Summary
static Matrix jacobian
          Latest update of the Jacobian matrix, updated by FullNewton or DecoupledNewton class.
static HashMap jacobianMap
          Latest update of the Jacobian map, updated by calling createJacobianMap.
 
Constructor Summary
Utilities()
           
 
Method Summary
static void createJacobianMap(List busList)
          This method creates a new Jacobain map with an ACPFBus as the key and its corresponding Jacobian diagonal value as the value.
static double[] getInverseSensitivities(double[] busArray)
           
static double getMvarVoltageSensitivity(int position)
           
static void printJacobian()
          This method prints the Jacobian matrix in a readable matrix-style format.
static double roundDouble(double d, int places)
          This method rounds the double value given to the nth decimal place given.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jacobian

public static Matrix jacobian
Latest update of the Jacobian matrix, updated by FullNewton or DecoupledNewton class. If updated by DecoupledNewton, it will only be quadrant 4 of the Jacobian matrix.


jacobianMap

public static HashMap jacobianMap
Latest update of the Jacobian map, updated by calling createJacobianMap. Jacobian values in the map are always from the diagonal of the 4th quadrant in the Jacobian matrix.

Constructor Detail

Utilities

public Utilities()
Method Detail

getInverseSensitivities

public static double[] getInverseSensitivities(double[] busArray)

getMvarVoltageSensitivity

public static double getMvarVoltageSensitivity(int position)

createJacobianMap

public static void createJacobianMap(List busList)
This method creates a new Jacobain map with an ACPFBus as the key and its corresponding Jacobian diagonal value as the value. This map only contains diagonal values from quadrant 4 of the Jacobian matrix. This provides reactive power sensitivity values for change in voltages.

Parameters:
busList - List of bus objects in the power system

printJacobian

public static void printJacobian()
This method prints the Jacobian matrix in a readable matrix-style format.


roundDouble

public static double roundDouble(double d,
                                 int places)
This method rounds the double value given to the nth decimal place given.

Parameters:
d - Double value to be rounded
places - Number of decimal places to round to
Returns:
double value given rounded to the nth decimal place given