Block operation converts a PSG Matrix to a new PSG Matrix with a special block structure with new dimensions.

Syntax

block(N,matrix_one_block)

 

Parameters

matrix_one_block

name of input PSG Matrix;

N

 number of blocks in output PSG Matrices (with an equal number of rows in every PSG Matrix).

Description

Input PSG Matrix matrix_one_block:

 

Operation block(N,matrix_one_block)

generates the following PSG Matrix with block structure

 

 

where

 

         Remarks

Names of variables in the input PSG Matrix must end with substring "_1".
Output PSG Matrix includes N blocks and two columns: "scenario_benchmark", and "scenario_probability".
Name of i-th variable in the n-th block of the output PSG Matrix ends with substring "_<n>", where the block number, n= 1, 2, ..., N.
Block operation can be used for compact representation of Sparse Matrices with a special block structure.

 

Example

 

Input PSG Matrix <matrix_one_block>:

_mmg5a        

 

block(3,<matrix_one_block>) operation generates:

_mmg5b

 

Case Studies with Block Operation

Stochastic Utility Problem

 

See also

Cut Operation for Matrix