setInitPort
Set up initial or current portfolio
Description
sets up initial or current portfolio for obj
= setInitPort(obj
,InitPort
)Portfolio
,
PortfolioCVaR
, or PortfolioMAD
objects. For details on the respective workflows when using these different
objects, see Portfolio Object Workflow, PortfolioCVaR Object Workflow,
and PortfolioMAD Object Workflow.
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to set up an initial or current portfolio.
obj = obj.setInitPort(InitPort, NumAssets);
To remove an initial portfolio, call this function with an empty argument
[]
forInitPort
.
Version History
Introduced in R2011a
See Also
Topics
- Common Operations on the Portfolio Object
- Common Operations on the PortfolioCVaR Object
- Common Operations on the PortfolioMAD Object
- Portfolio Optimization Examples Using Financial Toolbox
- Supported Constraints for Portfolio Optimization Using Portfolio Objects
- Supported Constraints for Portfolio Optimization Using PortfolioCVaR Object
- Supported Constraints for Portfolio Optimization Using PortfolioMAD Object