与之合作'简单的'
Bound Constraints Using PortfolioCVaR Object
'简单的'
bound constraints are optional linear constraints that maintain upper and lower bounds on portfolio weights (see'简单的'Bound Constraints). Although every portfolio set must be bounded, it is not necessary to specify a portfolio set with explicit bound constraints. For example, you can create a portfolio set with an implicit upper bound constraint or a portfolio set with average turnover constraints. The bound constraints have propertiesLowerBound
for the lower-bound constraint andUpperBound
for the upper-bound constraint. Set default values for these constraints using thesetDefaultConstraints
function (see环境Default Constraints for Portfolio Weights Using Portfolio Object).
环境'简单的'
Bounds Using thePortfolioCVaR
功能
通过PortfolioCVaR
object. Suppose that you have a balanced fund with stocks that can range from 50% to 75% of your portfolio and bonds that can range from 25% to 50% of your portfolio. The bound constraints for a balanced fund are set with:
lb = [ 0.5; 0.25 ]; ub = [ 0.75; 0.5 ]; p = PortfolioCVaR('LowerBound', 磅,'UpperBound', ub,'BoundType','简单的');disp(p.numassets)disp(p.lowerbound)disp(p.upperbound)
2 0.5000 0.2500 0.7500 0.5000
To continue with this example, you must set up a budget constraint. For details, see使用投资组合对象处理预算约束。
环境'简单的'
Bounds Using thesetBounds
功能
You can also set the properties for bound constraints usingsetBounds
。假设您拥有一个平衡的基金,其股票的投资组合的50%至75%,债券的债券范围从您的投资组合的25%到50%不等。给定PortfolioCVaR
objectp
, 利用setBounds
to set the bound constraints:
lb = [ 0.5; 0.25 ]; ub = [ 0.75; 0.5 ]; p = PortfolioCVaR; p = setBounds(p, lb, ub,'BoundType','简单的');disp(p.numassets)disp(p.lowerbound)disp(p.upperbound)
2 0.5000 0.2500 0.7500 0.5000
环境'简单的'
Bounds Using thePortfolioCVaR
功能或者setBounds
功能
Both thePortfolioCVaR
对象和setBounds
function implement scalar expansion on either theLowerBound
或者UpperBound
properties. If theNumAssets
property is already set in thePortfolioCVaR
object, scalar arguments for either property expand to have the same value across all dimensions. In addition,setBounds
让您指定NumAssets
as an optional argument. Suppose that you have a universe of 500 assets and you want to set common bound constraints on all assets in your universe. Specifically, you are a long-only investor and want to hold no more than 5% of your portfolio in any single asset. You can set these bound constraints in any of these equivalent ways:
p = PortfolioCVaR('NumAssets',500,'LowerBound', 0,'UpperBound',0.05,'BoundType','简单的');
或者
p = PortfolioCVaR('NumAssets',500);p = setBounds(p,0,0.05,'BoundType','简单的');
或者
p = PortfolioCVaR; p = setBounds(p, 0, 0.05,'NumAssets',500,'BoundType','简单的');
To clear bound constraints from yourPortfolioCVaR
object, use either thePortfolioCVaR
object orsetBounds
with empty inputs for the properties to be cleared. For example, to clear the upper-bound constraint from thePortfolioCVaR
objectp
in the previous example:
p = PortfolioCVaR(p,'UpperBound', []);
See Also
PortfolioCVaR
|setDefaultConstraints
|setBounds
|setBudget
|setGroups
|setGroupRatio
|setEquality
|setinequality
|定居
|setOneWayTurnover
Related Examples
- Creating the PortfolioCVaR Object
- 使用默认值使用CVAR投资组合约束
- Troubleshooting for Setting 'Conditional' BoundType, MinNumAssets, and MaxNumAssets Constraints
- Validate the CVaR Portfolio Problem
- Estimate Efficient Portfolios for Entire Frontier for PortfolioCVaR Object
- Estimate Efficient Frontiers for PortfolioCVaR Object
- Asset Returns and Scenarios Using PortfolioCVaR Object
- 使用portfoliocvar对象,使用“条件”边界,minnumassets和maxnumassets约束
- Hedging Using CVaR Portfolio Optimization
- Compute Maximum Reward-to-Risk Ratio for CVaR Portfolio