Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Multidimensional arrays in SQLScript

$
0
0

Hi,

 

this problem can be simply described as a problem of searching of the pivot value as a part of simplex method.

 

I need to identify the column (index) with a max value in the last row, and a row (index) with the min value in the last column. Then I need to identify the value at the intersection of the found row (index) and column (index), which should be used for next calculation steps.

 

Eample:

 

Tableau: {  2, 1, 1, 1, 0, 0, 0, 90

                    1, 3, 2, 0, 1, 0, 0, 300

                    2, 1, 2, 0, 0, 1, 0, 120

                    6, 5, 4, 0, 0, 0, 1, 0     }

 

Here the max value of last row has index=1 and min value of last column has index=1, so the value with indexes 1, 1 in Tableau is 2.

 

Currently I try to solve this problem using only SQLScript (& I still belive it is possible ).


Viewing all articles
Browse latest Browse all 8968

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>