PSG provides the following m-functions for creation and solving optimization problems:
Operations with PSG Problems
Function |
Description |
---|---|
opens PSG Toolbox Window (empty or with data); |
|
gets description of MATLAB and PSG objects included in the problem; |
|
saves to MATLAB Workspace all variables stored in PSG Toolbox structure; |
|
optimizes problem; |
|
imports problem statement and its data stored in txt files in General (Text) Format of PSG; |
|
exports the PSG problem from MATLAB to text files with problem in General (Text) Format of PSG; |
|
creates m-function with PSG optimization problem; |
|
calculates PSG function (see PSG Function) value on PSG point; |
|
calculates PSG function (see PSG Function) sensitivities on a PSG point; |
|
calculates PSG function (see PSG Function) increments on a PSG point; |
|
calculates scenarios of losses (gains) (see Scenario Functions) corresponding to a PSG Matrix and decision vector packed in PSG Point. |
Creation of PSG Data Objects
Function |
Description |
---|---|
packs data to PSG Matrix in MATLAB; |
|
packs data to PSG PMatrix in MATLAB; |
|
packs data to PSG Vector in MATLAB |
|
packs data to PSG Point in MATLAB |
|
packs data to PSG Parameter in MATLAB |
Extract Solution Results
Function |
Description |
---|---|
generates structure containing PSG solution reports in convenient MATLAB format; |
|
returns part of PSG solution according to key word; |
|
retuns the logical variable is the solution of optimization problem optimal or not; |
|
retuns objective value from the solution report; |
|
retuns functions value from the solution report; |
|
retuns names of functions used in problem; |
|
retuns time of preprocessing and solution problem from the solution report; |
|
retuns data of all points for solved optimization problem; |
|
retuns header (names of variables) of all points for solved optimization problem; |
|
retuns data of optimal point for solved optimization problem; |
|
retuns header (names of variables) of optimal point for solved optimization problem; |
|
retuns values of constraints; |
|
retuns names of constraints; |
|
retuns values of slacks of constraints; |
|
retuns values of dual constraints; |
|
retuns sell array with values of constraints in the case of vector constraint; |
|
retuns sell array with values of slacks in the case of vector constraint; |
|
retuns sell array with values of dual constraints in the case of vector constraint; |
|
retuns data of matrices for solved optimization problem; |
|
retuns headers (names of variables) of matrices for solved optimization problem; |
|
retuns data of vectors for solved optimization problem. |