tbpsg_problem_importfromtext function imports problem statement and its data stored in txt files in General (Text) Format of PSG.
Syntax
[problem_statement, toolboxstruc_arr] = tbpsg_problem_importfromtext(path_of_import, problem_name)
Description
[problem_statement, toolboxstruc_arr] = tbpsg_problem_importfromtext(path_of_import, problem_name) imports problem statement problem_statement (see Problem Statement in MATLAB) and its data toolboxstruc_arr (see PSG Data Objects in MATLAB) from *.txt files with elements of problem in General (Text) Format of PSG to corresponding MATLAB variables.
Input Arguments
path_of_import |
path to folder with problem in File Format files; |
problem_name |
name of the file with the problem to be imported. |
Output Arguments
problem_statement |
string with description of optimization problem (see Problem Statement); |
toolboxstruc_arr |
array of PSG data structures (see PSG Data Objects). |
Remarks
• | The file with problem description problem_name.txt as well as data *.txt files (matrices, points, vectors) should be located in path_of_import. |