tbpsg_create_user_subroutine function creates m-function with PSG optimization problem.

 

Syntax

tbpsg_create_user_subroutine(problem_statement,toolboxstruc_arr,path_to_files,users_f_name)

 

Description

tbpsg_create_user_subroutine(problem_statement,toolboxstruc_arr,path_to_files,users_f_name)creates  m-function with user subroutine for solving PSG problem defined by problem_statement, m-file with example code to run user subroutine, and mat-file with data from structure toolboxstruc_arr. All files are stored in folder specified by path_to_files with names users_f_name.

 

Input Arguments

problem_statement

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

toolboxstruc_arr

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

path_to_files

string with path to folder;

users_f_name

string with name of user subroutine.

 

Output

users_f_name.m

m-file with user subroutine;

users_f_name_data.mat

mat-file with data in PSG Toolbox format for test run of user subroutine;

users_f_name_example.m

m-file with example code to run user subroutine (using data from users_f_name_data.mat).

 

See also

tbpsg_toolbox, tbpsg_vars, tbpsg_solution, tbpsg_solution_struct