Add group constraints for portfolio weights to existing group constraints
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
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.