|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.diversified.DivInteriorPointsSolver
public class DivInteriorPointsSolver
| Field Summary | |
|---|---|
protected java.text.DecimalFormat |
df
|
| Constructor Summary | |
|---|---|
DivInteriorPointsSolver(cern.colt.matrix.DoubleMatrix1D e_r,
cern.colt.matrix.DoubleMatrix2D V,
double f)
|
|
| Method Summary | |
|---|---|
protected void |
addPoint(java.util.List<SolvedPoint> l,
double ra,
DVector w_p)
Helper function called to build the finished point object and add it to the mean variance frontier. |
protected double |
algorithm(int maxMin,
cern.colt.matrix.DoubleMatrix2D Vx,
DVector w_p,
DMatrix Q,
DMatrix QC,
DConsVector cons,
double mu,
cern.colt.matrix.DoubleMatrix2D AV,
cern.colt.matrix.DoubleMatrix1D d,
double threshold)
Performs the actual algorithmic calculations of a single iteration. |
protected double |
computeAlpha(double mu,
DVector w_p,
cern.colt.matrix.DoubleMatrix2D C,
cern.colt.matrix.DoubleMatrix1D d,
DVector X)
Computes the step size in the step direction X by finding the maximum step size that won't violate any constraints. |
protected java.lang.String |
formatOutput(int n,
cern.colt.matrix.linalg.Algebra alg,
double ra,
DVector w_p,
int ct)
Called to write out a line into the standard output for this iteration of the solver |
protected cern.colt.matrix.DoubleMatrix1D |
generate_b(java.util.List<Constraint> constraints)
Given the list of constraints, builds the matrix of equality constraints rhs. |
protected cern.colt.matrix.DoubleMatrix1D |
generate_d(java.util.List<Constraint> constraints)
Given the list of constraints, builds the matrix of inequality constraints rhs. |
protected cern.colt.matrix.DoubleMatrix2D |
getEqualityConstraints(java.util.List<Constraint> constraints)
Given the list of constraints, builds the matrix of equality constraints A. |
protected cern.colt.matrix.DoubleMatrix2D |
getInequalityConstraints(java.util.List<Constraint> constraints)
Given the list of constraints, builds the matrix of inequality constraints C. |
protected DVector |
initialGuess(int maxMin,
double mu,
int m1,
cern.colt.matrix.DoubleMatrix2D AV,
cern.colt.matrix.DoubleMatrix1D d)
Called to compute the initial guess for a solution of the portfolio optimization problem |
protected java.lang.String |
prettyPrint(int n,
cern.colt.matrix.DoubleMatrix1D w_p,
int ct,
double eRet,
double eSigma,
double utility)
|
protected DVector |
solvePoint(int maxMin,
cern.colt.matrix.DoubleMatrix1D E_rx,
java.util.List<Constraint> constraints,
double ra,
cern.colt.matrix.DoubleMatrix2D Vx,
double threshold)
Called to solve for a single point using the Interior Points method with logarithmic barriers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.text.DecimalFormat df
| Constructor Detail |
|---|
public DivInteriorPointsSolver(cern.colt.matrix.DoubleMatrix1D e_r,
cern.colt.matrix.DoubleMatrix2D V,
double f)
| Method Detail |
|---|
protected cern.colt.matrix.DoubleMatrix2D getEqualityConstraints(java.util.List<Constraint> constraints)
constraints - List of constraints
protected cern.colt.matrix.DoubleMatrix1D generate_b(java.util.List<Constraint> constraints)
constraints -
protected cern.colt.matrix.DoubleMatrix2D getInequalityConstraints(java.util.List<Constraint> constraints)
constraints -
protected cern.colt.matrix.DoubleMatrix1D generate_d(java.util.List<Constraint> constraints)
constraints - List of constraints
protected DVector solvePoint(int maxMin,
cern.colt.matrix.DoubleMatrix1D E_rx,
java.util.List<Constraint> constraints,
double ra,
cern.colt.matrix.DoubleMatrix2D Vx,
double threshold)
maxMin - Minimize or maximize the objective functionE_rx - Vector of returnsconstraints - List of constraintsra - Risk aversion parameterVx - Covariance matrixthreshold -
protected double algorithm(int maxMin,
cern.colt.matrix.DoubleMatrix2D Vx,
DVector w_p,
DMatrix Q,
DMatrix QC,
DConsVector cons,
double mu,
cern.colt.matrix.DoubleMatrix2D AV,
cern.colt.matrix.DoubleMatrix1D d,
double threshold)
maxMin - Maximize or minimize the objectiveVx - Covariance matrixw_p - Solution vectorQ - lhs matrixQC - rhs matrixcons - vector of rhs constantsmu - convergence coefficientAV - Matrix of inequality constraint coefficientsd - threshold -
protected void addPoint(java.util.List<SolvedPoint> l,
double ra,
DVector w_p)
l - List of previous solutionsra - Risk aversion coefficientw_p - Solution vector
protected DVector initialGuess(int maxMin,
double mu,
int m1,
cern.colt.matrix.DoubleMatrix2D AV,
cern.colt.matrix.DoubleMatrix1D d)
maxMin - Maximize or minimize the objective functionmu - Convergence coefficientm1 - Width of inequality constraintsAV - Matrix of coefficients of inequality constraintsd -
protected double computeAlpha(double mu,
DVector w_p,
cern.colt.matrix.DoubleMatrix2D C,
cern.colt.matrix.DoubleMatrix1D d,
DVector X)
mu - Convergence coefficientw_p - Potential solution vectorC - d - X -
protected java.lang.String prettyPrint(int n,
cern.colt.matrix.DoubleMatrix1D w_p,
int ct,
double eRet,
double eSigma,
double utility)
protected java.lang.String formatOutput(int n,
cern.colt.matrix.linalg.Algebra alg,
double ra,
DVector w_p,
int ct)
n - alg - ra - w_p - ct -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||