Solved

# Find ArgMax in a 2-dimensional Parameter

• 2 replies
• 79 views

• 2 replies

Hi,

so with the ArgMax function I can find the maximum value out of a Parameter of numbers like this:

ArgMax(i, SomeParamter(i))

However I would like to find the maximum value in a 2-dimensional Paramter. So ideally I would like to do something like this:

ArgMax((i,j), Some2DimensionalParamter(i,j))

This is not possible though, because apperently only one index is permitted for the iterative operator argmax.

Does anyone have an idea how this could be done?

Thank you!

icon

Best answer by mateusarakawa 14 July 2020, 15:05

Hi, @Gergely.

You should use max function instead.

``max((i,j) | Some2DimensionalParamter(i,j), Some2DimensionalParamter(i,j))``

ArgMax returns the element (i OR j) that has the maximum value, not the value.

View original

### 2 replies

Hi, @Gergely.

You should use max function instead.

``max((i,j) | Some2DimensionalParamter(i,j), Some2DimensionalParamter(i,j))``

ArgMax returns the element (i OR j) that has the maximum value, not the value.

Awesome, that solved the issue. Thank you very much!