Class Strategy
java.lang.Object
org.drip.portfolioconstruction.core.Block
org.drip.portfolioconstruction.optimizer.Strategy
public class Strategy extends Block
Strategy holds the Details of a given Strategy.
- 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 Strategy(java.lang.String name, java.lang.String id, java.lang.String description, ObjectiveFunction objectiveFunction, ConstraintHierarchy constraintHierarchy, boolean allowGrandFathering, boolean allowCrossOver, boolean ignoreCompliance)
Strategy Constructor -
Method Summary
Modifier and Type Method Description boolean
allowCrossOver()
Indicate if Cross Over is allowedboolean
allowGrandFathering()
Indicate if Grand-fathering of the "Previous" is to be performeddouble[]
constraintAttributes()
Retrieve the Array of Constraint AttributesConstraintHierarchy
constraintHierarchy()
Retrieve the Constraint Hierarchyboolean
ignoreCompliance()
Indicate if Compliance Checks are to be ignoredObjectiveFunction
objectiveFunction()
Retrieve the Objective FunctionMethods inherited from class org.drip.portfolioconstruction.core.Block
category, description, hashCode, id, name, Standard, timeStamp
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Strategy
public Strategy(java.lang.String name, java.lang.String id, java.lang.String description, ObjectiveFunction objectiveFunction, ConstraintHierarchy constraintHierarchy, boolean allowGrandFathering, boolean allowCrossOver, boolean ignoreCompliance) throws java.lang.ExceptionStrategy Constructor- Parameters:
name
- The Constraint Nameid
- The Constraint IDdescription
- The Constraint DescriptionobjectiveFunction
- The Objective FunctionconstraintHierarchy
- Constraint HierarchyallowGrandFathering
- TRUE - Grand-fathering of the "Previous" is to be performedallowCrossOver
- TRUE - Cross-Over is allowedignoreCompliance
- TRUE - Ignore Compliance- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
allowGrandFathering
public boolean allowGrandFathering()Indicate if Grand-fathering of the "Previous" is to be performed- Returns:
- TRUE - Grand-fathering of the "Previous" is to be performed
-
allowCrossOver
public boolean allowCrossOver()Indicate if Cross Over is allowed- Returns:
- TRUE - Cross-Over is allowed
-
ignoreCompliance
public boolean ignoreCompliance()Indicate if Compliance Checks are to be ignored- Returns:
- TRUE - Compliance Checks are to be ignored
-
objectiveFunction
Retrieve the Objective Function- Returns:
- The Objective Function
-
constraintHierarchy
Retrieve the Constraint Hierarchy- Returns:
- The Constraint Hierarchy
-
constraintAttributes
public double[] constraintAttributes()Retrieve the Array of Constraint Attributes- Returns:
- The Array of Constraint Attributes
-