Set up list of identifiers for assets
sets up the list of identifiers for assets for obj
= setAssetList(obj
,AssetList
)Portfolio
,
PortfolioCVaR
, or PorfolioMAD
objects.
For details on the respective workflows when using these different objects, see
Portfolio Object Workflow, PortfolioCVaR Object Workflow,
and PortfolioMAD Object Workflow.
sets up a list of asset identifiers, specified as a comma-separated list of
character vectors, a cell array of character vectors, or string array where each
character vector or string is an asset identifier. obj
= setAssetList(obj
,'asset1','asset2',asset3',...)
Note
If an asset list is entered as an input, this function overwrites an existing asset list in the object if one exists.
If no asset list is entered as an input, three actions can occur:
If NumAssets
is nonempty and
AssetList
is empty,
AssetList
becomes a numbered
list of assets with default names according to the
hidden property in
defaultforAssetList
('Asset'
).
If NumAssets
is nonempty and
AssetList
is nonempty,
nothing happens.
If NumAssets
is empty and
AssetList
is empty, the
default NumAssets
=1
is set and a default asset
list is created
('Asset1'
).
You can also use dot notation to set up list of identifiers for assets.
obj = obj.setAssetList(AssetList);
To clear an AssetList
, call this function with
[]
or {[]}
.
estimateFrontier
| estimateFrontierByReturn
| estimateFrontierByRisk
| estimateFrontierLimits