Documentation Center

  • Trial Software
  • Product Updates

getBudget

Class: Portfolio

Obtain budget constraint bounds from Portfolio object

Syntax

[LowerBudget,UpperBudget] = getBudget(obj)

Description

[LowerBudget,UpperBudget] = getBudget(obj) obtains budget constraint bounds from a Portfolio object.

Tips

Use dot notation to obtain the budget constraint bounds from the Portfolio object.

[LowerBudget, UpperBudget] = obj.getBudget;

Input Arguments

obj

Portfolio object [Portfolio].

Output Arguments

LowerBudget

Lower bound for budget constraint [scalar].

UpperBudget

Upper bound for budget constraint [scalar].

Attributes

Accesspublic
Staticfalse
Hiddenfalse

To learn about attributes of methods, see Method Attributes in the MATLAB® Object-Oriented Programming documentation.

Examples

expand all

Obtain Values for Lower and Upper Budgets

Given portfolio p with the default constraints set, obtain the values for LowerBudget and UpperBudget.

p = Portfolio;
p = p.setDefaultConstraints(5);
[LowerBudget, UpperBudget] = p.getBudget
LowerBudget =

     1


UpperBudget =

     1

See Also

More About

Was this topic helpful?