%======================================================================= %To solve optimization problem: %Create a new subfolder in ...\PSG\MATLAB: %..\PSG\MATLAB\problem_average_drawdown_0p0307 %Download and unpack the following zipped file from 'Data' to the created folder: %'Mat_data_problem_average_drawdown_0p0307.zip' %Run program 'problem_average_drawdown_0p0307.m' %======================================================================= clc; clear; addpath('..'); %Load data: load('.\problem_average_drawdown_0p0307_data.mat') %Define input arguments: string2 = {'drawdown_dev_avg'}; %Solve optimization problems: [xout, fval, status, output] = riskconstrprog([], string2, [], [], [], [], [], H2, [], [], d, r, [], [], [], [], lb, ub); %Display results: disp(' '); disp('Results: '); %Display status of optimization problem: disp(sprintf('status of optimization problem = %s', status)); %Display solving time: disp(sprintf('solving time = %g', output.solving_time)); %Display objective: disp(sprintf('objective = %g', fval)); %Display function: disp(sprintf('drawdown_dev_avg= %g', output.frval2)) %Display linear component of objective: disp('linear component of objective:'); disp(output.fdval); %Display optimal point: disp('optimal point = '); disp(xout');