|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.diversified.DVector
public class DVector
This class encapsulates the assignment and structure of the various subcomponents of the interior point method solution. The Vector is broken out into x solution vector y lagrange multipliers for all constraints w slack vector for inquality constraints z dual variables for solution vector
| Field Summary | |
|---|---|
protected int |
_w1offset
|
protected int |
_w1width
|
protected int |
_w2offset
|
protected int |
_w2width
|
protected int |
_xoffset
|
protected int |
_xwidth
|
protected int |
_y0offset
|
protected int |
_y0width
|
protected int |
_y1offset
|
protected int |
_y1width
|
protected int |
_y2offset
|
protected int |
_y2width
|
protected int |
_zoffset
|
protected int |
_zwidth
|
| Constructor Summary | |
|---|---|
DVector(int uw,
int vw,
int xw)
Constructs |
|
DVector(int uw,
int vw,
int xw,
cern.colt.matrix.DoubleMatrix1D v)
Constructs |
|
| Method Summary | |
|---|---|
void |
add(DVector v)
Called to add a vector to this elementwise |
java.lang.Object |
clone()
Clones the object with a deep copy |
cern.colt.matrix.DoubleMatrix1D |
get()
Called to get access to the contents expressed as a 1D vector |
cern.colt.matrix.DoubleMatrix1D |
getW1()
Called to return the W1 vector |
cern.colt.matrix.DoubleMatrix1D |
getW2()
Called to return the W2 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 |
getY2()
Called to return the y2 vector |
cern.colt.matrix.DoubleMatrix1D |
getZ()
Called to return the Z vector |
DVector |
multiply(double d)
Returns a copy of this vector in which every element of the vector has been multiplied by the constant d. |
DVector |
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 |
protected void |
setup(int uw,
int vw,
int xw)
|
void |
setW1(cern.colt.matrix.DoubleMatrix1D w1)
Called to set the w1 vector |
void |
setW2(double w)
Called to set the w2 vector to a constant |
void |
setW2(cern.colt.matrix.DoubleMatrix1D w2)
Called to set the w2 vector |
void |
setX(double cons)
Called to set all x values equal to cons |
void |
setX(cern.colt.matrix.DoubleMatrix1D x)
Called to set x from a vector |
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 |
setY2(double cons)
Called to set all y1 values equal to cons |
void |
setY2(cern.colt.matrix.DoubleMatrix1D y2)
Called to set all uy1 values from a vector |
void |
setZ(double d)
Called to set the z vector |
void |
setZ(cern.colt.matrix.DoubleMatrix1D z)
Called to set the z vector |
java.lang.String |
toString()
(non-Javadoc) Returns the string representation of the object, just delegates to the embedded vector |
double |
xDotProduct()
Computes the distance (or something) of delta X * delta X which should be 0 at the solution. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _xwidth
protected int _y0width
protected int _y1width
protected final int _y2width
protected int _w1width
protected final int _w2width
protected int _zwidth
protected final int _xoffset
protected int _y0offset
protected int _y1offset
protected int _y2offset
protected int _w1offset
protected int _w2offset
protected int _zoffset
| Constructor Detail |
|---|
public DVector(int uw,
int vw,
int xw)
uw - Number of equality constraintsvw - Number of inequality constraintsxw - Number of variables in the solution vector
public DVector(int uw,
int vw,
int xw,
cern.colt.matrix.DoubleMatrix1D v)
uw - Number of equality constraintsvw - Number of inequality constraintsxw - Number of variables in the solution vectorv - Vector to use for storage| Method Detail |
|---|
protected void setup(int uw,
int vw,
int xw)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setX(double cons)
cons - public void setX(cern.colt.matrix.DoubleMatrix1D x)
x - public cern.colt.matrix.DoubleMatrix1D getX()
public void setY0(double cons)
cons - public void setY0(cern.colt.matrix.DoubleMatrix1D y0)
y0 - public cern.colt.matrix.DoubleMatrix1D getY0()
public void setY1(double cons)
cons - public void setY1(cern.colt.matrix.DoubleMatrix1D y1)
y1 - public cern.colt.matrix.DoubleMatrix1D getY1()
public void setY2(double cons)
cons - public void setY2(cern.colt.matrix.DoubleMatrix1D y2)
y2 - public cern.colt.matrix.DoubleMatrix1D getY2()
public void setW1(cern.colt.matrix.DoubleMatrix1D w1)
w1 - Vector of slack variables for inequality constraintspublic cern.colt.matrix.DoubleMatrix1D getW1()
public void setW2(cern.colt.matrix.DoubleMatrix1D w2)
w2 - Vector of slack variablespublic void setW2(double w)
w - Constant value to set all w2 elements topublic cern.colt.matrix.DoubleMatrix1D getW2()
public void setZ(double d)
d - constant to set in all elements of the z vectorpublic void setZ(cern.colt.matrix.DoubleMatrix1D z)
z - Vector to set the z vector frompublic cern.colt.matrix.DoubleMatrix1D getZ()
public cern.colt.matrix.DoubleMatrix1D get()
public DVector negate()
public DVector multiply(double d)
d - Constant to multiple values by
public int rows()
public void add(DVector v)
v - Elementwise adds a this vector to thispublic double xDotProduct()
public 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 | ||||||||