MVFRONTIER

Solve for the Mean-Variance efficient frontier. Optimize for multiple portfolios to evaluate trade-offs.

Description

Solve for multiple mean-variance optimal portfolios on the efficient frontier. Evaluate the absolute return and risk tradeoffs. The function allows you to specify both linear and non-linear constraints and is able to account for friction penalties (transaction costs).

The convexity of the efficient frontier may not necessarily hold when transaction costs are present.

Syntax

The following describes the function signature for use in Microsoft Excel's formula bar.

=MVFRONTIER(P, mu, sigma, rho, wInitial, tc, lb, ub, constraints)

Input(s)

Argument
Description

P

mu

Required. Vector of expected returns.

sigma

Required. Vector of expected risk.

rho

Required. Correlation matrix.

wInitial

Optional. Vector of initial weights (or your current weights). This is used to measure the friction penalties or as a starting point should a numerical approach be necessary. If not specified, it defaults to a vector of zeros.

tc

Optional. Vector of transaction costs. If the argument is not specified, it defaults to a vector zeros.

lb

Optional. Vector of lower bound limits. If the argument is not specified, it defaults to a vector zeros.

ub

Optional. Vector of upper bound limits. If the argument is not specified, it defaults to a vector ones.

constraints

Output(s)

The output matrix follows the vector orientation of mu (column / row). If you have specified your inputs as column-vectors, the corresponding output matrix will be transpose of the above.

exitFlag
Description

-2

No feasible solution found. Check your constraints and problem definition.

-1

Unexpected interruption.

0

Number of iterations exceeded.

1

First-order optimality measure is less than tolerance threshold and the constraints were satisfied.

2

Delta in optimal weights is less than the configured numerical step size.

3

Change in the expected utility value is less than the tolerance threshold.

4

Magnitude of search direction was less than the configured threshold.

5

Magnitude of directional derivative in the search direction was less than the configured threshold.

Example

Last updated