org.akutan.optimization.entropy
Class EMatrix

java.lang.Object
  extended by org.akutan.optimization.entropy.EMatrix

public class EMatrix
extends java.lang.Object

This class encapsulates the assignment and structure of the various subcomponents of the interior point entropy method solution.


Field Summary
static int CONSTANT
           
static int MAXIMIZE
           
static int MINIMIZE
           
static int VARIABLE
           
 
Constructor Summary
EMatrix(int vOrC, int type, int uw, int vw, int xw)
          Constructs
 
Method Summary
 cern.colt.matrix.DoubleMatrix2D get()
          Simple accessor to get the underlying matrix.
 void setQ(cern.colt.matrix.DoubleMatrix2D Q, EVector v)
          Called to set all variance values in dx row, x column, the diagonal has the value y2 added dy2 row, x column is 2xQ
 void setU(cern.colt.matrix.DoubleMatrix2D U)
          Called to set the equality constraints -U' goes in dx row, y0 column U goes in dy0 row, x column
 void setV(cern.colt.matrix.DoubleMatrix2D V)
          Called to set the coefficients of rht inequality constraints -V' goes in dx row, y1 column V goes in dy1 row, x column
 void setW1(EVector v)
          Called to set the w1 vector w(hat) goes in y1w1 row, y1 column
 void setW2(EVector v)
          Called to set the w2 vector w2(hat) goes in y2w2 row, y2 column
 void setX(EVector v)
          Called to set the x vector x(hat) goes in xzrow, z column
 void setY1(EVector v)
          Called to set the y1 vector y1(hat) goes in y1w1 row, w1 column
 void setY2(EVector v)
          Called to set the y2 vector y2(hat) goes in y2w2 row, w2 column
 void setZ(EVector v)
          Called to set the z vector z(hat) goes in xzrow, x column
 java.lang.String toString()
          Overrides method in Object, formats object as String by delegating to underlying Matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VARIABLE

public static final int VARIABLE
See Also:
Constant Field Values

CONSTANT

public static final int CONSTANT
See Also:
Constant Field Values

MAXIMIZE

public static final int MAXIMIZE
See Also:
Constant Field Values

MINIMIZE

public static final int MINIMIZE
See Also:
Constant Field Values
Constructor Detail

EMatrix

public EMatrix(int vOrC,
               int type,
               int uw,
               int vw,
               int xw)
Constructs

Parameters:
vOrC - Variable or Constant side of the equation
type - Type of vector to generate
uw - Width of u vector
vw - Width of v vector
xw - Width of x vector
Method Detail

setQ

public void setQ(cern.colt.matrix.DoubleMatrix2D Q,
                 EVector v)
Called to set all variance values in dx row, x column, the diagonal has the value y2 added dy2 row, x column is 2xQ

Parameters:
Q - The main matrix
v - The vector

setU

public void setU(cern.colt.matrix.DoubleMatrix2D U)
Called to set the equality constraints -U' goes in dx row, y0 column U goes in dy0 row, x column

Parameters:
U -

setV

public void setV(cern.colt.matrix.DoubleMatrix2D V)
Called to set the coefficients of rht inequality constraints -V' goes in dx row, y1 column V goes in dy1 row, x column

Parameters:
V -

setW1

public void setW1(EVector v)
Called to set the w1 vector w(hat) goes in y1w1 row, y1 column

Parameters:
v - Vector of slack variables for inequality constraints

setW2

public void setW2(EVector v)
Called to set the w2 vector w2(hat) goes in y2w2 row, y2 column

Parameters:
v - Vector of slack variables for inequality constraints

setY1

public void setY1(EVector v)
Called to set the y1 vector y1(hat) goes in y1w1 row, w1 column

Parameters:
v - Vector of slack variables for inequality constraints

setY2

public void setY2(EVector v)
Called to set the y2 vector y2(hat) goes in y2w2 row, w2 column

Parameters:
v - Vector of slack variables for inequality constraints

setX

public void setX(EVector v)
Called to set the x vector x(hat) goes in xzrow, z column

Parameters:
v - Vector of asset weights

setZ

public void setZ(EVector v)
Called to set the z vector z(hat) goes in xzrow, x column

Parameters:
v - Vector of slack variables for inequality constraints

get

public cern.colt.matrix.DoubleMatrix2D get()
Simple accessor to get the underlying matrix.

Returns:
The underlying matrix

toString

public java.lang.String toString()
Overrides method in Object, formats object as String by delegating to underlying Matrix.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()