%======================================================================= %To solve optimization problem: %Create a new subfolder in ...\PSG\MATLAB: %..\PSG\MATLAB\problem_1_Korea_retail_bound_0_2_short %Download and unpack the following zipped file from 'Data' to the created folder: %'Mat_data_problem_1_Korea_retail_bound_0_2_short.zip' %Run program 'problem_1_Korea_retail_bound_0_2_short.m' %======================================================================= clc; clear; addpath('..'); %Load data: load('.\problem_1_Korea_retail_bound_0_2_short_data.mat') %Define options for PSG solver: stroptions.Stages = 10; %Define input arguments: string2 = {'var_dev'}; w2 = {0.9984}; %Solve optimization problems: [xout, fval, status, output] = riskconstrprog([], string2, [], [], [], [], w2, H2, [], p2, d, r, [], [], [], [], lb, ub, [], stroptions); %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('var_dev= %g', output.frval2)) %Display linear component of objective: disp('linear component of objective:'); disp(output.fdval); %Display optimal point: disp('optimal point = '); disp(xout');