%======================================================================= %To solve optimization problem: %Install Portfolio Safeguard (PSG) %Create a new subfolder in ...\PSG\MATLAB: %..\PSG\MATLAB\problem_Beyond_Black_Litterman_1_32_EF %Download and unpack the following zipped file from 'Data' to the created folder: %'Mat_data_problem_Beyond_Black_Litterman_1_32_EF.zip' %Run program 'problem_Beyond_Black_Litterman_1_32_EF.m' %======================================================================= clc; clear; addpath('..'); %Load data: load('.\problem_Beyond_Black_Litterman_data_1_32_EF.mat'); %Define input arguments: N_Par = 20; clear options; options.PlotGraph = 'On'; options.PlotType = 2; options.ScaleParam = -1; %Solve optimization problems: [Objectives, Parameters, Points, GraphHandle]= riskparam ('cvar_risk', 0.95, Hmatr, [], [], [], dmatr', -0.00105, Aeqmatr, beqvec, lbvec, [], 'b', [],[],N_Par, [], [], [],[],options); %Display results: fprintf('Number of Points: %d\n', length(Parameters)); %Display objective: fprintf('Parameters Objectives:\n'); fprintf('%f\t%f\n', [Parameters; Objectives]); %Display optimal point: fprintf('Optimal Points:\n'); disp(Points);