Solved

Find ArgMax in a 2-dimensional Parameter

  • 14 July 2020
  • 2 replies
  • 50 views

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

Userlevel 5

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!

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator