PSG provides the following m-functions for creation and solving optimization problems:

 

Operations with PSG Problems

 

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 on PSG point;

tbpsg_function_sensitivity

calculates PSG function (see PSG Function) sensitivities on a PSG point;

tbpsg_function_increment

calculates PSG function (see PSG Function) increments on a 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.

 

Creation of PSG Data Objects

 

Function

Description

tbpsg_matrix_pack

packs data to PSG Matrix in MATLAB;

tbpsg_pmatrix_pack

packs data to PSG PMatrix in MATLAB;

tbpsg_vector_pack

packs data to PSG Vector in MATLAB

tbpsg_point_pack

packs data to PSG Point in MATLAB

tbpsg_parameter_pack

packs data to PSG Parameter in MATLAB

 

Extract Solution Results

 

Function

Description

tbpsg_solution_struct

generates structure containing PSG solution reports in convenient MATLAB format;

tbpsg_solution

returns part of PSG solution according to key word;

tbpsg_isoptimal

retuns the logical variable is the solution of optimization problem optimal or not;

tbpsg_objective

retuns objective value from the solution report;

tbpsg_function_data

retuns functions value from the solution report;

tbpsg_function_names

retuns names of functions used in problem;

tbpsg_time

retuns time of preprocessing and solution problem from the solution report;

tbpsg_point_data

retuns data of all points for solved optimization problem;

tbpsg_point_vars

retuns header (names of variables) of all points for solved optimization problem;

tbpsg_optimal_point_data

retuns data of optimal point for solved optimization problem;

tbpsg_optimal_point_vars

retuns header (names of variables) of optimal point for solved optimization problem;

tbpsg_constraints_data

retuns values of constraints;

tbpsg_constraints_vars

retuns names of constraints;

tbpsg_slack_data

retuns values of slacks of constraints;

tbpsg_dual_data

retuns values of dual constraints;

tbpsg_vector_constraint_data

retuns sell array with values of constraints in the case of vector constraint;

tbpsg_vector_dual_data

retuns sell array with values of slacks in the case of vector constraint;

tbpsg_vector_dual_data

retuns sell array with values of dual constraints in the case of vector constraint;

tbpsg_matrix_data

retuns data of matrices for solved optimization problem;

tbpsg_matrix_vars

retuns headers (names of variables) of matrices for solved optimization problem;

tbpsg_vector_data

retuns data of vectors for solved optimization problem.