Models¶
This section describes the optimization models that are planned to be shipped with the platform. The models to be implemented are defined in their mathematical notation.
& vector of all ones
& number of assets in the Asset_Group
& number of scenarios
& covariance matrix of the Asset_Group
& vector of expected returns of the Asset_Group
& target return
& weights vector to be found
& ellipsoidal uncertainty set of true expected returns
& square of a size of uncertainty set
& matrix of assets’ losses where each row corresponds to the Monte-Carlo scenario
& area of the right tale of the losses distribution at which CVaR is computed
& feasible space defined by inputs constraints and short_sale
& auxiliary decision variablesMinimum-Variance Optimization¶

subject to 


MinVarO(Asset_Group(
), constraints, short_sale)
mvar = MinVarO(Asset_Group, constraints, short_sale)
optimize(mvar, parameters)
| Variable Name | Description |
|---|---|
| Asset Group | Set of Asset returns and covarianced inputtedf or analysis |
| Constraints | Any non-model specific constraints to be used in optimization |
| Short_Sale | A boolean indicating whether or not short selling will be allowed |
Simple Mean Variance Optimization¶

subject to 



SimpleMVO(Asset_Group(
),
, constraints, short_sale)}
mvo = SimpleMVO(Asset_Group, target_return, constraints, short_sale)
optimize(mvo, parameters)
| Variable Name | Description |
|---|---|
| Asset Group | Set of Asset returns and covarianced inputtedf or analysis |
| Target_Return | Expected target return of portfolio post optimization |
| Constraints | Any non-model specific constraints to be used in optimization |
| Short_Sale | A boolean indicating whether or not short selling will be allowed |
Robust Mean Variance Optimization¶

subject to
or equivalently 
or equivalently 



RobustMVO(Asset_Group(
),
, constraints,
,
, short_sale)
rmvo = RobustMVO(Asset_Group, target_return, constraints, uncertainty_set, uncertainty_set_size, short_sale)
optimize(rmvo, parameters)
| Variable Name | Description |
|---|---|
| Asset Group | Set of Asset returns and covarianced inputtedf or analysis |
| Target_Return | Expected target return of portfolio post optimization |
| Constraints | Any non-model specific constraints to be used in optimization |
| Uncertainty_Set | Uncertainties in the parameter estimates ( and ) associated with each asset in the asset group. Typically taken to be an individual variance of each asset |
| Uncertainty_Set_Size | maximum allowable exposure of the whole portfolio to the uncertainty associated with the parameter estimates ( and ) |
| Short_Sale | A boolean indicating whether or not short selling will be allowed |
Conditional Value at Risk (CVaR) Optimization¶

subject to 



CVaRO(Asset_Group(
),
, constraints,
, short_sale)
cvar = CVaRO(Asset_Group, losses, constraints, alpha, short_sale)
optimize(cvar, parameters)
| Variable Name | Description |
|---|---|
| Asset Group | Set of Asset returns and covarianced inputtedf or analysis |
| Losses | Matrix of samples of the portfolio losses, where each row represents a sample. Typically obtained by Monte-Carlo sampling |
| Constraints | Any non-model specific constraints to be used in optimization |
| Alpha | Confidence level at which CVaR is optimized. This corresponds to the area of the left tale of the losses distribution |
| Short_Sale | A boolean indicating whether or not short selling will be allowed |
Function Descriptions¶
| Function | Description |
|---|---|
optimize(M, parameters; solver=Default) |
Will optimize the model M with the parameters given using a solver |
getDefaultConstraints(M) |
Return the default constraints of model M . |
getConstraints(M) |
Return the constraints as an array of expressions for model M . |
getObjective(M) |
Return the objective function of model M as an Expr type. |
getSense(M) |
Return the Sense of the model M , Min or Max. |
getVariables(M) |
Return the list of variables in the model M . |
To change solvers, refer to the solver select tutorial.
and
) associated with each asset in the asset group. Typically taken to be an individual variance of each asset