I want to print out the index of an array that has the maximum value (and since indexing begins at 0, I need to add one to the index value to get 1-indexed). Example:
rslt = np.amax(final_array)
print("The maximum value is :", rslt)
print("The optimal choice that has that value is :", rslt.index[])
Context: I am writing some multi-criteria decision analysis code in Python. I import numpy to handle arrays of alternatives, criteria and weights. I use np.amax to find the maximum value in the final array.