Skip to Main Content Skip to Search
Product Documentation

AbstractPortfolio class -

Abstract portfolio object for portfolio optimization and analysis

Description

The portfolio object implements mean-variance portfolio optimization and is derived from the abstract class AbstractPortfolio.

Construction

There is no constructor for the abstract class. To construct a portfolio object, see the Portfolio class.

Properties

Name

Name for instance of the portfolio object ([] or [string]).

Attributes:

SetAccesspublic
GetAccesspublic

NumAssets

Number of assets in universe ([] or [integer scalar]).

Attributes:

SetAccesspublic
GetAccesspublic

AssetList

Names or symbols of assets in universe ([] or [vector cell of strings]).

Attributes:

SetAccesspublic
GetAccesspublic

InitPort

Initial portfolio ([] or vector).

Attributes:

SetAccesspublic
GetAccesspublic

AInequality

Linear inequality constraint matrix ([] or [matrix]).

Attributes:

SetAccesspublic
GetAccesspublic

bInequality

Linear inequality constraint vector ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

AEquality

Linear equality constraint matrix ([] or [matrix]).

Attributes:

SetAccesspublic
GetAccesspublic

bEquality

Linear equality constraint vector ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

LowerBound

Lower-bound constraint ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

UpperBound

Upper-bound constraint ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

LowerBudget

Lower-bound budget constraint ([] or [scalar]).

Attributes:

SetAccesspublic
GetAccesspublic

UpperBudget

Upper-bound budget constraint ([] or [scalar]).

Attributes:

SetAccesspublic
GetAccesspublic

GroupMatrix

Group membership matrix ([] or [matrix]).

Attributes:

SetAccesspublic
GetAccesspublic

LowerGroup

Lower-bound group constraint ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

UpperGroup

Upper-bound group constraint ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

GroupA

Group A weights to be bounded by weights in group B ([] or [matrix]).

Attributes:

SetAccesspublic
GetAccesspublic

GroupB

Group B weights ([] or [matrix]).

Attributes:

SetAccesspublic
GetAccesspublic

LowerRatio

Minimum ratio of allocations between groups A and B ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

UpperRatio

Maximum ratio of allocations between groups A and B ([] or [vector]).

Attributes:

SetAccesspublic
GetAccesspublic

Methods

addEqualityAdd linear equality constraints for portfolio weights to existing constraints
addGroupRatioAdd group ratio constraints for portfolio weights to existing group ratio constraints
addGroupsAdd group constraints for portfolio weights to existing group constraints
addInequalityAdd linear inequality constraints for portfolio weights to existing constraints
checkFeasibilityCheck feasibility of input portfolios against a portfolio object
estimateBoundsEstimate global lower and upper bounds for set of portfolios
estimateFrontierEstimate specified number of optimal portfolios over entire efficient frontier
estimateFrontierByReturnEstimate optimal portfolios with targeted portfolio returns
estimateFrontierByRiskEstimate optimal portfolios with targeted portfolio risks
estimateFrontierLimitsEstimate optimal portfolios at endpoints of efficient frontier
estimateMaxSharpeRatioEstimate efficient portfolio to maximize Sharpe ratio
estimatePortReturnEstimate mean of portfolio returns (portfolio return)
estimatePortRiskEstimate standard deviation of portfolio returns (portfolio risk)
getBoundsObtain bounds for portfolio weights from portfolio object
getBudgetObtain budget constraint bounds from portfolio object
getEqualityObtain equality constraint arrays from portfolio object
getGroupRatioObtain group ratio constraint arrays from portfolio object
getGroupsObtain group constraint arrays from portfolio object
getInequalityObtain inequality constraint arrays from portfolio object
plotFrontierPlot efficient frontier
setAssetListSet up list of identifiers for assets
setBoundsSet up bounds for portfolio weights
setBudgetSet up budget constraints
setDefaultConstraintsSet up portfolio constraints with nonnegative weights that must sum to 1
setEqualitySet up linear equality constraints for portfolio weights
setGroupRatioSet up group ratio constraints for portfolio weights
setGroupsSet up group constraints for portfolio weights
setInequalitySet up linear inequality constraints for portfolio weights
setInitPortSet up initial or current portfolio
setOptionsSet hidden properties in portfolio object
setSolver Choose main solver and specify associated solver options for portfolio optimization

Instance Hierarchy

The AbstractPortfolio class has one subclass, Portfolio, that inherits properties and methods from theAbstractPortfolio class.

Attributes

Abstracttrue

To learn about attributes of classes, see Class Attributes in the MATLAB Object-Oriented Programming documentation.

Copy Semantics

Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB Programming Fundamentals documentation.

Alternatives

You can perform portfolio optimization using a collection of special-purpose functions in Financial Toolbox software. For more information, see Portfolio Optimization Functions.

See Also

Portfolio

How To

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS