This section includes PSG m-functions for solving, exporting and importing PSG optimization problems and their parts:

 

Function

Description

tbpsg_toolbox

opens PSG Toolbox Window (empty or with data);

tbpsg_vars

gets description of MATLAB and PSG objects included in the problem;

tbpsg_export_to_workspace

saves to MATLAB Workspace all variables stored in PSG Toolbox structure;

tbpsg_run

optimizes problem;

tbpsg_problem_importfromtext

imports problem statement and its data stored in txt files in General (Text) Format of PSG;

tbpsg_problem_exporttotext

exports the PSG problem from MATLAB to text files with problem in General (Text) Format of PSG;

tbpsg_create_user_subroutine

creates m-function with PSG optimization problem;

tbpsg_function_value

calculates PSG function (see PSG Function) value at PSG point;

tbpsg_function_gradient

calculates PSG function (see PSG Function) gradient at PSG point;

tbpsg_function_increment

calculates PSG function (see PSG Function) increments at PSG point;

tbpsg_loss_values

calculates scenarios of losses (gains) (see Scenario Functions) corresponding to a PSG Matrix and decision vector packed in PSG Point.