Note: This page has been translated by MathWorks. Please click here

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Set up linear equality constraints for portfolio weights

Use the `setEquality`

function with
a `Portfolio`

, `PortfolioCVaR`

,
or `PortfolioMAD`

object to set up linear equality
constraints for portfolio weights for portfolio objects.

For details on the respective workflows when using these different objects, see Portfolio Object Workflow, PortfolioCVaR Object Workflow, and PortfolioMAD Object Workflow.

`obj= setEquality(obj,AEquality,bEquality)`

You can also use dot notation to set up linear equality constraints for portfolio weights.

obj = obj.setEquality(AEquality, bEquality);

Linear equality constraints can be removed from a portfolio object by entering

`[]`

for each property you want to remove.

- Working with Linear Equality Constraints Using Portfolio Object
- Working with Linear Equality Constraints Using PortfolioCVaR Object
- Working with Linear Equality Constraints Using PortfolioMAD Object
- Portfolio Optimization Examples
- Portfolio Set for Optimization Using Portfolio Object
- Portfolio Set for Optimization Using PortfolioCVaR Object
- Portfolio Set for Optimization Using PortfolioMAD Object

Was this topic helpful?