Record Class TurnoverAwareOptimizer.Settings
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.TurnoverAwareOptimizer.Settings
- Record Components:
riskAversion- λ > 0turnoverPenalty- κ ≥ 0, per unit of |Δw|rho- ADMM penalty parameter > 0 (1 is a reasonable start when α and Σ are on comparable scales)maxIterations- iteration captolerance- per-coordinate residual tolerance
- Enclosing class:
TurnoverAwareOptimizer
public static record TurnoverAwareOptimizer.Settings(double riskAversion, double turnoverPenalty, double rho, int maxIterations, double tolerance)
extends Record
Optimiser settings.
-
Constructor Summary
ConstructorsConstructorDescriptionSettings(double riskAversion, double turnoverPenalty, double rho, int maxIterations, double tolerance) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxIterationsrecord component.of(double riskAversion, double turnoverPenalty) doublerho()Returns the value of therhorecord component.doubleReturns the value of theriskAversionrecord component.doubleReturns the value of thetolerancerecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theturnoverPenaltyrecord component.
-
Constructor Details
-
Settings
public Settings(double riskAversion, double turnoverPenalty, double rho, int maxIterations, double tolerance) Creates an instance of aSettingsrecord class.- Parameters:
riskAversion- the value for theriskAversionrecord componentturnoverPenalty- the value for theturnoverPenaltyrecord componentrho- the value for therhorecord componentmaxIterations- the value for themaxIterationsrecord componenttolerance- the value for thetolerancerecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
riskAversion
public double riskAversion()Returns the value of theriskAversionrecord component.- Returns:
- the value of the
riskAversionrecord component
-
turnoverPenalty
public double turnoverPenalty()Returns the value of theturnoverPenaltyrecord component.- Returns:
- the value of the
turnoverPenaltyrecord component
-
rho
-
maxIterations
public int maxIterations()Returns the value of themaxIterationsrecord component.- Returns:
- the value of the
maxIterationsrecord component
-
tolerance
-