|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.entropy.EConsVector
public class EConsVector
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 | |
|---|---|
EConsVector(int uw,
int vw,
int xw)
Constructs |
|
| Method Summary | |
|---|---|
void |
add(cern.colt.matrix.DoubleMatrix1D x)
Called to add a vector to this one |
java.lang.Object |
clone()
Provides a deep copy of the object |
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 The w1 vector is the slack 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, y2 is the lagrange multiplier for |
cern.colt.matrix.DoubleMatrix1D |
getZ()
Called to return the Z vector |
EConsVector |
negate()
Called to negate a DConsVector, copies the vector, negates the copy and then returns the negated copy. |
int |
rows()
Returns the size of the wrapper DoubleMatrix1D |
void |
setW1(double w1)
Called to set the w1 vector to a constant |
void |
setW1(cern.colt.matrix.DoubleMatrix1D w1)
Called to set the w1 vector |
void |
setW2(double w2)
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 all x values 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 y1 values from a vector |
void |
setY2(double cons)
Called to set all y2 values equal to cons |
void |
setY2(cern.colt.matrix.DoubleMatrix1D y2)
Called to set all y2 values from a vector |
void |
setZ(double z)
Called to set the z vector to a constant |
void |
setZ(cern.colt.matrix.DoubleMatrix1D z)
Called to set the z vector |
java.lang.String |
toString()
Formats the object as a String, delegates to the underlying vector |
| 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 int _y2width
protected int _w1width
protected 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 EConsVector(int uw,
int vw,
int xw)
uw - Number of equality constraintsvw - Number of inequality constraintsxw - Number of variables in the solution vector| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionObject.clone()public 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(double w1)
w1 - constant to set w equal topublic void setW1(cern.colt.matrix.DoubleMatrix1D w1)
w1 - Vector of slack variables for inequality constraintspublic cern.colt.matrix.DoubleMatrix1D getW1()
public void setW2(double w2)
w2 - constant to set w equal topublic void setW2(cern.colt.matrix.DoubleMatrix1D w2)
w2 - Vector of slack variables for inequality constraintspublic cern.colt.matrix.DoubleMatrix1D getW2()
public void setZ(double z)
z - Vector of complementary variables for xpublic void setZ(cern.colt.matrix.DoubleMatrix1D z)
z - Vector of variablespublic cern.colt.matrix.DoubleMatrix1D getZ()
public cern.colt.matrix.DoubleMatrix1D get()
public EConsVector negate()
public int rows()
public void add(cern.colt.matrix.DoubleMatrix1D x)
x - 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 | ||||||||