Class ConstrainedPortfolioOptimizer

java.lang.Object
com.quantfinlib.optimization.ConstrainedPortfolioOptimizer

public final class ConstrainedPortfolioOptimizer extends Object
Constrained long-only optimizer: per-asset weight bounds (position caps / floors) and an optional turnover penalty against current holdings — adjusted return = μ·w − penalty · Σ|w − w_current| — so the optimizer trades expected gain against the real cost of getting there. Same derivative-free search as PortfolioOptimizer with feasibility projection.
  • Constructor Details

    • ConstrainedPortfolioOptimizer

      public ConstrainedPortfolioOptimizer(double[] expectedReturns, double[][] covariance)
    • ConstrainedPortfolioOptimizer

      public ConstrainedPortfolioOptimizer(double[] expectedReturns, double[][] covariance, long seed)
  • Method Details