public final class EfficientFrontier extends FinancePortfolio
FinancePortfolio.Context
MATRIX_FACTORY
Constructor and Description |
---|
EfficientFrontier(BasicMatrix covarianceMatrix,
BasicMatrix expectedExcessReturns) |
EfficientFrontier(FinancePortfolio.Context portfolioContext) |
EfficientFrontier(MarketEquilibrium marketEquilibrium,
BasicMatrix expectedExcessReturns) |
compareTo, forecast, getConformance, getLossProbability, getLossProbability, getSharpeRatio, getSharpeRatio, getValueAtRisk, getValueAtRisk95, getVolatility, normalise, normalise
public EfficientFrontier(BasicMatrix covarianceMatrix, BasicMatrix expectedExcessReturns)
public EfficientFrontier(FinancePortfolio.Context portfolioContext)
public EfficientFrontier(MarketEquilibrium marketEquilibrium, BasicMatrix expectedExcessReturns)
protected BasicMatrix calculateAssetWeights()
protected void reset()
public final boolean isShortingAllowed()
public org.ojalgo.finance.portfolio.OptimisedPortfolio.Optimiser optimiser()
public final void setShortingAllowed(boolean allowed)
protected final BasicMatrix calculateAssetReturns()
protected final BasicMatrix handle(Optimisation.Result optimisationResult)
public final double calculatePortfolioReturn(FinancePortfolio weightsPortfolio)
calculatePortfolioReturn
in interface FinancePortfolio.Context
public final double calculatePortfolioVariance(FinancePortfolio weightsPortfolio)
calculatePortfolioVariance
in interface FinancePortfolio.Context
public final BasicMatrix getAssetReturns()
getAssetReturns
in interface FinancePortfolio.Context
public final BasicMatrix getAssetVolatilities()
getAssetVolatilities
in interface FinancePortfolio.Context
public final BasicMatrix getAssetWeights()
public final BasicMatrix getCorrelations()
getCorrelations
in interface FinancePortfolio.Context
public final BasicMatrix getCovariances()
getCovariances
in interface FinancePortfolio.Context
public final MarketEquilibrium getMarketEquilibrium()
public final double getMeanReturn()
FinancePortfolio
getMeanReturn
in class FinancePortfolio
public final double getReturnVariance()
FinancePortfolio
getReturnVariance
in class FinancePortfolio
public final Scalar<?> getRiskAversion()
public final String[] getSymbols()
public final List<BigDecimal> getWeights()
FinancePortfolio
getWeights
in class FinancePortfolio
public final void setRiskAversion(Number factor)
public int size()
size
in interface FinancePortfolio.Context
public final List<SimpleAsset> toSimpleAssets()
public final SimplePortfolio toSimplePortfolio()
public String toString()
toString
in class FinancePortfolio
protected final BasicMatrix calculateAssetReturns(BasicMatrix aWeightsVctr)
protected final BasicMatrix calculateAssetWeights(BasicMatrix aReturnsVctr)
protected final Scalar<?> calculatePortfolioReturn(BasicMatrix aWeightsVctr, BasicMatrix aReturnsVctr)
protected final Scalar<?> calculatePortfolioVariance(BasicMatrix aWeightsVctr)
protected final void calibrate(BasicMatrix aWeightsVctr, BasicMatrix aReturnsVctr)
Copyright © 2017 Optimatika. All rights reserved.