|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.IPConsVector
public class IPConsVector
This class encapsulates the assignment and structure of the various subcomponents of the interior point method solution. The Vector is broken out into w slack vector for inquality constraints x solution vector y lagrange multipliers for all constraints z dual variables for solution vector
| Field Summary | |
|---|---|
protected int |
_c1
|
protected int |
_c2
|
protected int |
_c3
|
protected int |
_c4
|
protected int |
_c5
|
protected int |
_oc1
|
protected int |
_oc2
|
protected int |
_oc3
|
protected int |
_oc4
|
protected int |
_oc5
|
| Constructor Summary | |
|---|---|
IPConsVector(int uw,
int vw,
int xw,
int zw)
Constructs |
|
| Method Summary | |
|---|---|
void |
add(cern.colt.matrix.DoubleMatrix1D x)
Called to add a vector to this |
java.lang.Object |
clone()
Clones the object making a deep copy of the underlying vector |
cern.colt.matrix.DoubleMatrix1D |
get()
Called to get access to the contents expressed as a 1D vector |
cern.colt.matrix.DoubleMatrix1D |
getW()
Called to return the W vector |
cern.colt.matrix.DoubleMatrix1D |
getX()
Called to get access to the x vector |
cern.colt.matrix.DoubleMatrix1D |
getY0()
Called to return the y0 vector |
cern.colt.matrix.DoubleMatrix1D |
getY1()
Called to return the y1 vector |
cern.colt.matrix.DoubleMatrix1D |
getZ()
Called to return the Z vector |
IPConsVector |
negate()
Called to negate an IPVector, copies the vector, negates the copy and then returns the negated copy. |
int |
rows()
Returns the size of the wrapper DoubleMatrix1D |
void |
setW(double cons)
Called to set the w vector to a constant |
void |
setW(cern.colt.matrix.DoubleMatrix1D w)
Called to set the w vector |
void |
setX(double cons)
Called to set all x values equal to cons |
void |
setX(cern.colt.matrix.DoubleMatrix1D x)
Called to set all x values equal to the vector cons |
void |
setY0(double cons)
Called to set all y0 values equal to cons |
void |
setY0(cern.colt.matrix.DoubleMatrix1D y0)
Called to set all y0 values from a vector |
void |
setY1(double cons)
Called to set all y1 values equal to cons |
void |
setY1(cern.colt.matrix.DoubleMatrix1D y1)
Called to set all uy1 values from a vector |
void |
setZ(double cons)
Called to set the z vector (dual variables) |
void |
setZ(cern.colt.matrix.DoubleMatrix1D z)
Called to set the z vector (dual variables) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _c1
protected int _c2
protected int _c3
protected int _c4
protected int _c5
protected final int _oc1
protected int _oc2
protected int _oc3
protected int _oc4
protected int _oc5
| Constructor Detail |
|---|
public IPConsVector(int uw,
int vw,
int xw,
int zw)
uw - Number of equality constraintsvw - Number of inequality constraintsxw - Number of variables (1 per asset class)zw - Number of dual variables for x (same order as x)| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setX(double cons)
cons - Constant to use for all values in the X vectorpublic void setX(cern.colt.matrix.DoubleMatrix1D x)
x - Vector to set into the x vectorpublic cern.colt.matrix.DoubleMatrix1D getX()
public void setY0(double cons)
cons - The constant to set in all Y0 valuespublic void setY0(cern.colt.matrix.DoubleMatrix1D y0)
y0 - The vector to set y0 frompublic cern.colt.matrix.DoubleMatrix1D getY0()
public void setY1(double cons)
cons - The constant value to place in all y1 valuespublic void setY1(cern.colt.matrix.DoubleMatrix1D y1)
y1 - The vector to use for setting y1public cern.colt.matrix.DoubleMatrix1D getY1()
public void setW(double cons)
cons - constant to set w equal topublic void setW(cern.colt.matrix.DoubleMatrix1D w)
w - Vector of slack variables for inequality constraintspublic cern.colt.matrix.DoubleMatrix1D getW()
public void setZ(double cons)
cons - The constant value to use for all z valuespublic void setZ(cern.colt.matrix.DoubleMatrix1D z)
z - The vector to use in setting zpublic cern.colt.matrix.DoubleMatrix1D getZ()
public cern.colt.matrix.DoubleMatrix1D get()
public IPConsVector negate()
public int rows()
public void add(cern.colt.matrix.DoubleMatrix1D x)
x - The addend for the x solution vectorpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||