There are three main objects of PSG in MATLAB:
1. Problem Statement. It is a string with description of optimization problem. This object must be created according to the rules of PSG General format. There are two ways to create Problem Statement:
• | use Problem Statement Window in Toolbox GUI; |
• | create MATLAB variable of class char. |
2. PSG Data Objects. Data for optimization problem are stored in MATLAB structure of the specific type. There are 5 different types of PSG Data:
• | PSG PMatrix (Sparse Matrix); |
There are two ways for creation PSG Data Objects in MATLAB:
• | use PSG Objects Windows in Toolbox GUI; |
• | use special PSG m-functions for packing data to structure. |
Note. Create or modify PSG Objects in another way (not mentioned above) is NOT recommended.
Note. All PSG Objects must be stored in one array of structures.
3. PSG Solution. The results of optimization problem are stored in solution report and structure with PSG Data Objects. Solution report is a string with main information about optimization results. Structure includes optimal point, point with slacks values, point with dual constraints values and the other data stored as PSG Data Objects. PSG provides the set of m-functions for extraction the information from PSG Solution.