Calculation in Run-File Environment using Matrix of scenarios

Example:  Function call: lp_norm(2, matrix_norm).

 

matrix_norm:

 

x1

x2

x3

x4

1

1

1

1

 

The matrix_norm is in file matrix_norm.txt in PSG Matrix format (see, PSG Matrix in General (Text) Format).

Lp norm is calculated at point_1:

 

component_name

value

x1

x2

x3

x4

1

1

1

1

 

The point point_1 is in file point_1.txt (see, PSG Point).

 

To calculate lp_norm at point_1 run problem in file problem_lp_norm.txt (see, Calculate Problem):

 

 calculate

Point: point_1

Value:

 lp_norm(2, matrix_norm)

 

Files problem_lp_norm.txt, matrix_norm.txt and point_1.txt are in folder .\Aorda\PSG\Examples\Functions\ Lp_test.

Value of lp_norm(2, matrix_norm) at point_1 equals 2.