Class ObjectiveFunction
java.lang.Object
org.drip.function.definition.RdToR1
org.drip.portfolioconstruction.optimizer.ObjectiveFunction
public class ObjectiveFunction extends RdToR1
ObjectiveFunction holds the Terms composing the Objective Function and their Weights.
- Module = Portfolio Core Module
- Library = Asset Allocation Analytics
- Project = Portfolio Construction under Allocation Constraints
- Package = Core Portfolio Construction Optimizer Suite
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ObjectiveFunction()Empty Objective Function Constructor -
Method Summary
Modifier and Type Method Description booleanaddObjectiveTermUnit(ObjectiveTermUnit objectiveTermUnit)Add the Objective Term Unit Instancedoublederivative(double[] variateArray, int variateIndex, int order)Calculate the derivative as a doubleintdimension()Retrieve the Dimension of the Input Variatedoubleevaluate(double[] variateArray)Evaluate for the given Input Variatesjava.util.List<ObjectiveTermUnit>list()Retrieve the List of Objective TermsMethods inherited from class org.drip.function.definition.RdToR1
conditionNumber, conditionNumberL2, conditionNumberLInfinity, conditionNumberLp, differential, gradient, gradientModulus, gradientModulusFunction, hessian, integrate, jacobian, maxima, minima, ValidateInputMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectiveFunction
public ObjectiveFunction()Empty Objective Function Constructor
-
-
Method Details
-
addObjectiveTermUnit
Add the Objective Term Unit Instance- Parameters:
objectiveTermUnit- The Objective Term Unit Instance- Returns:
- TRUE - The Objective Term Unit Instance successfully added
-
list
Retrieve the List of Objective Terms- Returns:
- The List of Objective Terms
-
dimension
public int dimension()Description copied from class:RdToR1Retrieve the Dimension of the Input Variate -
evaluate
public double evaluate(double[] variateArray) throws java.lang.ExceptionDescription copied from class:RdToR1Evaluate for the given Input Variates -
derivative
public double derivative(double[] variateArray, int variateIndex, int order) throws java.lang.ExceptionDescription copied from class:RdToR1Calculate the derivative as a double- Overrides:
derivativein classRdToR1- Parameters:
variateArray- Variate Array at which the derivative is to be calculatedvariateIndex- Index of the Variate whose Derivative is to be computedorder- Order of the derivative to be computed- Returns:
- The Derivative
- Throws:
java.lang.Exception- Thrown if the Derivative cannot be calculated
-