addGroups
Add group constraints for portfolio weights to existing group constraints
Syntax
Description
adds group constraints for portfolio weights to existing group constraints for
obj
= addGroups(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.
Given GroupMatrix
and either
LowerGroup
or UpperGroup
, a
portfolio Port
must satisfy the
following:
LowerGroup <= GroupMatrix * Port <= UpperGroup
adds group constraints for portfolio weights to existing group constraints with
an additional option for obj
= addGroups(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 add group constraints for portfolio weights.
obj = obj.addGroups(GroupMatrix, LowerGroup, UpperGroup)
To remove group constraints from any of the portfolio objects using dot notation, enter empty arrays for the corresponding arrays.
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
- 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