tbpsg_optimal_point_vars function gets headers (names of variables) of all points for solved optimization problem.

 

Syntax

[output] = tbpsg_point_vars(solution_str, outargstruc_arr)

 

Description

[output] = tbpsg_point_vars(solution_str, outargstruc_arr) returns headers of PSG points of an optimization problem extracted from the solution reports solution_str and outargstruc_arr.

 

Input Arguments

solution_str

string with solution report;

outargstruc_arr

array of output PSG data structures;

 

Output Arguments

output

header (names of variables) of optimal point.

 

Example

 

CVaR problem is defined in section Quick Start with PSG Toolbox.

Open PSG Toolbox:

 

>> tbpsg_toolbox

 

Load in PSG Toolbox problem from file .\Aorda\PSG\MATLAB\Examples\Toolbox\problem_cvar.mat

Open in PSG Toolbox menu "Save to Workspace" and save problem statement and toolbox structure to Workspace variables problem_statement and toolboxstruc_arr.

 

Optimize problem using tbpsg_run:

 

[solution_str,outargstruc_arr]=tbpsg_run(problem_statement, toolboxstruc_arr);

 

Extract headers of PSG points from the solution reports solution_str and outargstruc_arr:

 

>> output = tbpsg_point_vars(solution_str, outargstruc_arr)

 

output =

 

   {1x4 cell}    {1x2 cell}    {1x2 cell}    {1x2 cell}

 

>> output{1}

 

ans =

 

   'x1'    'x2'    'x3'    'x4'

 

>> output{2}

 

ans =

 

   'constraint_1'    'constraint_2'

 

>> output{3}

 

ans =

 

   'constraint_1'    'constraint_2'

 

>> output{4}

 

ans =

 

   'constraint_1'    'constraint_2'

 

See also

tbpsg_isoptimal, tbpsg_objective, tbpsg_constraint, tbpsg_function, tbpsg_time, tbpsg_point_data, tbpsg_matrix_data, tbpsg_matrix_vars, tbpsg_vector_data