tbpsg_vars function displays description of all MATLAB objects (variables from Workspace) used in optimization problem.

 

Syntax

[output_table,output_str] = tbpsg_vars(problem_statement, toolboxstruc_arr)

 

Description

[output_table,output_str] = tbpsg_vars(problem_statement, toolboxstruc_arr) returns list of all MATLAB objects (variables from Workspace) used for creation of optimization problem specified by problem statement problem_statement and data stored in structure toolboxstruc_arr. List is formatted as the table output_table and the structure output_str.

 

Input Arguments

problem_statement

string with description of optimization problem (see Problem Statement);

toolboxstruc_arr

array of PSG data structures (see PSG Data Objects).

 

Output Arguments

output_table

table with columns MATLAB Object, PSG Type, PSG Object, PSG Location, Class;

output_str

array of structures with fields matlab_object, psg_var, psg_object, class, psg_path.

 

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.

 

Command to view all MATLAB objects used in optimization problem:

 

>> tbpsg_vars(problem_statement, toolboxstruc_arr)

 

Output:

 

MATLAB Object

PSG Type

PSG Object

PSG Location

Class

matrix_scenarios_benchmark

bench

matrix_scenarios

cvar_risk_example(0.95, matrix_scenarios)

double

matrix_scenarios_data

bench

matrix_scenarios

cvar_risk_example(0.95, matrix_scenarios)

double

matrix_scenarios_vars

vars

matrix_scenarios

cvar_risk_example(0.95, matrix_scenarios)

cell

matrix_budget_data

data

matrix_budget

linear(matrix_budget)

double

matrix_budget_vars

vars

matrix_budget

linear(matrix_budget)

cell

point_lowerbounds_data

data

point_lowerbounds

Box: >= point_lowerbounds

double

point_lowerbounds_vars

vars

point_lowerbounds

Box: >= point_lowerbounds

cell

point_problem_1_data

data

point_problem_1


double

point_problem_1_vars

vars

point_problem_1


cell

 

See also

tbpsg_toolbox, tbpsg_run, tbpsg_solution, tbpsg_solution_struct