setGroups
Set up group constraints for portfolio weights
Syntax
Description
sets up group constraints for portfolio weights for
obj
= setGroups(obj
,GroupMatrix
,LowerGroup
)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.
obj = setGroups(
sets up group constraints for portfolio weights for portfolio objects with an
additional option specified for obj
,GroupMatrix
,LowerGroup
,UpperGroup
)UpperGroup
.
Given GroupMatrix
and either
LowerGroup
or UpperGroup
, a
portfolio Port
must satisfy the following:
LowerGroup <= GroupMatrix * Port <= UpperGroup
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to set up group constraints for portfolio weights.
obj = obj.setGroups(GroupMatrix, LowerGroup, UpperGroup);
To remove group constraints, enter empty arrays for the corresponding arrays. To add to existing group constraints, use
addGroups
.
Version History
Introduced in R2011a
See Also
Topics
- Working with Group Constraints Using Portfolio Object
- Working with Group Constraints Using PortfolioCVaR Object
- Working with Group Constraints Using PortfolioMAD Object
- Constraint Specification Using a Portfolio 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