PSG Point in MATLAB is a matrix with two columns: the first one contains text names of variables of an optimization problems, the second one contains numerical data. Names of columns are component_name and value respectively. This object is commonly used for specifying optimal point, initial point, lower and upper bounds for constraints.
PSG Point in Toolbox consists of:
name |
name of point; |
vars |
tab separated or cell array of component names (names of variables of PSG problem); |
data |
values of data (real or integer); |
Remarks
Name of point should not exceed 128 symbols, it is not case sensitive and includes only alphabetic characters, numbers, and underscore sign, “_”.
There are two ways for creation of PSG Parameter in MATLAB:
• | use PSG Point in Toolbox GUI; |
• | use tbpsg_point_pack for packing data to structure. |
PSG Matrix in MATLAB is a set of nested structures:
First level is a structure with three fields:
type |
string with type of PSG object: 'matrix', 'pmatrix', 'point', 'vector', 'parameter'; |
data |
structure with numeric and string values of point; |
string |
structure with names of MATLAB variables that corresponds to numeric and string values of point; |
Second level are two structures with the fields:
1. Data structure:
name |
string with name of point; |
vars |
string with tab separated component names (names of variables of PSG problem); |
data |
values of data (real or integer); |
2. String structure:
name |
MATLAB variable for string with name of point; |
vars |
MATLAB variable for string with tab separated component names (names of variables of PSG problem); |
data |
MATLAB variable for values of point; |
Note. Create or modify described above structures is NOT recommended.
Pack point [0.1 1] to structure "toolboxstruc_arr":
toolboxstruc_arr = tbpsg_point_pack('point_example', [0.1 1], {'x1', 'x2'});
Output:
>> toolboxstruc_arr
ans =
type: 'point'
data: [1x1 struct]
string: [1x1 struct]
>> toolboxstruc_arr.data
ans =
name: 'example'
data: [0.100000000000000 1]
vars: 'x1 x2'
>> toolboxstruc_arr.string
ans =
name: 'example'
data: 'point_example_data'
vars: 'point_example_vars'
See also
PSG Point in Toolbox, PSG Point in General (Text) Format