setGroupRatio
Set up group ratio constraints for portfolio weights
Description
sets up group ratio constraints for portfolio weights for obj
= setGroupRatio(obj
,GroupA
,GroupB
,LowerRatio
)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.
sets up group ratio constraints for portfolio weights for portfolio objects with an additional
optional argument for obj
= setGroupRatio(___,UpperRatio
)UpperRatio
.
Given base and comparison group matrices GroupA
and
GroupB
and LowerRatio
or
UpperRatio
bounds, group ratio constraints require any portfolio in
Port
to satisfy the following:
(GroupB * Port) .* LowerRatio <= GroupA * Port <= (GroupB * Port) .* UpperRatio
Caution
This collection of constraints usually requires that portfolio weights be nonnegative
and that the products GroupA * Port
and GroupB * Port
are always nonnegative. Although negative portfolio weights and non-Boolean group ratio
matrices are supported, use with caution.
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to set up group ratio constraints for portfolio weight.
obj = obj.setGroupRatio(GroupA, GroupB, LowerRatio, UpperRatio);
To remove group ratio constraints, enter empty arrays for the corresponding arrays. To add to existing group ratio constraints, use
addGroupRatio
.
Version History
Introduced in R2011a
See Also
Topics
- Working with Group Ratio 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