PSG Matrix in general format is a table specified by:
• | Name of Matrix |
• | Header row of the table with column names (strings with names of variables and other information) |
• | Body of the table with numerical data |
There are two specialized types of PSG Matrices:
• | Matrix of Scenarios (contains scenarios of random variables); |
• | Sparse Matrix (PMatrix, contains only nonzero elements). |
Name
Name of a PSG matrix is a string (used for function call in problem statements). Name:
• | includes two parts: "matrix_" and "<matrix_name>" (user specified). |
• | should not exceed 128 symbols, it is not case sensitive, and includes only alphabetic characters, numbers, and underscore sign, “_”. |
Header row
Header row of the table contains names of columns. Some column names specify names of variables. There are, also, three optional column names:
id |
defines the counter of rows in the table with numeric data; |
scenario_probability |
defines probabilities of scenarios in the case of Matrix of Scenarios; |
scenario_benchmark |
defines benchmarks for scenarios in the case of Matrix of Scenarios and Symmetric Matrix . |
Table with numerical data
Table contains numerical values of variables described in Header row.
Example
PSG Matrix should be prepared in appropriate format in different PSG Environments:
Run File Environment
PSG Matrix prepared in General (Text) Format and saved in file "matrix_scenarios.txt":
For more details see Matrix in General (Text) Format
MATLAB Environment
PSG Matrix as element of the structure in MATLAB:
iargstruc_arr =
name: 'matrix_scenarios'
vars: 'id x1 x2 x3 x4 scenario_benchmark'
data: [4x6 double]
iargstruc_arr.data =
1.0000 1.0000 4.0000 8.0000 3.0000 0.2000
2.0000 7.0000 5.0000 4.0000 6.0000 0.1100
3.0000 2.0000 8.0000 1.0000 0 0.6000
4.0000 0 3.0000 4.0000 9.0000 0.1000
For more details see PSG Matrix in MATLAB