Numeric methods for optimization of portfolios | PortfolioAnalytics-package PortfolioAnalytics |
Asset Ranking | ac.ranking |
General interface for adding and/or updating optimization constraints. | add.constraint |
General interface for adding optimization objectives, including risk, return, and risk budget | add.objective add.objective_v1 add.objective_v2 |
Add sub-portfolio | add.sub.portfolio |
Apply a risk or return function to a set of weights | applyFUN |
generate plots of the cumulative returns and drawdown for back-testing | backtest.plot |
barplot of group weights by group or category | barplotGroupWeights |
Black Litterman Estimates | black.litterman |
Computes the Black-Litterman formula for the moments of the posterior normal. | BlackLittermanFormula |
constructor for box_constraint. | box_constraint |
compute comoments for use by lower level optimization functions when the conditional covariance matrix is a CCC GARCH model | CCCgarch.MM |
Center | center |
Buckets Centroid | centroid.buckets |
Complete Cases Centroid | centroid.complete.mc |
Multiple Sectors Centroid | centroid.sectors |
Positive and Negative View Centroid | centroid.sign |
Classic risk reward scatter and concentration | chart.Concentration |
Chart weights along an efficient frontier | chart.EF.Weights chart.EF.Weights.efficient.frontier chart.EF.Weights.optimize.portfolio |
Chart the efficient frontier and risk-return scatter | chart.EfficientFrontier chart.EfficientFrontier.efficient.frontier chart.EfficientFrontier.optimize.portfolio chart.EfficientFrontier.optimize.portfolio.CVXR chart.EfficientFrontier.optimize.portfolio.ROI |
Overlay the efficient frontiers of different minRisk portfolio objects on a single plot. | chart.EfficientFrontierCompare |
Plot multiple efficient frontiers | chart.EfficientFrontierOverlay |
Chart weights by group or category | chart.GroupWeights |
Generic method to chart risk contribution | chart.RiskBudget chart.RiskBudget.opt.list chart.RiskBudget.optimize.portfolio chart.RiskBudget.optimize.portfolio.rebalancing |
classic risk reward scatter | chart.RiskReward chart.RiskReward.opt.list chart.RiskReward.optimize.portfolio.DEoptim chart.RiskReward.optimize.portfolio.GenSA chart.RiskReward.optimize.portfolio.pso chart.RiskReward.optimize.portfolio.random chart.RiskReward.optimize.portfolio.ROI |
boxplot of the weights of the optimal portfolios | chart.Weights chart.Weights.opt.list chart.Weights.optimize.portfolio.DEoptim chart.Weights.optimize.portfolio.GenSA chart.Weights.optimize.portfolio.pso chart.Weights.optimize.portfolio.random chart.Weights.optimize.portfolio.rebalancing chart.Weights.optimize.portfolio.ROI |
check if a set of weights satisfies the constraints | check_constraints |
Cokurtosis Matrix Estimate | cokurtosisMF |
Cokurtosis Matrix Estimate | cokurtosisSF |
Combine objects created by optimize.portfolio | combine.optimizations |
Combine a list of portfolio objects | combine.portfolios |
calculate a numeric return value for a portfolio based on a set of constraints and objectives | constrained_objective constrained_objective_v1 constrained_objective_v2 |
constructor for class constraint_ROI | constraint_ROI |
constructors for class constraint | constraint constraint_v1 constraint_v2 |
Coskewness Matrix Estimate | coskewnessMF |
Coskewness Matrix Estimate | coskewnessSF |
Covariance Matrix Estimate | covarianceMF |
Covariance Matrix Estimate | covarianceSF |
create an efficient frontier | create.EfficientFrontier |
Compute returns mean vector and covariance matrix with custom.covRob.Mcd | custom.covRob.Mcd |
Compute returns mean vector and covariance matrix with custom.covRob.MM | custom.covRob.MM |
Compute returns mean vector and covariance matrix with custom.covRob.Rocke | custom.covRob.Rocke |
Compute returns mean vector and covariance matrix with custom.covRob.TSGS | custom.covRob.TSGS |
Function to compute diversification as a constraint | diversification |
constructor for diversification_constraint | diversification_constraint |
Entropy pooling program for blending views on scenarios with a prior scenario-probability distribution | EntropyProg |
Create an equal weight portfolio | equal.weight |
Minimum ETL MILP Optimization | etl_milp_opt |
Minimum ETL LP Optimization | etl_opt |
extract the risk value when knowing the weights | extract_risk |
Cokurtosis Estimate | extractCokurtosis |
Coskewness Estimate | extractCoskewness |
Covariance Estimate | extractCovariance |
Extract the efficient frontier data points | extractEfficientFrontier |
Extract the group and/or category weights | extractGroups |
Extract the objective measures | extractObjectiveMeasures |
extract some stats and weights from a portfolio run via 'optimize.portfolio' | extractStats extractStats.optimize.portfolio.DEoptim extractStats.optimize.portfolio.GenSA extractStats.optimize.portfolio.parallel extractStats.optimize.portfolio.pso extractStats.optimize.portfolio.random extractStats.optimize.portfolio.ROI |
Extract weights from a portfolio run via 'optimize.portfolio' or 'optimize.portfolio.rebalancing' | extractWeights |
Constructor for factor exposure constraint | factor_exposure_constraint |
mapping function to transform or penalize weights that violate constraints | fn_map |
create a sequence of possible weights for random or brute force portfolios | generatesequence |
Helper function to get the enabled constraints out of the portfolio object When the v1_constraint object is instantiated via constraint, the arguments min_sum, max_sum, min, and max are either specified by the user or default values are assigned. These are required by other functions such as 'optimize.portfolio' and 'constrained_objective' . This function will check that these variables are in the portfolio object in the constraints list. We will default to 'min_sum=1' and 'max_sum=1' if leverage constraints are not specified. We will default to 'min=-Inf' and 'max=Inf' if box constraints are not specified. This function is used at the beginning of optimize.portfolio and other functions to extract the constraints from the portfolio object. We Use the same naming as the v1_constraint object. | get_constraints |
GMV/QU QP Optimization | gmv_opt |
GMV/QU QP Optimization with Turnover Constraint | gmv_opt_leverage |
GMV/QU QP Optimization with Proportional Transaction Cost Constraint | gmv_opt_ptc |
GMV/QU QP Optimization with Turnover Constraint | gmv_opt_toc |
constructor for group_constraint | group_constraint |
Test if group constraints have been violated | group_fail |
Concentration of weights | HHI |
Six Major Economic Indexes | indexes |
Insert a list of constraints into the constraints slot of a portfolio object | insert_constraints |
Insert a list of objectives into the objectives slot of a portfolio object | insert_objectives |
Create an inverse volatility weighted portfolio | inverse.volatility.weight |
check function for constraints | is.constraint |
check class of an objective object | is.objective |
check function for portfolio | is.portfolio |
constructor for leverage_exposure_constraint | leverage_exposure_constraint |
Maximum Return MILP Optimization | maxret_milp_opt |
Maximum Return LP Optimization | maxret_opt |
Generate the efficient frontier for a mean-CSM portfolio | meancsm.efficient.frontier |
Generate the efficient frontier for a mean-etl portfolio | meanetl.efficient.frontier |
Generate multiple efficient frontiers for the same portfolio | meanrisk.efficient.frontier |
Generate the efficient frontier for a mean-variance portfolio | meanvar.efficient.frontier |
Compute moments | meucci.moments |
Asset Ranking | meucci.ranking |
constructor for class tmp_minmax_objective | minmax_objective |
Multple Layer Portfolio Specification | mult.portfolio.spec |
Control settings for custom.covRob.Mcd | MycovRobMcd |
Control settings for custom.covRob.TSGS | MycovRobTSGS |
utility function to replace awkward named from unlist | name.replace |
constructor for class 'objective' | objective |
Optimal Portfolio Weights and Performance Values | opt.outputMvo |
Constrained optimization of portfolios | optimize.portfolio optimize.portfolio_v1 optimize.portfolio_v2 |
Execute multiple optimize.portfolio calls, presumably in parallel | optimize.portfolio.parallel |
Portfolio Optimization with Rebalancing Periods | optimize.portfolio.rebalancing optimize.portfolio.rebalancing_v1 |
Generates histogram | pHist |
plot method for objects of class 'optimize.portfolio' | plot.optimize.portfolio plot.optimize.portfolio.DEoptim plot.optimize.portfolio.GenSA plot.optimize.portfolio.pso plot.optimize.portfolio.random plot.optimize.portfolio.ROI |
Generate efficient frontiers plot by providing frontiers. | plotFrontiers |
constructor for class portfolio_risk_objective | portfolio_risk_objective |
Portfolio Moments | portfolio.moments.bl |
Portfolio Moments | portfolio.moments.boudt |
constructor for class portfolio | portfolio portfolio.spec |
function to check for violation of position limits constraints | pos_limit_fail |
constructor for filter_constraint | position_limit_constraint |
print method for constraint objects | print.constraint |
Print an efficient frontier object | print.efficient.frontier |
Printing output of optimize.portfolio.rebalancing | print.optimize.portfolio.rebalancing |
Printing output of optimize.portfolio | print.optimize.portfolio.CVXR print.optimize.portfolio.DEoptim print.optimize.portfolio.GenSA print.optimize.portfolio.pso print.optimize.portfolio.random print.optimize.portfolio.ROI |
Printing Portfolio Specification Objects | print.portfolio |
Printing summary output of optimize.portfolio | print.summary.optimize.portfolio |
Printing summary output of optimize.portfolio.rebalancing | print.summary.optimize.portfolio.rebalancing |
constructor for quadratic utility objective | quadratic_utility_objective |
version 2 generate an arbitary number of constrained random portfolios | random_portfolios random_portfolios_v2 |
generate an arbitary number of constrained random portfolios | random_portfolios_v1 |
deprecated random portfolios wrapper until we write a random trades function | random_walk_portfolios |
version 2 generate random permutations of a portfolio seed meeting your constraints on the weights of each asset | randomize_portfolio randomize_portfolio_v2 |
Random portfolio sample method | randomize_portfolio_v1 |
Regime Portfolios | regime.portfolios |
constructor for return_constraint | return_constraint |
constructor for class return_objective | return_objective |
constructor for class risk_budget_objective | risk_budget_objective |
Generate random portfolios based on grid search method | rp_grid |
Generate random portfolios using the sample method | rp_sample |
Generate random portfolios using the simplex method | rp_simplex |
Transform a weights vector to satisfy constraints | rp_transform |
Apply a risk or return function to asset returns | scatterFUN |
Portfolio Moments | set.portfolio.moments set.portfolio.moments_v2 |
set portfolio moments for use by lower level optimization functions | set.portfolio.moments_v1 |
Statistical Factor Model | statistical.factor.model |
Summarize an efficient frontier object | summary.efficient.frontier |
Summarizing output of optimize.portfolio | summary.optimize.portfolio |
summary method for optimize.portfolio.rebalancing | summary.optimize.portfolio.rebalancing |
Summarize Portfolio Specification Objects | summary.portfolio |
apply a function over a configurable trailing period | trailingFUN |
constructor for transaction_cost_constraint | transaction_cost_constraint |
Calculates turnover given two vectors of weights. This is used as an objective function and is called when the user adds an objective of type turnover with 'add.objective' | turnover |
constructor for turnover_constraint | turnover_constraint |
constructor for class turnover_objective | turnover_objective |
Helper function to update v1_constraint objects to v2 specification in the portfolio object | update_constraint_v1tov2 |
function for updating constrints, not well tested, may be broken | update.constraint |
Calculate portfolio variance | var.portfolio |
Constructor for weight concentration objective | weight_concentration_objective |
constructor for weight_sum_constraint | weight_sum_constraint |